TOP := $(shell dirname `pwd -P`) COMP := kernel BUILDTYPE := kernel include ../Makefile.head CXXINCS += -I$(BUILDDIR)/include -Iinclude DEFS += -D_KERNEL ASFLAGS += $(CXXINCS) # Must come first; contains entry code include arch/$(ARCH)/Makefile include core/Makefile include mem/Makefile include io/Makefile include orb/Makefile include lib/Makefile include tests/Makefile TARGETS := $(BUILDDIR)/kernel $(BUILDDIR)/kernel.stripped .PHONY: symlinks symlinks: @echo kernel: Creating arch symlink @$(RM) $(BUILDDIR)/include/arch @$(LN) $(shell pwd)/include/arch-$(ARCH) $(BUILDDIR)/include/arch PREDEP := symlinks include ../Makefile.tail # Must come last: contains kernel target include arch/$(ARCH)/Makefile.final