blob: 4abe2ee0f0a14e498d4378e6843531b2f6abdac2 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7#include ../net_team.mk
8
9ifeq ($(USE_DSDS_VSIM),yes)
10CFLAGS += -DUSE_DSDS_VSIM
11endif
12
13LIB_STATIC = libatext.a
14LIB_SHARED = libatext.so
15
16OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
17
18CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
19CFLAGS += -I$(zte_lib_path)/libatutils
20CFLAGS += -I$(zte_lib_path)/libnvram
21CFLAGS += -I$(zte_lib_path)/libamt
22CFLAGS += -I$(LINUX_DIR)/include
23CFLAGS += -g -Werror=implicit-function-declaration
24CFLAGS += -I$(APP_DIR)/include
25
26CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/nv
27CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/drv
28CFLAGS += -I/$(CP_ROOT_DIR)/ps/driver/inc/misc
29
30##############USER COMIZE END##################
31CFLAGS += -I$(zte_app_path)/include
32CFLAGS += -fPIC
33LDFLAGS += -shared
34
35
xf.libdd93d52023-05-12 07:10:14 -070036ifeq ($(USE_VOICE_AT),yes)
37CFLAGS += -I$(zte_lib_path)/libtinyalsa/include
38CFLAGS += -I$(zte_lib_path)/libvoice/include
39LDLIBS += -L$(zte_lib_path)/libvoice
40LDLIBS += -lvoice
41LDLIBS += -L$(zte_lib_path)/libtinyalsa
42LDLIBS += -ltinyalsa
43endif
44
lh9ed821d2023-04-07 01:36:19 -070045all: $(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
53romfs:
54 $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
55
56clean:
57 -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
58