pinebuds/apps/voice_detector/Makefile
2022-08-15 17:20:27 +08:00

24 lines
559 B
Makefile

cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
obj-y := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c $(cur_dir)*.cpp $(cur_dir)*.S))
obj-y := $(obj-y:.c=.o)
obj-y := $(obj-y:.cpp=.o)
obj-y := $(obj-y:.S=.o)
subdir-ccflags-y += \
-Iservices/bt_app \
-Iplatform/drivers/ana \
-Iapps/voice_detector \
-Iservices/audio_dump/include \
-Ithirdparty/cyberon_lib/include \
-Ithirdparty/cyberon_lib/src \
-Iservices/multimedia/speech/inc
ifeq ($(VD_TEST),1)
subdir-ccflags-y += -DVD_TEST
endif
ifeq ($(I2C_VAD),1)
subdir-ccflags-y += -DI2C_VAD
endif