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