blob: f108b1e4120a44684c5bdf0089ce5e3abee50406 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# /*****************************************************************************
2#* °戨?? (C)2015, ????1???????£
3#*
4#* ?? Makefile
5#* ?? Makefile
6#* ě???: Makefile of ZTE applications
7#* ??·?·¨:
8#*
9#* О???? °汾o? О??? О??? О????
10 #* -----------------------------------------------------------------------------
11#* 2015/12/31 V2.2 Create 1?° ′′?¨
12#*
13# ******************************************************************************/
14
15#*******************************************************************************
16# include ZTE application makefile
17#*******************************************************************************
18include $(COMMON_MK)
19
20#*******************************************************************************
21# execute
22#*******************************************************************************
23EXEC = ccapp
24#EXEC2 = slictool
25#*******************************************************************************
26# objects
27#*******************************************************************************
28OBJS = cc_main.o cc_proc.o cc_timer.o cc_at.o cc_com.o slic_inf.o libzte_log.o
29OBJS2 = slic_tool.o slic_inf.o
30#*******************************************************************************
31# include path
32#*******************************************************************************
33CFLAGS += -I../include \
34 -I$(zte_lib_path)/libsoft_timer \
35 -I$(zte_lib_path)/libvoice/include \
36 -I$(zte_lib_path)/libsqlite
37CFLAGS += -g -Werror=implicit-function-declaration
38#*******************************************************************************
39# macro definition
40#*******************************************************************************
41ifeq ($(_APP_AUDIO_TYPE_),slic_le96xx)
42CFLAGS +=-DUSE_SLIC_TW
43endif
44
45#*******************************************************************************
46# library
47#*******************************************************************************
48LDLIBS += -lpthread
49LDLIBS += -lnvram_sc
50LDLIBS += -lsoftap
51LDLIBS += -lsoft_timer_sc
52LDLIBS += -ltinyalsa
53LDLIBS += -lvoice
54
55#*******************************************************************************
56# library path
57#*******************************************************************************
58LDLIBS += -L$(zte_lib_path)/libnvram
59LDLIBS += -L$(zte_lib_path)/libsoftap
60LDLIBS += -L$(zte_lib_path)/libsoft_timer
61LDLIBS += -L$(zte_lib_path)/libtinyalsa
62LDLIBS += -L$(zte_lib_path)/libvoice
63
64#LDFLAGS += -Wl,-elf2flt=-s32768
65#$(info ------------------------------------$(zte_lib_path))
66
67#*******************************************************************************
68# targets
69#*******************************************************************************
70all: $(EXEC) $(EXEC2)
71
72$(EXEC): $(OBJS)
73 $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
74$(EXEC2): $(OBJS2)
75 $(CC) $(LDFLAGS) -o $@ $(OBJS2) -Wl,--start-group $(LDLIBS) -Wl,--end-group
76
77romfs:
78 cp $(EXEC) $(EXEC).elf
79 $(ROMFSINST) /bin/$(EXEC)
80# $(ROMFSINST) /bin/$(EXEC2)
81
82clean:
83 -rm -f $(EXEC) $(EXEC2) *.elf *.gdb *.o
84
85
86