Makefile 364 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 += b.c
  4. target:
  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)"