aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/Makefile b/src/Makefile
index c3e4931..1aa8617 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,11 @@
include ../Makefile.config
+INCLUDES := -isystem../grub -I../${ARCH} -I../devices
+CFLAGS += ${INCLUDES}
+CXXFLAGS += ${INCLUDES}
+
kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c
-kernel.OBJS := include conf.h
+kernel.OBJS := conf.h
TESTS += tst/test_taskqueue tst/test_roundrobin
@@ -13,11 +17,3 @@ conf.h: conf.h.in
@sed -i 's/@VERSION@/$(shell git describe)/' conf.h
@sed -i 's/@CC@/$(shell ${CC} --version | head -n1)/' conf.h
-include:
- mkdir -p $@
- ln -sTf ../../grub $@/grub
- ln -sTf ../../${ARCH} $@/arch
- ln -sTf ../../${ARCH}/sys $@/sys
- ln -sTf ../../devices $@/devices
- ln -sTf ../../lib $@/lib
-