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