blob: 1a3a95c26b678f807b01a861efe0954a7fc17df4 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(zte_app_mak)
5
6##############USER COMIZE BEGIN################
7EXEC = at_client
8OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
9
10
11CFLAGS += -I$(zte_app_path)/include
12CFLAGS += -I../com
13
14LDLIBS += -lpthread
15LDLIBS += -lcom -L../com
16
17##############USER COMIZE END##################
18
19#*******************************************************************************
20# targets
21#*******************************************************************************
22all: $(EXEC)
23
24$(EXEC): $(OBJS)
25 $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
26 @cp $@ $@.elf
27
28romfs:
29 $(ROMFSINST) $(EXEC) /sbin/$(EXEC)
30
31clean:
32 -rm -f $(EXEC) *.elf *.gdb *.o