<commit_before>ARCH=i686-elf
TEST_CC=clang
GCOV=gcov
GRUB_MKRESCUE=grub2-mkrescue
CC=compiler/$(ARCH)/bin/$(ARCH)-gcc
AS=compiler/$(ARCH)/bin/$(ARCH)-as
ASFLAGS=-g
CFLAGS= -std=c11 -ffreestanding -O0 -Wall -Wextra -g -I ./include -I tlibc/include -D ARCH_X86
TEST_CFLAGS= -std=c11 -O0 -Wall -Wextra -g -I ./include -coverage -Wno-format -D ARCH_USERLAND
QEMU_FLAGS= -m 1G -serial file:build/qemu-serial.log
VB=virtualbox
VBM=VBoxManage

all: bootloader-x86 kernel link-x86

tests: build libk-tests

run-tests: tests
	./build/tests/kmem
	${GCOV} kmem.gcno
	./build/tests/physical_allocator
	${GCOV} physical_allocator.gcno

bootloader-x86: build
	${AS} kernel/arch/x86/boot.s -o build/boot.o ${ASFLAGS}<commit_msg>Compile with -Werror<commit_after>ARCH=i686-elf
TEST_CC=clang
GCOV=gcov
GRUB_MKRESCUE=grub2-mkrescue
CC=compiler/$(ARCH)/bin/$(ARCH)-gcc
AS=compiler/$(ARCH)/bin/$(ARCH)-as
ASFLAGS=-g
CFLAGS= -std=c11 -ffreestanding -O0 -Wall -Werror -Wextra -g -I ./include -I tlibc/include -D ARCH_X86
TEST_CFLAGS= -std=c11 -O0 -Wall -Wextra -g -I ./include -coverage -Wno-format -D ARCH_USERLAND
QEMU_FLAGS= -m 1G -serial file:build/qemu-serial.log
VB=virtualbox
VBM=VBoxManage

all: bootloader-x86 kernel link-x86

tests: build libk-tests

run-tests: tests
	./build/tests/kmem
	${GCOV} kmem.gcno
	./build/tests/physical_allocator
	${GCOV} physical_allocator.gcno

bootloader-x86: build
	${AS} kernel/arch/x86/boot.s -o build/boot.o ${ASFLAGS}
{'fraction_non_alphanumeric': 0.15128383067314366, 'fraction_numerical': 0.02914642609299098, 'mean_word_length': 4.380597014925373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3149016', 'n_tokens_mistral': 651, 'n_tokens_neox': 614, 'n_words': 124}