2 ###########################################################################################
4 # Designed to build VLIB using generic.makefile
5 # ----------------------------------------------------------------------------------
6 # Author : aurelien.morelle@parrot.com
9 ###########################################################################################
11 include common.makefile
13 GENERIC_LIBRARY_TARGET_DIR=$(CODEC_TARGET_DIR)
14 GENERIC_TARGET_LIBRARY=$(GENERIC_LIBRARY_TARGET_DIR)/libvlib.a
16 GENERIC_LIBRARY_SOURCE_FILES= \
28 P263/p263_mb_layer.c \
29 P263/p263_gob_layer.c \
30 P263/p263_picture_layer.c \
32 P264/p264_transform.c \
34 P264/p264_intra_pred.c \
35 P264/p264_inter_mc.c \
39 P264/p264_gob_layer.c \
40 P264/p264_mb_layer.c \
41 P264/p264_picture_layer.c \
43 Stages/vlib_stage_decode.c \
44 Stages/vlib_stage_encode.c \
47 UVLC/uvlc_gob_layer.c \
48 UVLC/uvlc_mb_layer.c \
49 UVLC/uvlc_picture_layer.c
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
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
68 GENERIC_LIBRARY_SOURCE_FILES+= \
69 Platform/x86/video_utils.c \
70 Platform/x86/UVLC/uvlc_codec.c
73 ifeq ($(USE_ANDROID),yes)
74 GENERIC_LIBRARY_SOURCE_FILES+= \
75 Platform/arm11/video_utils.c \
76 Platform/arm11/UVLC/uvlc_codec.c
78 ifeq ($(TARGET_CPU_ARM),1)
79 GENERIC_LIBRARY_SOURCE_FILES+= \
80 Platform/arm11/video_utils.c \
81 Platform/arm11/UVLC/uvlc_codec.c
83 ifeq ($(FF_ARCH),Intel)
84 GENERIC_LIBRARY_SOURCE_FILES+= \
85 Platform/x86/video_utils.c \
86 Platform/x86/UVLC/uvlc_codec.c
92 GENERIC_LIBRARY_SOURCE_DIR=$(VLIB_SOURCE_DIR)
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
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=
110 @$(MAKE) -f generic.makefile $(MAKECMDGOALS)