<commit_before>all:
	@echo "Welcome to NanOS build unit"
	@echo "Make sure you made i686-elf cross compiler"
	@echo "And Installed nasm"
	i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
	nasm -felf32 boot.s -o boot.o
	i686-elf-ld linker.ld kernel.o boot.o -o NanOS.bin -shared -Bsymbolic
	@echo "NanOS successfully compiled and liked"

image:
	mv NanOS.bin cdiso/boot/NanOS.bin
	grub-mkrescue -o NanOS.iso cdiso
	@echo "Bootable ISO image successfully created."

emulate:
	@echo "Make sure you installed QEMU"
	qemu-system-i386 -cdrom NanOS.iso<commit_msg>Makefile, updated with cross compiler<commit_after>CC = i686-elf-gcc
ASM = nasm -felf32
LINKER = i686-elf-ld
FLAGS = -std=gnu99 -ffreestanding -O2 -Wall -Wextra


all:
	@echo "Welcome to NanOS build unit"
	@echo "Make sure you made i686-elf cross compiler"
	@echo "And Installed nasm"
	$(CC) -c kernel.c -o kernel.o $(FLAGS)
	$(ASM) boot.s -o boot.o
	$(LINKER) linker.ld kernel.o boot.o -o NanOS.bin -shared -Bsymbolic
	@echo "NanOS successfully compiled and liked"

image:
	mv NanOS.bin cdiso/boot/NanOS.bin
	grub-mkrescue -o NanOS.iso cdiso
	@echo "Bootable ISO image successfully created."

emulate:
	@echo "Make sure you installed QEMU"
	qemu-system-i386 -cdrom NanOS.iso

clean:
	rm -rvf *.o
	@echo "All object files removed!"
{'fraction_non_alphanumeric': 0.11287878787878788, 'fraction_numerical': 0.025757575757575757, 'mean_word_length': 3.7689530685920576, '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': '3149024', 'n_tokens_mistral': 554, 'n_tokens_neox': 509, 'n_words': 164}