#******************************************************************************* | |
# include ZTE application makefile | |
#******************************************************************************* | |
include $(zte_app_mak) | |
##############USER COMIZE BEGIN################ | |
EXEC = at_client | |
OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) | |
CFLAGS += -I$(zte_app_path)/include | |
CFLAGS += -I../com | |
LDLIBS += -lpthread | |
LDLIBS += -lcom -L../com | |
##############USER COMIZE END################## | |
#******************************************************************************* | |
# targets | |
#******************************************************************************* | |
all: $(EXEC) | |
$(EXEC): $(OBJS) | |
$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group | |
@cp $@ $@.elf | |
romfs: | |
$(ROMFSINST) $(EXEC) /sbin/$(EXEC) | |
clean: | |
-rm -f $(EXEC) *.elf *.gdb *.o |