Makefile 412 B

12345678910111213141516
  1. # this was called from the Makefile in /,
  2. # and we just tell it what objects that he should make.
  3. # must be the first, as we call it first.
  4. obj-i = arch_mm.c
  5. target:
  6. ifeq ($(D), )
  7. @echo "this should call from the Makefile in directory /, but not typing make in kernel/. :-(" >&2
  8. @exit 1
  9. endif
  10. # $(PWD) is the / directory of kernel, e.g. /root/evx/
  11. @$(MAKE) -C $(PWD) D=$(shell pwd) obj-i="$(obj-i)"