blob: 5b214507d03a1f300bcd95632b9783dab33dca8d [file] [log] [blame]
xf.libdd93d52023-05-12 07:10:14 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(zte_app_mak)
5include $(COMMON_MK)
6
7#*******************************************************************************
8# execute
9#*******************************************************************************
10EXEC = uartcrc_mcu
11
12#*******************************************************************************
13# objects
14#*******************************************************************************
15OBJS = uartcrc_mcu.o
16
17#*******************************************************************************
18# include path
19#*******************************************************************************
20
21CFLAGS += -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
30LDLIBS += -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#*******************************************************************************
40all: $(EXEC)
41
42$(EXEC): $(OBJS)
43 $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
44 @cp $@ $@.elf
45
46romfs:
47 $(ROMFSINST) $(EXEC) /bin/$(EXEC)
48
49clean:
50 -rm -f $(EXEC) *.elf *.gdb *.o
51