1EFIOBJ-y := boot.init.o pe.init.o ebmalloc.o runtime.o 2EFIOBJ-$(CONFIG_COMPAT) += compat.o 3 4CFLAGS-y += -fshort-wchar 5CFLAGS-y += -fno-jump-tables 6CFLAGS-y += -iquote $(srctree)/common/efi 7CFLAGS-y += -iquote $(srcdir) 8 9source := 10ifneq ($(abs_objtree),$(abs_srctree)) 11source := source/ 12endif 13 14# Part of the command line transforms $(obj) 15# e.g.: It transforms "dir/foo/bar" into successively 16# "dir foo bar", ".. .. ..", "../../.." 17$(obj)/%.c: $(srctree)/common/efi/%.c FORCE 18 $(Q)ln -nfs $(subst $(space),/,$(patsubst %,..,$(subst /, ,$(obj))))/$(source)common/efi/$(<F) $@ 19 20clean-files += $(patsubst %.o, %.c, $(EFIOBJ-y:.init.o=.o) $(EFIOBJ-)) 21clean-files += common-stub.c 22 23.PRECIOUS: $(obj)/%.c 24