aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 4c47e20..f9d3a28 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,7 @@
include ../${ARCH}/toolchain.mk
include ../rules.mk
-CCFLAGS += -I. -I../grub/include -I../${ARCH} -I../lib -I..
+CCFLAGS += -I. -isystem../grub/include -I../${ARCH} -I../lib -I..
all: kernel.a
@@ -12,7 +12,9 @@ kernel.a: conf.h ${kernel,OBJS}
@${AR} ${ARFLAGS} $@ ${kernel,OBJS}
conf.h: conf.h.in
- cp conf.h.in conf.h
+ @cp conf.h.in conf.h
+ @sed -i 's/@VERSION@/$(shell git describe)/' conf.h
+ @sed -i 's/@CC@/$(shell ${CC} --version | head -n1)/' conf.h
clean:
@rm -rf ${kernel,OBJS}