lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # include ZTE library makefile |
| 3 | #******************************************************************************* |
| 4 | include $(zte_lib_mak) |
| 5 | |
| 6 | ##############USER COMIZE BEGIN################ |
| 7 | |
| 8 | LIB_STATIC = libwlan_interface.a |
| 9 | LIB_SHARED = libwlan_interface.so |
| 10 | |
| 11 | ifneq ($(CONFIG_WIFI_MODULE), ) |
| 12 | ifeq ($(CONFIG_WIFI_MODULE), realtek) |
| 13 | OBJS = $(CONFIG_WIFI_MODULE)_interface.o |
| 14 | else |
| 15 | OBJS = hostapd_interface.o |
| 16 | endif |
| 17 | |
| 18 | ifeq ($(CONFIG_WIFI_SINGLEAP), yes) |
| 19 | CFLAGS += -D__SINGLE_AP__ |
| 20 | endif |
| 21 | |
| 22 | else |
| 23 | CFLAGS += -D__NO_WIFI__ |
| 24 | endif |
| 25 | |
| 26 | OBJS += interface_util.o |
| 27 | |
| 28 | CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc |
| 29 | CFLAGS += -I$(zte_lib_path)/libatutils |
| 30 | CFLAGS += -I$(LINUX_DIR)/include |
| 31 | CFLAGS += -g |
| 32 | |
| 33 | |
| 34 | ##############USER COMIZE END################## |
| 35 | |
| 36 | CFLAGS += -I$(zte_app_path)/include |
| 37 | CFLAGS += -fPIC |
| 38 | LDFLAGS += -shared |
| 39 | |
| 40 | all: $(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 | |
| 48 | romfs: |
| 49 | $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED) |
| 50 | |
| 51 | clean: |
| 52 | -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| 53 | |