lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # include ZTE library makefile |
| 3 | #******************************************************************************* |
| 4 | include $(COMMON_MK) |
| 5 | |
| 6 | ##############USER COMIZE BEGIN################ |
| 7 | #include ../net_team.mk |
| 8 | |
| 9 | ifeq ($(USE_DSDS_VSIM),yes) |
| 10 | CFLAGS += -DUSE_DSDS_VSIM |
| 11 | endif |
| 12 | |
| 13 | LIB_STATIC = libatext.a |
| 14 | LIB_SHARED = libatext.so |
| 15 | |
| 16 | OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) |
| 17 | |
| 18 | CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc |
| 19 | CFLAGS += -I$(zte_lib_path)/libatutils |
| 20 | CFLAGS += -I$(zte_lib_path)/libnvram |
| 21 | CFLAGS += -I$(zte_lib_path)/libamt |
| 22 | CFLAGS += -I$(LINUX_DIR)/include |
| 23 | CFLAGS += -g -Werror=implicit-function-declaration |
| 24 | CFLAGS += -I$(APP_DIR)/include |
| 25 | |
| 26 | CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/nv |
| 27 | CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/drv |
| 28 | CFLAGS += -I/$(CP_ROOT_DIR)/ps/driver/inc/misc |
| 29 | |
| 30 | ##############USER COMIZE END################## |
| 31 | CFLAGS += -I$(zte_app_path)/include |
| 32 | CFLAGS += -fPIC |
| 33 | LDFLAGS += -shared |
| 34 | |
| 35 | |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 36 | ifeq ($(USE_VOICE_AT),yes) |
| 37 | CFLAGS += -I$(zte_lib_path)/libtinyalsa/include |
| 38 | CFLAGS += -I$(zte_lib_path)/libvoice/include |
| 39 | LDLIBS += -L$(zte_lib_path)/libvoice |
| 40 | LDLIBS += -lvoice |
| 41 | LDLIBS += -L$(zte_lib_path)/libtinyalsa |
| 42 | LDLIBS += -ltinyalsa |
| 43 | endif |
| 44 | |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 45 | all: $(LIB_STATIC) $(LIB_SHARED) |
| 46 | |
| 47 | $(LIB_STATIC) : $(OBJS) |
| 48 | $(AR) rcs $(LIB_STATIC) $(OBJS) |
| 49 | |
| 50 | $(LIB_SHARED): $(OBJS) |
| 51 | $(CC) $(LDFLAGS) -o $@ $^ -lm |
| 52 | |
| 53 | romfs: |
| 54 | $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED) |
| 55 | |
| 56 | clean: |
| 57 | -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| 58 | |