#******************************************************************************* | |
# include ZTE application makefile | |
#******************************************************************************* | |
include $(COMMON_MK) | |
WORKPATH = $(zte_lib_path) | |
SOFT_TIMER_PATH = $(zte_lib_path)/libsoft_timer | |
#******************************************************************************* | |
# execute | |
#******************************************************************************* | |
EXEC = zte_log_agent | |
#******************************************************************************* | |
# objects | |
#******************************************************************************* | |
c_sources = $(wildcard *.c) | |
OBJS=$(c_sources:%c=%o) | |
#******************************************************************************* | |
# include path | |
#******************************************************************************* | |
CFLAGS += -I./../include \ | |
-I$(zte_app_path)/include \ | |
-I$(zte_lib_path)/libnvram | |
CFLAGS += -g | |
#******************************************************************************* | |
# library | |
#******************************************************************************* | |
LDLIBS += -lpthread | |
LDLIBS += -lnvram_sc -L$(zte_lib_path)/libnvram | |
#******************************************************************************* | |
# library path | |
#******************************************************************************* | |
LDLIBS += -L$(zte_lib_path)/libnvram | |
#******************************************************************************* | |
# targets | |
#******************************************************************************* | |
all: $(EXEC) | |
$(EXEC): $(OBJS) | |
$(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group | |
romfs: | |
cp $(EXEC) $(EXEC).elf | |
$(ROMFSINST) /bin/$(EXEC) | |
clean: | |
-rm -f $(EXEC) *.elf *.gdb *.o | |