<commit_before>UCC_CC = ../src/cc
OBJ    = syscall.o crt.o unistd.o stdio.o string.o stdlib.o

LIBDEPS = ${UCC_CC} ../src/cc1/cc1 ../src/cpp/cpp

BUILD_NASM = ${UCC_NASM} -f ${UCC_ARCH} -o $@ $<
BUILD_CC   = ${UCC_CC} -c -o $@ $<

include ../config.mk

libs: ${OBJ}

crt.o: crt.s
	${BUILD_NASM}
syscall.o: syscall.s
	${BUILD_NASM}

stdio.o: stdio.c
	${BUILD_CC}
stdlib.o: stdlib.c
	${BUILD_CC}
string.o: string.c
	${BUILD_CC}
unistd.o: unistd.c
	${BUILD_CC}

clean:
	rm -f *.o

.PHONY: libs clean

stdio.o: stdio.c unistd.h ${LIBDEPS}
stdlib.o: stdlib.c stdlib.h syscalls.h os.h ${LIBDEPS}
string.o: string.c string.h ${LIBDEPS}
unistd.o: unistd.c unistd.h syscalls.h os.h ${LIBDEPS}<commit_msg>Use ucc to compile all<commit_after>UCC_CC = ../src/cc
OBJ    = syscall.o crt.o unistd.o stdio.o string.o stdlib.o

LIBDEPS = ${UCC_CC} ../src/cc1/cc1 ../src/cpp/cpp

BUILD_CMD = ${UCC_CC} -c -o $@ $<

include ../config.mk

libs: ${OBJ}

crt.o: crt.s
	${BUILD_CMD}
syscall.o: syscall.s
	${BUILD_CMD}

stdio.o: stdio.c
	${BUILD_CMD}
stdlib.o: stdlib.c
	${BUILD_CMD}
string.o: string.c
	${BUILD_CMD}
unistd.o: unistd.c
	${BUILD_CMD}

clean:
	rm -f *.o

.PHONY: libs clean

stdio.o: stdio.c unistd.h ${LIBDEPS}
stdlib.o: stdlib.c stdlib.h syscalls.h os.h ${LIBDEPS}
string.o: string.c string.h ${LIBDEPS}
unistd.o: unistd.c unistd.h syscalls.h os.h ${LIBDEPS}
{'fraction_non_alphanumeric': 0.18874907475943745, 'fraction_numerical': 0.0029607698001480384, 'mean_word_length': 3.347266881028939, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5847357', 'n_tokens_mistral': 710, 'n_tokens_neox': 658, 'n_words': 140}