#这个makefile是依据linux的Makefile手工转化得到
#子目录中makefile的目标只是虚拟的,linux不存在这些目标,我们主要为了方便
#from /Makefile
#vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o $(kallsyms.o) FORCE
srctree := ./
hdr-arch := x86
BITS := 32
export srctree hdr-arch BITS

USERINCLUDE    := \
		-I$(srctree)/arch/$(hdr-arch)/include/uapi \
		-I$(srctree)/include/uapi \
		-Iarch/powerpc/include \
		-Iinclude/uapi \
		-I$(srctree)/arch/powerpc/include
#                -include $(srctree)/include/linux/kconfig.h

LINUXINCLUDE    := \
		-I$(srctree)/arch/$(hdr-arch)/include \
		-Iarch/$(hdr-arch)/include/uapi \
		-I$(srctree)/include \
		-I$(srctree)/include/uapi

ARCH_SH_IN = arch/sh/include/uapi

export USERINCLUDE LINUXINCLUDE ARCH_SH_IN

	make -f lib/lib.mk
	make -f arch/x86/lib/lib.mk
	make -f arch/x86/boot/ple.mk
	make -f arch/x86/kernel/head.mk
	make -f arch/x86/kernel/archkernel.mk
	make -f init/init.mk
	make -f kernel/kernel.mk