1 2cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 3 4obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.s)) 5obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c)) 6obj_cpp := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.cpp)) 7 8obj-y := $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o) 9 10ccflags-y += 11 12ifeq ($(CP_ACCEL_DEBUG),1) 13ccflags-y += -DCP_ACCEL_DEBUG 14endif 15 16