blob: fa6b3863058110f88d5b748c7299cdeebf1f814b [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# /*****************************************************************************
2#* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3#*
4#* ÎļþÃû³Æ: Makefile
5#* Îļþ±êʶ: Makefile
6#* ÄÚÈÝÕªÒª: Makefile of ZTE zcoredemo
7#* ʹÓ÷½·¨: void
8#*
9#* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
10#* -----------------------------------------------------------------------------
11#* 2017/02/16 V1.0 Create ax ´´½¨
12#*
13# ******************************************************************************/
14
15#*******************************************************************************
16# include ZTE application makefile
17#*******************************************************************************
18include $(zte_app_mak)
19
20#*******************************************************************************
21# macro definition
22#*******************************************************************************
23ZAPP_PATH = ${zte_app_path}
24PHONE_TYPE = ${_APP_PHONE_TYPE_}
25ZCORE_PATH = $(zte_lib_path)/libzcore/std
26ZCORE_ZCORE_PATH = $(ZCORE_PATH)/src/zCore
27ZCORE_SRC_PATH = $(ZCORE_ZCORE_PATH)/src
28ZCORE_INC_PATH = $(ZCORE_ZCORE_PATH)/inc
29ZCORE_LIB_PATH = $(ZCORE_PATH)/lib
30ZTE_PHONE_PATH = ${zte_app_path}/zte_phone
31MMI_PATH = ${ZTE_PHONE_PATH}/${PHONE_TYPE}/mmi
32NEWMMI=${MMI_PATH}/new_mmi
33
34PLATADAPT_PATH = ${zte_lib_path}/libzcore/std/platadapt/phone
35APP_PRIV_LIB_PATH = $(ZTE_PHONE_PATH)/lib
36PLATADAPT_LIB_PATH = $(PLATADAPT_PATH)/lib
37FONT_LIB_PATH = ${zte_lib_path}/libzcore/std/lib/phone/font
38IME_LIB_PATH = ${zte_lib_path}/libzcore/std/prebuilts/ime
39FREETYPE_LIB_PATH = ${zte_lib_path}/libzcore/std/prebuilts/freetype
40NEWMMI_LIB_PATH =${NEWMMI}/lib
41APP2_LIB_PATH = ${MMI_PATH}/app2/lib
42#*******************************************************************************
43# execute
44#*******************************************************************************
45EXEC = zcoredemo
46
47#*******************************************************************************
48# src
49#*******************************************************************************
50SRCS = $(wildcard *.c)
51
52
53#*******************************************************************************
54# objects
55#*******************************************************************************
56OBJS = $(patsubst %.c,%.o, $(SRCS))
57
58#*******************************************************************************
59# include path
60#*******************************************************************************
61INCLUE_PATH = -I. \
62 -I$(PLATADAPT_PATH)/include/drv \
63 -I$(PLATADAPT_PATH)/include/msp \
64 -I$(PLATADAPT_PATH)/Include/misc \
65 -I$(ZCORE_PATH)/inc/app/usat \
66 -I$(ZCORE_PATH)/inc/app/calendar \
67 -I$(ZCORE_PATH)/inc/app/setting \
68 -I$(ZCORE_PATH)/inc/pal/os \
69 -I$(ZCORE_PATH)/inc/pal/dm \
70 -I$(ZCORE_PATH)/inc/config \
71 -I$(ZCORE_PATH)/inc/zCore/kernel \
72 -I$(ZCORE_PATH)/inc/zCore/gui/ext \
73 -I$(ZCORE_PATH)/inc/zCore/gui/ctrl \
74 -I$(ZCORE_PATH)/inc/zCore/bl \
75 -I$(ZCORE_PATH)/inc/zCore/gui \
76 -I$(ZCORE_PATH)/inc/zCore/msm \
77 -I$(ZCORE_PATH)/inc/zCore/ui_fw/ctrl \
78 -I$(ZCORE_PATH)/inc/zCore/app_fw \
79 -I$(ZCORE_PATH)/inc/framework/fwext2 \
80 -I$(ZCORE_INC_PATH)/gui \
81 -I$(ZCORE_INC_PATH)/os \
82 -I$(ZCORE_INC_PATH)/gal \
83 -I$(PLATADAPT_PATH)/Include \
84 -I$(PLATADAPT_PATH)/Include/dm \
85 -I$(PLATADAPT_PATH)/Include/drv \
86 -I$(PLATADAPT_PATH)/src/os \
87 -I$(ZCORE_SRC_PATH)/gui/adapter/inc\
88 -I$(ZAPP_PATH)/include \
89 -I$(IME_LIB_PATH)/include \
90
91CFLAGS += -Wextra -Wall $(INCLUE_PATH)
92
93
94#*******************************************************************************
95# library
96#*******************************************************************************
97LDLIBS += -lpthread -lm -lrt
98LDLIBS += -lnvram_sc
99LDLIBS += -lsoftap
100LDLIBS += -lsoft_timer_sc
101#LDLIBS += -latutils
102
103#*******************************************************************************
104# library path
105#*******************************************************************************
106LDLIBS += -L$(zte_lib_path)/libapp_common
107LDLIBS += -L$(zte_lib_path)/libnvram
108LDLIBS += -L$(zte_lib_path)/libsoftap
109LDLIBS += -L$(zte_lib_path)/libsoft_timer
110LDLIBS += -L$(zte_lib_path)/libatutils
111LDLIBS += -L$(zte_lib_path)/libzcore
112LDLIBS += -L$(zte_lib_path)/libtinyalsa
113LDLIBS += -L$(zte_lib_path)/libamt
114LDLIBS += -L$(zte_lib_path)/libcpnv
115
116
117#*******************************************************************************
118# library
119#*******************************************************************************
120LDLIBS += ${FREETYPE_LIB_PATH}/*.a
121LDLIBS += ${FONT_LIB_PATH}/libttf_font.a
122LDLIBS += ${ZCORE_LIB_PATH}/libzcore_phone.a
123LDLIBS += ${ZCORE_LIB_PATH}/libplatadapt_phone.a
124LDLIBS += $(zte_lib_path)/libtinyalsa/*.a
125LDLIBS += $(zte_lib_path)/libamt/*.a
126LDLIBS += $(zte_lib_path)/libcpnv/*.a
127#*******************************************************************************
128# targets
129#*******************************************************************************
130
131all: $(EXEC)
132
133$(EXEC): $(OBJS)
134 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
135
136romfs:
137 cp $(EXEC) $(EXEC).elf
138 $(ROMFSINST) /bin/$(EXEC)
139
140clean:
141 -rm -f $(EXEC) $(OBJS) *.elf *.gdb *.o
142