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