blob: 8233b1e900b4a5c6d2d77d4aaa91b08853877be3 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(zte_app_mak)
5#*******************************************************************************
6# execute
7#*******************************************************************************
8EXEC = uicc_agt_svr
9
10#*******************************************************************************
11# objects
12#*******************************************************************************
13OBJS = uicc_agt_svr.o
14
15#*******************************************************************************
16# include path
17#*******************************************************************************
18CFLAGS += -I. \
19 -I./inc \
20 -I$(zte_app_path)/include \
21 -I$(zte_lib_path)/libzte_vsim/inc \
22 -Wall \
23 -O -Dlinux=1 -DHIGH_SPEED=1 \
24 -g -Werror=implicit-function-declaration
25
26#*******************************************************************************
27# library
28#*******************************************************************************
29LDLIBS += -lpthread
30LDLIBS += -lzte_vsim -L$(zte_lib_path)/libzte_vsim
31LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap
32LDLIBS += -lsoft_timer_sc -L$(zte_lib_path)/libsoft_timer
33LDLIBS += -lnvram_sc -L$(zte_lib_path)/libnvram
34
35
36
37#*******************************************************************************
38# library path
39#*******************************************************************************
40
41#*******************************************************************************
42# targets
43#*******************************************************************************
44all: $(EXEC)
45
46$(EXEC): $(OBJS)
47 $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
48 @cp $@ $@.elf
49
50romfs:
51 $(ROMFSINST) /bin/$(EXEC)
52
53clean:
54 -rm -f $(EXEC) *.elf *.gdb *.o
55