| #******************************************************************************* |
| # include ZTE application makefile |
| #******************************************************************************* |
| include $(zte_app_mak) |
| include $(COMMON_MK) |
| |
| #******************************************************************************* |
| # execute |
| #******************************************************************************* |
| EXEC = uartcrc_mcu |
| |
| #******************************************************************************* |
| # objects |
| #******************************************************************************* |
| OBJS = uartcrc_mcu.o |
| |
| #******************************************************************************* |
| # include path |
| #******************************************************************************* |
| |
| CFLAGS += -I$(zte_app_path)/include |
| #CFLAGS += -I$(zte_lib_path)/libnvram |
| #CFLAGS += -I$(zte_lib_path)/libsqlite |
| #CFLAGS += -I$(zte_lib_path)/libatutils |
| #CFLAGS += -I$(zte_lib_path)/libsoftap |
| #CFLAGS += -I$(zte_lib_path)/libsoft_timer |
| |
| |
| |
| LDLIBS += -lpthread |
| #LDLIBS += -lnvram -L$(zte_lib_path)/libnvram |
| #LDLIBS += -lsoft_timer -L$(zte_lib_path)/libsoft_timer |
| #LDLIBS += -latutils -L$(zte_lib_path)/libatutils |
| #LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap |
| |
| |
| #******************************************************************************* |
| # targets |
| #******************************************************************************* |
| all: $(EXEC) |
| |
| $(EXEC): $(OBJS) |
| $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| @cp $@ $@.elf |
| |
| romfs: |
| $(ROMFSINST) $(EXEC) /bin/$(EXEC) |
| |
| clean: |
| -rm -f $(EXEC) *.elf *.gdb *.o |
| |