blob: 5890849e8d8125c1c4c3d631f8b642818cb592cb [file] [log] [blame]
#*******************************************************************************
# include ZTE application makefile
#*******************************************************************************
include $(zte_app_mak)
include $(COMMON_MK)
#*******************************************************************************
# execute
#*******************************************************************************
EXEC = uartcrc_modem
#*******************************************************************************
# objects
#*******************************************************************************
OBJS = uartcrc_modem.o
#*******************************************************************************
# include path
#*******************************************************************************
CFLAGS += -I$(zte_app_path)/include
#CFLAGS += -I$(zte_lib_path)/libnvram
#CFLAGS += -I$(zte_lib_path)/libsqlite
#CFLAGS += -I$(zte_lib_path)/libatutils
#CFLAGS += -I$(zte_lib_path)/libsoftap
#CFLAGS += -I$(zte_lib_path)/libsoft_timer
LDLIBS += -lpthread
#LDLIBS += -lnvram -L$(zte_lib_path)/libnvram
#LDLIBS += -lsoft_timer -L$(zte_lib_path)/libsoft_timer
#LDLIBS += -latutils -L$(zte_lib_path)/libatutils
#LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap
#*******************************************************************************
# targets
#*******************************************************************************
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
@cp $@ $@.elf
romfs:
$(ROMFSINST) $(EXEC) /bin/$(EXEC)
clean:
-rm -f $(EXEC) *.elf *.gdb *.o