dir_sync1 := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) c_files += $(dir_sync1)/spinlock.c o_files += $(dir_sync1)/spinlock.o