1cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 2obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.s)) 3obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c)) 4obj_cpp := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.cpp)) 5 6src_obj := $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o) 7 8obj-y := $(src_obj) 9 10subdir-ccflags-y += -Iservices/audioflinger