Makefile 436 B

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