<commit_before>TARGET_MACH=-m32
TARGET_ARCH=-m32
ASFLAGS=-g
CFLAGS=-g -Wall -fno-stack-protector 
OBJCOPY=objcopy
all:kernel.bin
run:img
	qemu-kvm -kernel img
debug:img
	gdb -x gdb_script kernel
img:kernel.bin tools/header_linker tools/head
	./tools/header_linker ./tools/head kernel.bin > img
tools/header_linker:tools/header_linker.c
	cc $^ -o $@
kernel.bin:kernel
	$(OBJCOPY) -O binary $< $@

kernel.o:kernel.c

kernel:head.o kernel.o print.o mm.o asm.o interrupt.o
	$(LD) $^ -g -T head.ld -o $@ --Map=kernel.map

clean:
	rm -rf img kernel.bin kernel *.o tools/header_linker kernel.map<commit_msg>better Makefile<commit_after>TARGET_MACH=-m32
TARGET_ARCH=-m32
ASFLAGS=-g
CFLAGS=-g -Wall -fno-stack-protector 
OBJCOPY=objcopy
OBJS=head.o kernel.o print.o mm.o asm.o interrupt.o
all:kernel.bin
run:img
	qemu-kvm -kernel img
debug:img
	gdb -x gdb_script kernel
img:kernel.bin tools/header_linker tools/head
	./tools/header_linker ./tools/head kernel.bin > img
tools/header_linker:tools/header_linker.c
	cc $^ -o $@
kernel.bin:kernel
	$(OBJCOPY) -O binary $< $@

kernel:$(OBJS) head.ld
	$(LD) $(OBJS) -g -T head.ld -o $@ --Map=kernel.map

clean:
	rm -rf img kernel.bin kernel *.o tools/header_linker kernel.map
{'fraction_non_alphanumeric': 0.1447477253928867, 'fraction_numerical': 0.006617038875103391, 'mean_word_length': 4.105485232067511, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3444791', 'n_tokens_mistral': 506, 'n_tokens_neox': 479, 'n_words': 108}