blob: 546453aa3da8406f17e81226ace5bb7253477563 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6WORKPATH = $(zte_lib_path)
7SOFT_TIMER_PATH = $(zte_lib_path)/libsoft_timer
8#*******************************************************************************
9# execute
10#*******************************************************************************
11EXEC = zte_log_agent
12
13#*******************************************************************************
14# objects
15#*******************************************************************************
16c_sources = $(wildcard *.c)
17
18OBJS=$(c_sources:%c=%o)
19
20#*******************************************************************************
21# include path
22#*******************************************************************************
23CFLAGS += -I./../include \
24 -I$(zte_app_path)/include \
25 -I$(zte_lib_path)/libnvram
26CFLAGS += -g
27
28#*******************************************************************************
29# library
30#*******************************************************************************
31LDLIBS += -lpthread
32LDLIBS += -lnvram_sc -L$(zte_lib_path)/libnvram
33
34
35#*******************************************************************************
36# library path
37#*******************************************************************************
38LDLIBS += -L$(zte_lib_path)/libnvram
39
40#*******************************************************************************
41# targets
42#*******************************************************************************
43all: $(EXEC)
44
45$(EXEC): $(OBJS)
46 $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
47
48romfs:
49 cp $(EXEC) $(EXEC).elf
50 $(ROMFSINST) /bin/$(EXEC)
51
52clean:
53 -rm -f $(EXEC) *.elf *.gdb *.o
54