ArDrone SDK 1.8 added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VP_SDK / Build / parrotOS_core.makefile
1
2 ###########################################################################################
3 #
4 # Designed to build ParrotOS Core library using generic.makefile
5 # ----------------------------------------------------------------------------------
6 # Author : sylvain.gaeremynck@parrot.com
7 # Date   : 2009/06/09
8 #
9 ###########################################################################################
10
11 include common.makefile
12
13
14 GENERIC_LIBRARY_TARGET_DIR=$(PARROTOS_CORE_TARGET_DIR)
15 GENERIC_TARGET_LIBRARY=$(GENERIC_LIBRARY_TARGET_DIR)/libparrotOS_core.a
16
17 # Check these defines against ParrotOs/core/Makefile.linux.global
18 GENERIC_CFLAGS+=-DPOS_LINUX
19 GENERIC_CFLAGS+=-D_XOPEN_SOURCE=600
20 GENERIC_CFLAGS+=-DSUP_U32_IS_ATOMIC
21
22 GENERIC_LIBRARY_SOURCE_FILES=                   \
23                                 posix/posix_alarm.c    \
24             posix/posix_cond.c     \
25             posix/posix_mutex.c    \
26             posix/posix_sem.c      \
27             posix/posix_thread.c   \
28             posix/posix_main.c     \
29             posix/posix_time.c     \
30             posix/posix_sys.c      \
31             generic/generic_flag.c \
32             generic/generic_mbox2.c \
33             generic/generic_diag.c \
34             generic/generic_mbox.c
35
36
37 GENERIC_LIBRARY_SOURCE_DIR=$(PARROTOS_CORE_SOURCE_DIR)
38
39 # All that needs to be exported
40 ########################
41 export GENERIC_LIBRARY_TARGET_DIR
42 export GENERIC_TARGET_LIBRARY
43 export GENERIC_INCLUDES
44 export GENERIC_LIBRARY_SOURCE_DIR
45 export GENERIC_LIBRARY_SOURCE_FILES
46
47 # All that shall not be defined
48 ########################
49 export PARROTOS_MAKEFILE=
50 export GENERIC_BINARIES_SOURCE_ENTRYPOINTS=
51 export GENERIC_BINARIES_COMMON_SOURCE_FILES=
52
53
54 all $(MAKECMDGOALS): 
55         @$(MAKE) -f generic.makefile $(MAKECMDGOALS)
56