blob: 1a3a95c26b678f807b01a861efe0954a7fc17df4 [file] [log] [blame]
#*******************************************************************************
# 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