54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
|
|
cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
ifeq ($(ENHANCED_STACK),1)
|
|
obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)bridge_v2.c))
|
|
else
|
|
obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)bridge.c))
|
|
endif
|
|
|
|
BTBRIDGE_LIB_NAME := $(CHIP)_libbridge
|
|
|
|
ifeq ($(HFP_1_6_ENABLE), 1)
|
|
BTBRIDGE_LIB_NAME := $(BTBRIDGE_LIB_NAME)_sbc_enc
|
|
endif
|
|
|
|
$(BTBRIDGE_LIB_NAME)-y := $(obj_c:.c=.o)
|
|
|
|
obj-y := $(BTBRIDGE_LIB_NAME).a
|
|
|
|
PROF_INC :=
|
|
|
|
|
|
subdir-ccflags-y += \
|
|
-Iservices/bridge/ \
|
|
-Iservices/ble_stack/common/api/ \
|
|
-Iservices/ble_stack/hl/inc/ \
|
|
-Iservices/ble_stack/hl/api/ \
|
|
-Iservices/ble_stack/hl/src/gap/ \
|
|
-Iservices/ble_stack/hl/src/gap/gapc/ \
|
|
-Iservices/ble_stack/hl/src/gap/gapm/ \
|
|
-Iservices/ble_stack/hl/src/gap/smpc/ \
|
|
-Iservices/ble_stack/ke/api/ \
|
|
-Iservices/ble_stack/ke/src/ \
|
|
-Iservices/ble_stack/hl/src/gatt/attc/ \
|
|
-Iservices/ble_stack/hl/src/gatt/attm/ \
|
|
-Iservices/ble_stack/hl/src/gatt/atts/ \
|
|
-Iservices/ble_stack/hl/src/gatt/gattc/ \
|
|
-Iservices/ble_stack/hl/src/gatt/gattm/ \
|
|
-Iservices/ble_stack/hl/src/gatt/ \
|
|
-Iservices/ble_stack/hl/src/l2c/l2cc/ \
|
|
-Iservices/ble_stack/hl/src/l2c/l2cm/ \
|
|
-Iservices/ble_stack/hci/api/ \
|
|
-Iservices/ble_stack/hci/src/ \
|
|
-Iservices/ble_stack/dbg/api/ \
|
|
-Iservices/ble_stack/dbg/src/ \
|
|
-Iservices/ble_stack/ble_ip/ \
|
|
-Iutils/intersyshci/ \
|
|
-Iplatform/drivers/bt/ \
|
|
-Iservices/bt_app/ \
|
|
-Iservices/osif/ \
|
|
$(BT_IF_INCLUDES) \
|
|
$(BT_PROFILES_INCLUDES)
|
|
|
|
|