[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/lib/libwlan_interface/Makefile b/ap/lib/libwlan_interface/Makefile
new file mode 100755
index 0000000..e2b4ed1
--- /dev/null
+++ b/ap/lib/libwlan_interface/Makefile
@@ -0,0 +1,53 @@
+#*******************************************************************************
+# include ZTE library makefile
+#*******************************************************************************
+include $(zte_lib_mak)
+
+##############USER COMIZE BEGIN################
+
+LIB_STATIC = libwlan_interface.a
+LIB_SHARED = libwlan_interface.so
+
+ifneq ($(CONFIG_WIFI_MODULE), )
+ifeq ($(CONFIG_WIFI_MODULE), realtek)
+OBJS = $(CONFIG_WIFI_MODULE)_interface.o
+else
+OBJS = hostapd_interface.o
+endif
+
+ifeq ($(CONFIG_WIFI_SINGLEAP), yes)
+CFLAGS += -D__SINGLE_AP__
+endif
+
+else
+CFLAGS += -D__NO_WIFI__
+endif
+
+OBJS += interface_util.o
+
+CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
+CFLAGS += -I$(zte_lib_path)/libatutils
+CFLAGS += -I$(LINUX_DIR)/include
+CFLAGS += -g
+
+
+##############USER COMIZE END##################
+
+CFLAGS += -I$(zte_app_path)/include
+CFLAGS += -fPIC
+LDFLAGS += -shared
+
+all: $(LIB_STATIC) $(LIB_SHARED)
+
+$(LIB_STATIC) : $(OBJS)
+ $(AR) rcs $(LIB_STATIC) $(OBJS)
+
+$(LIB_SHARED): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $^
+
+romfs:
+ $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
+
+clean:
+ -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
+