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