<commit_before>CC=/home/kyle/opt/cross/bin/x86_64-elf-gcc
ISO=nautilus.iso
CFLAGS=    -O2 \
		   -std=gnu99 \
		   -Wall \
		   -Wmissing-prototypes \
		   -Wstrict-prototypes \
		   -Wno-unused-function \
		   -ffreestanding \
		   -fno-exceptions \
		   -mcmodel=large \
		   -mno-red-zone \
		   -mno-mmx \
		   -mno-sse \
		   -mno-sse2 \
		   -mno-sse3 \
		   -mno-3dnow 
LDFLAGS:=-nostdlib -z max-page-size=0x1000
LIBS:=-lgcc
INC:=-Iinclude
SRCDIR:=src
SRC:=$(wildcard $(SRCDIR)/*.c) $(wildcard $(SRCDIR)/*.S)
SFILES:=$(filter %.S, $(SRC))
CFILES:=$(filter %.c, $(SRC))
SOBJS:=$(SFILES:.S=.o)
COBJS:=$(CFILES:.c=.o)
OBJS:=$(SOBJS) $(COBJS)
DEPDIR:=.deps
DEPS:=$(wildcard $(DEPDIR)/*.d)
TARGET=nautilus.bin
LDSCRIPT=nautilus.ld

all: $(TARGET)

test:
	@echo $(OBJS)

isoimage: $(ISO)

$(ISO): $(TARGET)
	cp $(TARGET) iso/boot
	grub-mkrescue -o $@ iso

$(TARGET): $(OBJS) $(LDSCRIPT)
	$(CC) -o $@ -T $(LDSCRIPT) $(OBJS) $(LDFLAGS) $(CFLAGS) $(LIBS)

$(SRCDIR)/%.o: $(SRC)/%.S
	@if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
	$(CC) $(CFLAGS) -MMD -MP -MF $(DEPDIR)/$(@F).d $(INC) -c $< -o $@ 

$(SRCDIR)/%.o: $(SRCDIR)/%.c
	@if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
	$(CC) $(CFLAGS) -MMD -MP -MF $(DEPDIR)/$(@F).d $(INC) -c $< -o $@ 

clean:
	rm -f $(OBJS) $(DEPS) $(TARGET)

distclean:
	rm -f $(OBJS) $(DEPS) $(TARGET) $(ISO) iso/boot/$(TARGET)

transfer: $(ISO)
	scp $(ISO) <EMAIL>:

.PHONY: clean all

-include $(OBJS:.o=.d)
<commit_msg>Makefile fix<commit_after>CC=/home/kyle/opt/cross/bin/x86_64-elf-gcc
ISO=nautilus.iso
CFLAGS=    -O2 \
		   -std=gnu99 \
		   -Wall \
		   -Wmissing-prototypes \
		   -Wstrict-prototypes \
		   -Wno-unused-function \
		   -ffreestanding \
		   -fno-exceptions \
		   -mcmodel=large \
		   -mno-red-zone \
		   -mno-mmx \
		   -mno-sse \
		   -mno-sse2 \
		   -mno-sse3 \
		   -mno-3dnow 
LDFLAGS:=-nostdlib -z max-page-size=0x1000
LIBS:=-lgcc
INC:=-Iinclude
SRCDIR:=src
SRC:=$(wildcard $(SRCDIR)/*.c) $(wildcard $(SRCDIR)/*.S)
SFILES:=$(filter %.S, $(SRC))
CFILES:=$(filter %.c, $(SRC))
SOBJS:=$(SFILES:.S=.o)
COBJS:=$(CFILES:.c=.o)
OBJS:=$(SOBJS) $(COBJS)
DEPDIR:=.deps
DEPS:=$(wildcard $(DEPDIR)/*.d)
TARGET=nautilus.bin
LDSCRIPT=nautilus.ld

all: $(TARGET)

isoimage: $(ISO)

$(ISO): $(TARGET)
	cp $(TARGET) iso/boot
	grub-mkrescue -o $@ iso

$(TARGET): $(OBJS) $(LDSCRIPT)
	$(CC) -o $@ -T $(LDSCRIPT) $(OBJS) $(LDFLAGS) $(CFLAGS) $(LIBS)

$(SRCDIR)/%.o: $(SRC)/%.S
	@if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
	$(CC) $(CFLAGS) -MMD -MP -MF $(DEPDIR)/$(@F).d $(INC) -c $< -o $@ 

$(SRCDIR)/%.o: $(SRCDIR)/%.c
	@if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
	$(CC) $(CFLAGS) -MMD -MP -MF $(DEPDIR)/$(@F).d $(INC) -c $< -o $@ 

clean:
	rm -f $(OBJS) $(DEPS) $(TARGET)

distclean:
	rm -f $(OBJS) $(DEPS) $(TARGET) $(ISO) iso/boot/$(TARGET)

transfer: $(ISO)
	scp $(ISO) <EMAIL>:

.PHONY: clean all

-include $(OBJS:.o=.d)

{'fraction_non_alphanumeric': 0.25859076709475876, 'fraction_numerical': 0.010413051023950017, 'mean_word_length': 2.997226074895978, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3531307', 'n_tokens_mistral': 1489, 'n_tokens_neox': 1356, 'n_words': 256}