diff options
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 + |