Makefile 505 B

1234567891011121314151617181920212223
  1. # this was called from the Makefile in /,
  2. # and we just tell it what objects that he should make.
  3. asm = boot/boot32.S boot/setup32.S
  4. asmobj = boot/boot32.S.o boot/setup32.S.o
  5. obj-i +=
  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. @$(MAKE) -C boot/
  12. # $(PWD) is the / directory of kernel, e.g. /root/evx/
  13. @$(MAKE) -C $(PWD) D=$(shell pwd) obj-i="$(obj-i)"
  14. .PHONY clean:
  15. @$(MAKE) -C boot/ clean