1cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
2
3obj-y := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c $(cur_dir)*.cpp $(cur_dir)*.S))
4obj-y := $(obj-y:.c=.o)
5obj-y := $(obj-y:.cpp=.o)
6obj-y := $(obj-y:.S=.o)
7
8ccflags-y += \
9    -Iutils/hexdump \
10    -Iapps/key \
11    -Iservices/bt_app \
12    $(BT_IF_INCLUDES) \
13    -Iutils/crc32 \
14    -Iplatform/drivers/ana \
15    -Iservices/nv_section/customparam_section \
16    -Iservices/ble_stack/common/api \
17    -Iservices/ble_stack/ble_ip \
18    -Iutils/heap \
19    -Iservices/norflash_api \
20    -Iservices/nv_setion/userdata_section
21
22CFLAGS_nvrecord.o += -DAUDIO_OUTPUT_VOLUME_DEFAULT=$(AUDIO_OUTPUT_VOLUME_DEFAULT)
23
24ifeq ($(FLASH_SUSPEND),1)
25CFLAGS_nvrecord.o += -DFLASH_SUSPEND
26endif
27
28