lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # /***************************************************************************** |
| 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 | #******************************************************************************* |
| 18 | include $(COMMON_MK) |
| 19 | |
| 20 | #******************************************************************************* |
| 21 | # execute |
| 22 | #******************************************************************************* |
| 23 | EXEC = ccapp |
| 24 | #EXEC2 = slictool |
| 25 | #******************************************************************************* |
| 26 | # objects |
| 27 | #******************************************************************************* |
| 28 | OBJS = cc_main.o cc_proc.o cc_timer.o cc_at.o cc_com.o slic_inf.o libzte_log.o |
| 29 | OBJS2 = slic_tool.o slic_inf.o |
| 30 | #******************************************************************************* |
| 31 | # include path |
| 32 | #******************************************************************************* |
| 33 | CFLAGS += -I../include \ |
| 34 | -I$(zte_lib_path)/libsoft_timer \ |
| 35 | -I$(zte_lib_path)/libvoice/include \ |
| 36 | -I$(zte_lib_path)/libsqlite |
| 37 | CFLAGS += -g -Werror=implicit-function-declaration |
| 38 | #******************************************************************************* |
| 39 | # macro definition |
| 40 | #******************************************************************************* |
| 41 | ifeq ($(_APP_AUDIO_TYPE_),slic_le96xx) |
| 42 | CFLAGS +=-DUSE_SLIC_TW |
| 43 | endif |
| 44 | |
| 45 | #******************************************************************************* |
| 46 | # library |
| 47 | #******************************************************************************* |
| 48 | LDLIBS += -lpthread |
| 49 | LDLIBS += -lnvram_sc |
| 50 | LDLIBS += -lsoftap |
| 51 | LDLIBS += -lsoft_timer_sc |
| 52 | LDLIBS += -ltinyalsa |
| 53 | LDLIBS += -lvoice |
| 54 | |
| 55 | #******************************************************************************* |
| 56 | # library path |
| 57 | #******************************************************************************* |
| 58 | LDLIBS += -L$(zte_lib_path)/libnvram |
| 59 | LDLIBS += -L$(zte_lib_path)/libsoftap |
| 60 | LDLIBS += -L$(zte_lib_path)/libsoft_timer |
| 61 | LDLIBS += -L$(zte_lib_path)/libtinyalsa |
| 62 | LDLIBS += -L$(zte_lib_path)/libvoice |
| 63 | |
| 64 | #LDFLAGS += -Wl,-elf2flt=-s32768 |
| 65 | #$(info ------------------------------------$(zte_lib_path)) |
| 66 | |
| 67 | #******************************************************************************* |
| 68 | # targets |
| 69 | #******************************************************************************* |
| 70 | all: $(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 | |
| 77 | romfs: |
| 78 | cp $(EXEC) $(EXEC).elf |
| 79 | $(ROMFSINST) /bin/$(EXEC) |
| 80 | # $(ROMFSINST) /bin/$(EXEC2) |
| 81 | |
| 82 | clean: |
| 83 | -rm -f $(EXEC) $(EXEC2) *.elf *.gdb *.o |
| 84 | |
| 85 | |
| 86 | |