blob: 49abebce8e09e837dd574d2ea18ff19c05e8f1a1 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(zte_app_mak)
5
6##############USER COMIZE BEGIN################
7EXEC = zte_amt
8C_SOURCE = $(wildcard ./*.c)
9OBJS = $(subst .c,.o,$(C_SOURCE))
10
11CFLAGS += -I$(zte_app_path)/include
12CFLAGS += -I$(zte_lib_path)/libnvram
13CFLAGS += -I$(zte_lib_path)/libsqlite
14CFLAGS += -I$(zte_lib_path)/libnetapi
15CFLAGS += -I$(zte_lib_path)/libzcore/std/inc/pal/dm
16CFLAGS += -I$(zte_lib_path)/libzcore/std/inc/zCore/gui
17CFLAGS += -g
18CFLAGS += -Wextra -Wall
19#CFLAGS += -I../../../linux-3.4.x
20CFLAGS += -I$(LINUX_DIR)/include
21CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/nv
22CFLAGS += -I$(zte_lib_path)/libamt
23ifeq ($(USE_VOICE_SUPPORT),yes)
24CFLAGS += -I$(zte_lib_path)/libtinyalsa/include
25endif
26LDLIBS = -lpthread -lm
27LDLIBS += -lnvram_sc -L$(zte_lib_path)/libnvram
28LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap
29LDLIBS += -lsoft_timer_sc -L$(zte_lib_path)/libsoft_timer
30LDLIBS += -lcpnv -L$(zte_lib_path)/libcpnv
xf.liaa4d92f2023-09-13 00:18:58 -070031ifeq ($(USE_NVRO_BACKUP),yes)
32LDLIBS += -lcrypto -L$(zte_lib_path)/libssl/install/lib
33LDLIBS += -lflags -L$(zte_lib_path)/libflags
34endif
lh9ed821d2023-04-07 01:36:19 -070035LDLIBS += -lamt -L$(zte_lib_path)/libamt
36ifeq ($(USE_VOICE_SUPPORT),yes)
37LDLIBS += -ltinyalsa -L$(zte_lib_path)/libtinyalsa
38endif
39
40ifeq ($(USE_VOICE_SUPPORT),yes)
41CFLAGS += -D_USE_VOICE_SUPPORT
42endif
43
44#wifi
45ifeq ($(CONFIG_WIFI_MODULE),ssv6x5x)
46CFLAGS += -D__SSV_6X5X_CHIP__
47else ifeq ($(CONFIG_WIFI_MODULE),aic8800)
48CFLAGS += -D__AIC_8800DW_CHIP__
49endif
50
51##############USER COMIZE END##################
52
53#*******************************************************************************
54# targets
55#*******************************************************************************
56all: $(EXEC)
57
58$(EXEC): $(OBJS)
59 $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
60 @cp $@ $@.elf
61
62romfs:
63 $(ROMFSINST) $(EXEC) /bin/$(EXEC)
64
65clean:
66 -rm -f $(EXEC) *.elf *.gdb *.o