1 TOP := $(shell dirname `pwd -P`)
4 include ../Makefile.head
6 CXXINCS += -I$(BUILDDIR)/include -Iinclude
11 # Must come first; contains entry code
12 include arch/$(ARCH)/Makefile
19 include tests/Makefile
21 TARGETS := $(BUILDDIR)/kernel $(BUILDDIR)/kernel.stripped
22 RAW_LIBS := c/libfreestanding.a
23 LIBS += $(RAW_LIBS:%=$(ARCHBUILDDIR)/user/lib/%)
27 @echo kernel: Creating arch symlink
28 @$(RM) $(BUILDDIR)/include/arch
29 @$(LN) $(shell pwd)/include/arch-$(ARCH) $(BUILDDIR)/include/arch
33 include ../Makefile.tail
35 # Must come last: contains kernel target
36 include arch/$(ARCH)/Makefile.final