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

17 lines
422 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 += \
-Iplatform/drivers/ana \
-Iservices/ibrt_ui/inc \
-Iservices/ibrt_core/inc
ifeq ($(RAND_FROM_MIC),1)
subdir-ccflags-y += \
-Iservices/bt_app \
-Iservices/app_ai/inc
endif