Makefile 391 B

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