blob: e2b4ed191fe05ac71d8a9518e048b33a95d651db [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(zte_lib_mak)
5
6##############USER COMIZE BEGIN################
7
8LIB_STATIC = libwlan_interface.a
9LIB_SHARED = libwlan_interface.so
10
11ifneq ($(CONFIG_WIFI_MODULE), )
12ifeq ($(CONFIG_WIFI_MODULE), realtek)
13OBJS = $(CONFIG_WIFI_MODULE)_interface.o
14else
15OBJS = hostapd_interface.o
16endif
17
18ifeq ($(CONFIG_WIFI_SINGLEAP), yes)
19CFLAGS += -D__SINGLE_AP__
20endif
21
22else
23CFLAGS += -D__NO_WIFI__
24endif
25
26OBJS += interface_util.o
27
28CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
29CFLAGS += -I$(zte_lib_path)/libatutils
30CFLAGS += -I$(LINUX_DIR)/include
31CFLAGS += -g
32
33
34##############USER COMIZE END##################
35
36CFLAGS += -I$(zte_app_path)/include
37CFLAGS += -fPIC
38LDFLAGS += -shared
39
40all: $(LIB_STATIC) $(LIB_SHARED)
41
42$(LIB_STATIC) : $(OBJS)
43 $(AR) rcs $(LIB_STATIC) $(OBJS)
44
45$(LIB_SHARED): $(OBJS)
46 $(CC) $(LDFLAGS) -o $@ $^
47
48romfs:
49 $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
50
51clean:
52 -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
53