aboutsummaryrefslogtreecommitdiff
path: root/toolchain.makefile
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-07 11:36:04 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-07 11:36:04 +0200
commit21e7874d9a9729b3ac7520a0a7ef8f7f5bc7601b (patch)
tree40df2b6564739d7ec1e67468fd3b8e628eb83bc7 /toolchain.makefile
parentlibk: add some tests (diff)
downloadkernel.cpp-21e7874d9a9729b3ac7520a0a7ef8f7f5bc7601b.tar.xz
Rewrite makefile
Diffstat (limited to 'toolchain.makefile')
-rw-r--r--toolchain.makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolchain.makefile b/toolchain.makefile
new file mode 100644
index 0000000..f5fb1b1
--- /dev/null
+++ b/toolchain.makefile
@@ -0,0 +1,18 @@
+# Toolchain
+TARGET := i686-elf
+
+AS := clang
+AS_FLAGS :=
+
+LD := ld.lld
+LD_FLAGS := -T linker.ld
+
+CXX := clang++
+CXX_FLAGS := -std=c++20 -ffreestanding -nostdlib -nostdinc -nostdinc++ \
+ -fno-exceptions -fno-rtti -Wall -Wextra -O2
+CXX_INCLUDE := $(CURDIR)/libk $(CURDIR)/grub
+
+#
+BOOT := grub-mkrescue
+EMU := qemu-system-i386 -cdrom
+