diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-07 11:36:04 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-07 11:36:04 +0200 |
commit | 21e7874d9a9729b3ac7520a0a7ef8f7f5bc7601b (patch) | |
tree | 40df2b6564739d7ec1e67468fd3b8e628eb83bc7 /toolchain.makefile | |
parent | libk: add some tests (diff) | |
download | kernel.cpp-21e7874d9a9729b3ac7520a0a7ef8f7f5bc7601b.tar.xz |
Rewrite makefile
Diffstat (limited to 'toolchain.makefile')
-rw-r--r-- | toolchain.makefile | 18 |
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 + |