blob: 13729322efc9b8e19844e3c2d3d753f60c3012eb [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7EXEC1 = zte_locknet
8
9CPU_PUB_ROOT=$(TOPDIR_AP)/../pub
10
11OBJS1 = $(patsubst %.c,%.o,$(wildcard ./src/*.c ))
12
13CFLAGS += -I.
14CFLAGS += -I./inc
15CFLAGS += -I$(zte_app_path)/include
16CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
17CFLAGS += -I$(zte_lib_path)/libsqlite
18CFLAGS += -I$(LINUX_DIR)
19
20CFLAGS += -I$(CPU_PUB_ROOT)/project/zx297520v3/include/nv
21CFLAGS += -O -Dlinux=1 -DHIGH_SPEED=1
22CFLAGS += -g
23CFLAGS += -g -Werror=implicit-function-declaration
24
25LDLIBS += -lnvram_sc -L$(zte_lib_path)/libnvram
26LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap
27LDLIBS += -latutils -L$(zte_lib_path)/libatutils
28LDLIBS += -lsqlite -L$(zte_lib_path)/libsqlite
29LDLIBS += -lsoft_timer_sc -L$(zte_lib_path)/libsoft_timer
30
31LDLIBS += -lm
32LDLIBS += -lpthread -L$(zte_lib_path)/libpthread
33LDLIBS += -lcpnv -L$(zte_lib_path)/libcpnv
34##############USER COMIZE END##################
35
36#*******************************************************************************
37# targets
38#*******************************************************************************
39lib: $(OBJS1)
40 @echo Compiling zte_locknet libraries.
41
42clean:
43 -rm -f $(OBJS1)