aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-10-29 15:27:06 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-10-29 17:09:05 +0300
commit28fe545925732a5cadd1f5b55fe9324778da25e5 (patch)
tree025dca4c74b3b7721d1573e2d292ad6c9ae8b67a /src/Makefile
parentmakefile: add src/kernel.a target (diff)
downloadkernel-28fe545925732a5cadd1f5b55fe9324778da25e5.tar.xz
Remove meson.build files
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}