1 CLI_DEBUG ?= y 2 CLI_STATIC_LIB ?= y 3 SG ?= n 4 5 LOCAL_PATH := $(call my-dir) 6 include $(CLEAR_VARS) 7 8 LOCAL_MODULE = libWifiApi 9 10 ifeq ($(CLI_DEBUG),y) 11 CLI_DEBUGFLAGS = -O0 -g -fno-builtin -DDEBUG -D TI_DBG # "-O" is needed to expand inlines 12 else 13 CLI_DEBUGFLAGS = -O2 14 endif 15 16 CLI_STA_DK_ROOT = $(LOCAL_PATH)/../.. 17 CLI_CUDK_ROOT = $(LOCAL_PATH)/.. 18 19 20 LOCAL_SRC_FILES := \ 21 ../OAL/Common/TI_OAL.cpp \ 22 ../OAL/Pform/Linux/TILibLinux.cpp \ 23 TI_AdapterApi.cpp \ 24 TI_Adapter.cpp \ 25 CTI_Adapter.cpp \ 26 ../IPC/Linux/ipc_event.c \ 27 ../IPC/Linux/cu_ipc.c \ 28 ../IPC/Linux/ipc_user.c 29 30 ifeq ($(SG), y) 31 LOCAL_CFLAGS += -D BTH_COEXISTENCE 32 endif 33 34 INCLUDEDIR = $(CLI_CUDK_ROOT)/Inc \ 35 $(CLI_CUDK_ROOT)/OAL/Common \ 36 $(CLI_CUDK_ROOT)/UtilityAdapter \ 37 $(CLI_STA_DK_ROOT)/common/inc \ 38 $(CLI_STA_DK_ROOT)/pform/linux/inc \ 39 $(CLI_STA_DK_ROOT)/pform/common/inc \ 40 $(CLI_CUDK_ROOT)/IPC/Linux \ 41 $(CLI_STA_DK_ROOT)/common/src/hal/FirmwareApi \ 42 $(CLI_CUDK_ROOT)/CLI 43 44 LOCAL_CFLAGS += -Wall -D__LINUX__ $(CLI_DEBUGFLAGS) -mabi=aapcs-linux -DHOST_COMPILE 45 46 LOCAL_C_INCLUDES := $(INCLUDEDIR) 47 LOCAL_MODULE_TAGS := tests 48 49 ifeq ($(CLI_STATIC_LIB),y) 50 include $(BUILD_STATIC_LIBRARY) 51 else 52 include $(BUILD_SHARED_LIBRARY) 53 endif 54