blob: d8f09f78a3f849719b4466c2f07987c7397855c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Toolchain
TARGET := i686-elf
NM := llvm-nm
SED := sed
AS := clang
AS_FLAGS :=
LD := ld.lld
LD_FLAGS := -T linker.ld --thinlto-cache-dir=$(OBJ_DIR)/thinlto_cache
CXX := clang++
TEST_CXX := clang++
CXX_FLAGS := -std=c++20 -g \
-mkernel -ffreestanding -nostdlib -nostdinc -nostdinc++ \
-Wall -Wextra -Werror=pedantic -O2 -flto=thin \
-Werror=date-time \
-Werror=shadow-all \
-Wold-style-cast -Wconversion \
-Wconsumed
CXX_TEST_FLAGS := -std=c++20 -Wall -Wextra -Werror=pedantic
CXX_INCLUDE := $(CURDIR)/libk $(CURDIR)/src $(CURDIR)/drivers
CXX_SYSTEM_INCLUDE := $(CURDIR)/grub
#
GRUB_MKRESCUE := grub-mkrescue
GRUB_FILE := grub-file
GRUB_SCRIPT := grub-script-check
EMU := qemu-system-i386 -cdrom
|