xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame^] | 1 | #******************************************************************************* |
| 2 | # include ZTE application makefile |
| 3 | #******************************************************************************* |
| 4 | include $(zte_app_mak) |
| 5 | include $(COMMON_MK) |
| 6 | |
| 7 | #******************************************************************************* |
| 8 | # execute |
| 9 | #******************************************************************************* |
| 10 | EXEC = uartcrc_mcu |
| 11 | |
| 12 | #******************************************************************************* |
| 13 | # objects |
| 14 | #******************************************************************************* |
| 15 | OBJS = uartcrc_mcu.o |
| 16 | |
| 17 | #******************************************************************************* |
| 18 | # include path |
| 19 | #******************************************************************************* |
| 20 | |
| 21 | CFLAGS += -I$(zte_app_path)/include |
| 22 | #CFLAGS += -I$(zte_lib_path)/libnvram |
| 23 | #CFLAGS += -I$(zte_lib_path)/libsqlite |
| 24 | #CFLAGS += -I$(zte_lib_path)/libatutils |
| 25 | #CFLAGS += -I$(zte_lib_path)/libsoftap |
| 26 | #CFLAGS += -I$(zte_lib_path)/libsoft_timer |
| 27 | |
| 28 | |
| 29 | |
| 30 | LDLIBS += -lpthread |
| 31 | #LDLIBS += -lnvram -L$(zte_lib_path)/libnvram |
| 32 | #LDLIBS += -lsoft_timer -L$(zte_lib_path)/libsoft_timer |
| 33 | #LDLIBS += -latutils -L$(zte_lib_path)/libatutils |
| 34 | #LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap |
| 35 | |
| 36 | |
| 37 | #******************************************************************************* |
| 38 | # targets |
| 39 | #******************************************************************************* |
| 40 | all: $(EXEC) |
| 41 | |
| 42 | $(EXEC): $(OBJS) |
| 43 | $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| 44 | @cp $@ $@.elf |
| 45 | |
| 46 | romfs: |
| 47 | $(ROMFSINST) $(EXEC) /bin/$(EXEC) |
| 48 | |
| 49 | clean: |
| 50 | -rm -f $(EXEC) *.elf *.gdb *.o |
| 51 | |