1CLI_DEBUG ?= y
2CLI_STATIC_LIB ?= y
3SG ?= n
4
5LOCAL_PATH := $(call my-dir)
6include $(CLEAR_VARS)
7
8LOCAL_MODULE = libWifiApi
9
10ifeq ($(CLI_DEBUG),y)
11  CLI_DEBUGFLAGS = -O0 -g -fno-builtin -DDEBUG -D TI_DBG  # "-O" is needed to expand inlines
12else
13  CLI_DEBUGFLAGS = -O2
14endif
15
16CLI_STA_DK_ROOT = $(LOCAL_PATH)/../..
17CLI_CUDK_ROOT = $(LOCAL_PATH)/..
18
19
20LOCAL_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
30ifeq ($(SG), y)
31LOCAL_CFLAGS += -D BTH_COEXISTENCE
32endif
33
34INCLUDEDIR = $(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
44LOCAL_CFLAGS += -Wall -D__LINUX__ $(CLI_DEBUGFLAGS) -mabi=aapcs-linux -DHOST_COMPILE
45
46LOCAL_C_INCLUDES := $(INCLUDEDIR)
47LOCAL_MODULE_TAGS := tests
48
49ifeq ($(CLI_STATIC_LIB),y)
50include $(BUILD_STATIC_LIBRARY)
51else
52include $(BUILD_SHARED_LIBRARY)
53endif
54