| # /***************************************************************************** |
| #* °戨?? (C)2015, ????1???????£ |
| #* |
| #* ?? Makefile |
| #* ?? Makefile |
| #* ě???: Makefile of ZTE applications |
| #* ??·?·¨: |
| #* |
| #* О???? °汾o? О??? О??? О???? |
| #* ----------------------------------------------------------------------------- |
| #* 2015/12/31 V2.2 Create 1?° ′′?¨ |
| #* |
| # ******************************************************************************/ |
| |
| #******************************************************************************* |
| # include ZTE application makefile |
| #******************************************************************************* |
| include $(COMMON_MK) |
| |
| #******************************************************************************* |
| # execute |
| #******************************************************************************* |
| EXEC = ccapp |
| #EXEC2 = slictool |
| #******************************************************************************* |
| # objects |
| #******************************************************************************* |
| OBJS = cc_main.o cc_proc.o cc_timer.o cc_at.o cc_com.o slic_inf.o libzte_log.o |
| OBJS2 = slic_tool.o slic_inf.o |
| #******************************************************************************* |
| # include path |
| #******************************************************************************* |
| CFLAGS += -I../include \ |
| -I$(zte_lib_path)/libsoft_timer \ |
| -I$(zte_lib_path)/libvoice/include \ |
| -I$(zte_lib_path)/libsqlite |
| CFLAGS += -g -Werror=implicit-function-declaration |
| #******************************************************************************* |
| # macro definition |
| #******************************************************************************* |
| ifeq ($(_APP_AUDIO_TYPE_),slic_le96xx) |
| CFLAGS +=-DUSE_SLIC_TW |
| endif |
| |
| #******************************************************************************* |
| # library |
| #******************************************************************************* |
| LDLIBS += -lpthread |
| LDLIBS += -lnvram_sc |
| LDLIBS += -lsoftap |
| LDLIBS += -lsoft_timer_sc |
| LDLIBS += -ltinyalsa |
| LDLIBS += -lvoice |
| |
| #******************************************************************************* |
| # library path |
| #******************************************************************************* |
| LDLIBS += -L$(zte_lib_path)/libnvram |
| LDLIBS += -L$(zte_lib_path)/libsoftap |
| LDLIBS += -L$(zte_lib_path)/libsoft_timer |
| LDLIBS += -L$(zte_lib_path)/libtinyalsa |
| LDLIBS += -L$(zte_lib_path)/libvoice |
| |
| #LDFLAGS += -Wl,-elf2flt=-s32768 |
| #$(info ------------------------------------$(zte_lib_path)) |
| |
| #******************************************************************************* |
| # targets |
| #******************************************************************************* |
| all: $(EXEC) $(EXEC2) |
| |
| $(EXEC): $(OBJS) |
| $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| $(EXEC2): $(OBJS2) |
| $(CC) $(LDFLAGS) -o $@ $(OBJS2) -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| |
| romfs: |
| cp $(EXEC) $(EXEC).elf |
| $(ROMFSINST) /bin/$(EXEC) |
| # $(ROMFSINST) /bin/$(EXEC2) |
| |
| clean: |
| -rm -f $(EXEC) $(EXEC2) *.elf *.gdb *.o |
| |
| |
| |