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/customparam_section \ 11 -I$(obj)/../../nv_section/include \ 12 -I$(obj)/../platform/cmsis/inc \ 13 -Ithirdparty/bluetooth/bt_host/bt_common/include/common \ 14 -Ithirdparty/bluetooth/bt_host/bt_common/include/net \ 15 -Ithirdparty/bluetooth/bt_host/bt_common/include/misc \ 16 -Ithirdparty/bluetooth/bt_host/bt_common/include/zephyr \ 17 -Ithirdparty/bluetooth/bt_host/bt_common/port/include \ 18 -Ithirdparty/bluetooth/bt_host/bt_common/tinycrypt/include \ 19 -Ithirdparty/bluetooth/bt_host/bt_common/tinycrypt/include/tinycrypt \ 20 -Iutils/crc32 \ 21