aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 02ff120..b4bdd0a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,8 +1,8 @@
include ../Makefile.config
INCLUDES := -isystem../grub -I../${ARCH} -I../devices
-CFLAGS += ${INCLUDES}
-CXXFLAGS += ${INCLUDES}
+${ARCH}_CFLAGS += ${INCLUDES}
+${ARCH}_CXXFLAGS += ${INCLUDES}
kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c
kernel.OBJS := conf.h
@@ -15,5 +15,5 @@ conf.h: conf.h.in
@echo ' GEN $@'
@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
+ @sed -i 's/@CC@/${${ARCH}_CCID}/' conf.h