1cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 2 3obj-y := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c $(cur_dir)*.S)) 4obj-y := $(filter-out %Functions.c,$(obj-y)) 5obj-y := $(obj-y:.c=.o) 6obj-y := $(obj-y:.S=.o) 7