blob: 6814737943140560410acdd47f1085e53da4d20c [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(zte_app_mak)
5
6##############USER COMIZE BEGIN################
7
8EXEC = socket_demo
9OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
10
11CFLAGS += -I.
12CFLAGS += -I$(zte_app_path)/include
13
14
15CFLAGS += -g
16CFLAGS += -g -Werror=implicit-function-declaration
17
18LDLIBS += -lpthread
19
20#*******************************************************************************
21# targets
22#*******************************************************************************
23all: $(EXEC)
24
25$(EXEC): $(OBJS)
26 $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
27 @cp $@ $@.elf
28
29romfs:
30 $(ROMFSINST) $(EXEC) /sbin/$(EXEC)
31
32clean:
33 -rm -f $(EXEC) *.elf *.gdb *.o
34
35