1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 STATIC_LIB ?= y 5 DEBUG ?= y 6 HOST_PLATFORM ?= wipp 7 8 WILINK_ROOT = ../.. 9 CUDK_ROOT = $(WILINK_ROOT)/CUDK 10 11 ifeq ($(DEBUG),y) 12 DEBUGFLAGS = -O2 -g -DDEBUG -DTI_DBG -fno-builtin # "-O" is needed to expand inlines 13 # DEBUGFLAGS+= -DDEBUG_MESSAGES 14 else 15 DEBUGFLAGS = -O2 16 endif 17 18 COMMON = $(WILINK_ROOT)/stad 19 20 ARMFLAGS = -fno-common -g -fno-builtin -Wall #-pipe 21 22 LOCAL_C_INCLUDES = \ 23 $(LOCAL_PATH)/$(CUDK_ROOT)/os/common/inc \ 24 $(LOCAL_PATH)/$(WILINK_ROOT)/platforms/os/common/inc \ 25 $(LOCAL_PATH)/$(WILINK_ROOT)/platforms/os/linux/inc \ 26 $(LOCAL_PATH)/$(WILINK_ROOT)/stad/Export_Inc \ 27 $(LOCAL_PATH)/$(WILINK_ROOT)/stad/src/Sta_Management \ 28 $(LOCAL_PATH)/$(WILINK_ROOT)/stad/src/Connection_Managment \ 29 $(LOCAL_PATH)/$(WILINK_ROOT)/stad/src/Application \ 30 $(LOCAL_PATH)/$(WILINK_ROOT)/utils \ 31 $(LOCAL_PATH)/$(WILINK_ROOT)/Txn \ 32 $(LOCAL_PATH)/$(WILINK_ROOT)/TWD/TWDriver \ 33 $(LOCAL_PATH)/$(WILINK_ROOT)/TWD/FirmwareApi \ 34 $(LOCAL_PATH)/$(WILINK_ROOT)/TWD/FW_Transfer/Export_Inc \ 35 $(LOCAL_PATH)/$(WILINK_ROOT)/TWD/TwIf \ 36 $(LOCAL_PATH)/$(CUDK_ROOT)/os/linux/inc \ 37 $(LOCAL_PATH)/$(KERNEL_DIR)/include 38 39 LOCAL_SRC_FILES:= \ 40 tiwlan_loader.c 41 42 LOCAL_CFLAGS+= -Wall -Wstrict-prototypes $(DEBUGFLAGS) -D__LINUX__ $(DK_DEFINES) -D__BYTE_ORDER_LITTLE_ENDIAN -DDRV_NAME='"tiwlan"' 43 44 LOCAL_CFLAGS += $(ARMFLAGS) 45 46 LOCAL_LDLIBS += -lpthread 47 48 LOCAL_STATIC_LIBRARIES := \ 49 libtiOsLib 50 51 LOCAL_SHARED_LIBRARIES := \ 52 libc libcutils libhardware_legacy 53 54 LOCAL_MODULE:= wlan_loader 55 56 include $(BUILD_EXECUTABLE) 57