1 2cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 3 4obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c)) 5obj_cpp := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.cpp)) 6 7obj-y := $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o) 8 9ccflags-y := \ 10 -I$(obj)/../../nv_section/fpga_section \ 11 -I$(obj)/../../nv_section/include \ 12 -I$(obj)/../platform/cmsis/inc \ 13 -Iutils/crc32 \ 14 $(BT_IF_INCLUDES) \ 15 -Iutils/hexdump \ 16 -Iapps/key \ 17 -Iservices/bt_app \ 18 -Iplatform/drivers/ana \ 19 -Iservices/nv_section/customparam_section \ 20 -Iservices/ble_stack/common/api \ 21 -Iservices/ble_stack/ble_ip \ 22 -Iutils/heap \ 23 -Iservices/nvrecord \ 24 -Iservices/norflash_api \ 25 -Iservices/nv_setion/userdata_section \ 26 -Iplatform/drivers/norflash \ 27 -Iplatform/hal \ 28 -Iplatform/cmsis/inc 29 30ccflags-y += -DAUDIO_OUTPUT_VOLUME_DEFAULT=$(AUDIO_OUTPUT_VOLUME_DEFAULT) 31 32ifeq ($(FLASH_SUSPEND),1) 33ccflags-y += -DFLASH_SUSPEND 34endif 35 36ifeq ($(TX_IQ_CAL),1) 37subdir-ccflags-y += -DTX_IQ_CAL 38endif 39 40