<commit_before>-include ../Makefile.local

ASFLAGS=--32 -g

CCFLAGS=-Wall -g -Wextra -Werror -Wno-unused-parameter -m32 -I../inc -std=gnu99 \
        -nostdlib -nostartfiles -nodefaultlibs -ffreestanding -c

OBJS=	src/crt.o src/syscall.o

all: libc.a

.s.o:
	@echo "      as  $<"
	@$(AS) $(ASFLAGS) -o $@ $<

%.o: %.c
	@echo "      cc  $<"
	@$(CC) $(CCFLAGS) -o $@ $<

libc.a: $(OBJS)
	@echo "      ar  libc.a"
	@rm -f libc.a
	@$(AR) rcs libc.a $(OBJS)

clean:
	find . -name \*.o -type f -delete
	rm -f libc.a

test: all main.c
	rm -f ../kernel/build/kernel.elf
	rm -f ../kernel/build/main.mod
	/usr/local/cross/bin/i586-elf-gcc -std=gnu99 -c -Iinc -o main.o main.c
	/usr/local/cross/bin/i586-elf-ld -T linker.ld -o main.mod src/syscall.o src/crt.o main.o
	cp main.mod ../kernel/build/
	make -C ../kernel run

.PHONY: all clean<commit_msg>Made libc test target better<commit_after>-include ../Makefile.local

ASFLAGS=--32 -g

CCFLAGS=-Wall -g -Wextra -Werror -Wno-unused-parameter -m32 -I../inc -std=gnu99 \
        -nostdlib -nostartfiles -nodefaultlibs -ffreestanding -c

OBJS=	src/crt.o src/syscall.o

all: libc.a

.s.o:
	@echo "      as  $<"
	@$(AS) $(ASFLAGS) -o $@ $<

%.o: %.c
	@echo "      cc  $<"
	@$(CC) $(CCFLAGS) -o $@ $<

libc.a: $(OBJS)
	@echo "      ar  libc.a"
	@rm -f libc.a
	@$(AR) rcs libc.a $(OBJS)

clean:
	find . -name \*.o -type f -delete
	rm -f libc.a

test: all main.c
	make -C ../kernel
	rm -f ../kernel/build/kernel.elf
	rm -f ../kernel/build/main.mod
	/usr/local/cross/bin/i586-elf-gcc -std=gnu99 -c -Iinc -o main.o main.c
	/usr/local/cross/bin/i586-elf-ld -T linker.ld -o main.mod src/syscall.o src/crt.o main.o
	cp main.mod ../kernel/build/
	make -C ../kernel run

.PHONY: all clean
{'fraction_non_alphanumeric': 0.20093457943925233, 'fraction_numerical': 0.016355140186915886, 'mean_word_length': 2.2381852551984878, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1916636', 'n_tokens_mistral': 833, 'n_tokens_neox': 769, 'n_words': 188}