Makefile 764 B

123456789101112131415161718192021222324252627282930313233
  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. # $(PWD) is the / directory of kernel, e.g. /root/evx/
  12. @$(MAKE) -C $(PWD) D=$(shell pwd) obj-i="$(obj-i)"
  13. vmevx.o: $(PWD)/.objlist
  14. @cat $(PWD)/.objlist | xargs $(LD) -o vmevx.o -T vmevx.lds
  15. @echo "LD vmevx.o"
  16. vmevx.bin: vmevx.o
  17. @objcopy -S -R ".comment" -R ".eh_frame" -O binary vmevx.o vmevx.bin
  18. boot: vmevx.bin
  19. @$(MAKE) -C boot/
  20. .PHONY clean:
  21. @$(MAKE) -C boot/ clean
  22. @$(MAKE) -C init/ clean