# this was called from the Makefile in /, # and we just tell it what objects that he should make. obj-i = mm.c target: ifeq ($(D), ) @echo "this should call from the Makefile in directory /, but not typing make in kernel/. :-(" >&2 @exit 1 endif # $(PWD) is the / directory of kernel, e.g. /root/evx/ @$(MAKE) -C $(PWD) D=$(shell pwd) obj-i="$(obj-i)"