70d90ca0ccb34f2ef49340f70d37e44916747c76
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VP_SDK / Build / vlib.makefile
1
2 ###########################################################################################
3 #
4 # Designed to build VLIB using generic.makefile
5 # ----------------------------------------------------------------------------------
6 # Author : aurelien.morelle@parrot.com
7 # Date   : 2008/10/30
8 #
9 ###########################################################################################
10
11 include common.makefile
12
13 GENERIC_LIBRARY_TARGET_DIR=$(CODEC_TARGET_DIR)
14 GENERIC_TARGET_LIBRARY=$(GENERIC_LIBRARY_TARGET_DIR)/libvlib.a
15
16 GENERIC_LIBRARY_SOURCE_FILES=                   \
17         video_codec.c                           \
18         video_controller.c                      \
19         video_mem32.c                           \
20         video_dct.c                             \
21         video_huffman.c                         \
22         video_macroblock.c                      \
23         video_packetizer.c                      \
24         video_picture.c                         \
25         video_quantizer.c                       \
26         P263/p263_codec.c                       \
27         P263/p263_huffman.c                     \
28         P263/p263_mb_layer.c                    \
29         P263/p263_gob_layer.c                   \
30         P263/p263_picture_layer.c               \
31   P264/p264_zigzag.c            \
32         P264/p264_transform.c           \
33         P264/p264_Qp.c          \
34         P264/p264_intra_pred.c          \
35   P264/p264_inter_mc.c          \
36         P264/p264_merge.c               \
37         P264/p264_codec.c               \
38         P264/p264.c                             \
39         P264/p264_gob_layer.c                   \
40         P264/p264_mb_layer.c                    \
41         P264/p264_picture_layer.c  \
42         P264/video_p264.c  \
43         Stages/vlib_stage_decode.c              \
44         Stages/vlib_stage_encode.c              \
45         UVLC/uvlc_codec.c                       \
46         UVLC/uvlc.c                             \
47         UVLC/uvlc_gob_layer.c                   \
48         UVLC/uvlc_mb_layer.c                    \
49         UVLC/uvlc_picture_layer.c
50
51 ifeq ($(USE_ELINUX),yes)
52 GENERIC_LIBRARY_SOURCE_FILES+=                  \
53         Platform/arm9_P6/video_utils.c          \
54         Platform/arm9_P6/video_dct_p6.c         \
55         Platform/arm9_P6/video_p264_p6.c                \
56         Platform/arm9_P6/video_quantizer_p6.c   \
57         Platform/arm9_P6/video_packetizer_p6.S  \
58         Platform/arm9_P6/UVLC/uvlc_p6.S         \
59         Platform/arm9_P6/UVLC/uvlc_mb_layer_p6.S
60 endif
61
62 ifeq ($(USE_IPHONE),yes)
63   ifeq ($(IPHONE_PLATFORM),iphoneos)
64         GENERIC_LIBRARY_SOURCE_FILES+=                  \
65                 Platform/arm11/video_utils.c            \
66                 Platform/arm11/UVLC/uvlc_codec.c
67   else
68         GENERIC_LIBRARY_SOURCE_FILES+=                  \
69                 Platform/x86/video_utils.c              \
70                 Platform/x86/UVLC/uvlc_codec.c
71   endif
72 else
73    ifeq ($(USE_ANDROID),yes)
74         GENERIC_LIBRARY_SOURCE_FILES+=                  \
75                 Platform/arm11/video_utils.c            \
76                 Platform/arm11/UVLC/uvlc_codec.c
77    else
78        ifeq ($(TARGET_CPU_ARM),1)
79              GENERIC_LIBRARY_SOURCE_FILES+=                     \
80                    Platform/arm11/video_utils.c         \
81                    Platform/arm11/UVLC/uvlc_codec.c
82       else
83       ifeq ($(FF_ARCH),Intel)
84              GENERIC_LIBRARY_SOURCE_FILES+=                     \
85                    Platform/x86/video_utils.c           \
86                    Platform/x86/UVLC/uvlc_codec.c
87       endif
88       endif
89    endif
90 endif
91
92 GENERIC_LIBRARY_SOURCE_DIR=$(VLIB_SOURCE_DIR)
93
94
95 # All that needs to be exported
96 ########################
97 export GENERIC_LIBRARY_TARGET_DIR
98 export GENERIC_TARGET_LIBRARY
99 export GENERIC_INCLUDES
100 export GENERIC_LIBRARY_SOURCE_DIR
101 export GENERIC_LIBRARY_SOURCE_FILES
102
103 # All that shall not be defined
104 ########################
105 export PARROTOS_MAKEFILE=
106 export GENERIC_BINARIES_SOURCE_ENTRYPOINTS=
107 export GENERIC_BINARIES_COMMON_SOURCE_FILES=
108
109 all $(MAKECMDGOALS):
110         @$(MAKE) -f generic.makefile $(MAKECMDGOALS)
111