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 += -Iplatform/hal \
9          -Iutils/heap \
10          -Iplatform/drivers/ana
11
12ifeq ($(FLASH_SUSPEND),1)
13CFLAGS_norflash_api.o += -DFLASH_SUSPEND
14endif
15
16ifeq ($(USB_AUDIO_APP),1)
17ifneq ($(BTUSB_AUDIO_MODE),1)
18FLASH_API_SIMPLE ?= 1
19endif
20endif
21
22ifeq ($(FLASH_API_SIMPLE),1)
23CFLAGS_norflash_api.o += -DFLASH_API_SIMPLE
24else
25ifeq ($(FLASH_API_HIGHPERFORMANCE),1)
26CFLAGS_norflash_api.o += -DFLASH_API_HIGHPERFORMANCE
27else
28CFLAGS_norflash_api.o += -DFLASH_API_NORMAL
29endif
30endif
31