]> git.buserror.net Git - polintos/scott/priv.git/blob - kernel/Makefile
Update copyright year.
[polintos/scott/priv.git] / kernel / Makefile
1 TOP := $(shell dirname `pwd -P`)
2 COMP := kernel
3 BUILDTYPE := kernel
4 include ../Makefile.head
5
6 CXXINCS += -I$(BUILDDIR)/include -Iinclude
7 DEFS += -D_KERNEL
8
9 ASFLAGS += $(CXXINCS)
10
11 # Must come first; contains entry code
12 include arch/$(ARCH)/Makefile
13
14 include core/Makefile
15 include mem/Makefile
16 include io/Makefile
17 include orb/Makefile
18 include lib/Makefile
19 include tests/Makefile
20
21 TARGETS := $(BUILDDIR)/kernel $(BUILDDIR)/kernel.stripped
22
23 .PHONY: symlinks
24 symlinks:
25         @echo kernel: Creating arch symlink
26         @$(RM) $(BUILDDIR)/include/arch
27         @$(LN) $(shell pwd)/include/arch-$(ARCH) $(BUILDDIR)/include/arch
28
29 PREDEP := symlinks
30
31 include ../Makefile.tail
32
33 # Must come last: contains kernel target
34 include arch/$(ARCH)/Makefile.final
35