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