Makefile 566 B

12345678910111213141516171819202122
  1. # this was called from the Makefile in /,
  2. # and we just tell it what objects that he should make.
  3. # must be the first, as we call it first.
  4. obj-i = arch_mm.c arch_int.c
  5. %.S.o: %.S
  6. @$(AS) $*.S -o $*.o -m$(BITS)
  7. @echo "AS $*.S"
  8. target: $(obj-i)
  9. ifeq ($(D), )
  10. @echo "this should call from the Makefile in directory /, but not typing make in kernel/. :-(" >&2
  11. @exit 1
  12. endif
  13. # $(PWD) is the / directory of kernel, e.g. /root/evx/
  14. @python generate.py
  15. @echo "GEN arch_int"
  16. @$(MAKE) -C $(PWD) D=$(shell pwd) obj-i="$(obj-i)"