<commit_before>BINARY=prwd
PREFIX?=/usr/local

CFLAGS?=-Wall

#CFLAGS+=-ggdb -O1

all: ${BINARY}

${BINARY}: main.o wcslcpy.o strdelim.o
	gcc -o ${BINARY} main.o wcslcpy.o strdelim.o

prwd_tests: main.c wcslcpy.o strdelim.o test.c
	gcc ${CFLAGS} -D TESTING -c main.c -o main.o
	gcc ${CFLAGS} -c test.c -o test.o
	gcc -ggdb -o run_tests main.o wcslcpy.o strdelim.o test.o

tests: prwd_tests
	./run_tests

main.o: main.c
	gcc ${CFLAGS} -c main.c -o main.o
wcslcpy.o: wcslcpy.c
	gcc ${CFLAGS} -c wcslcpy.c -o wcslcpy.o
strdelim.o: strdelim.c
	gcc ${CFLAGS} -c strdelim.c -o strdelim.o

install: ${BINARY}
	install -m 755 ${BINARY} ${PREFIX}/bin
	install -m 644 ${BINARY}.1 ${PREFIX}/man/man1

clean:
	rm -f ${BINARY} main.o wcslcpy.o strdelim.o test.o run_tests *core<commit_msg>c99 and parameterized CC<commit_after>BINARY=prwd
PREFIX?=/usr/local
CC?=clang

CFLAGS?=-Wall --std=c99

#CFLAGS+=-ggdb -O1

all: ${BINARY}

${BINARY}: main.o wcslcpy.o strdelim.o
	$(CC) -o ${BINARY} main.o wcslcpy.o strdelim.o

prwd_tests: main.c wcslcpy.o strdelim.o test.c
	$(CC) ${CFLAGS} -D TESTING -c main.c -o main.o
	$(CC) ${CFLAGS} -c test.c -o test.o
	$(CC) -ggdb -o run_tests main.o wcslcpy.o strdelim.o test.o

tests: prwd_tests
	./run_tests

main.o: main.c
	$(CC) ${CFLAGS} -c main.c -o main.o
wcslcpy.o: wcslcpy.c
	$(CC) ${CFLAGS} -c wcslcpy.c -o wcslcpy.o
strdelim.o: strdelim.c
	$(CC) ${CFLAGS} -c strdelim.c -o strdelim.o

install: ${BINARY}
	install -m 755 ${BINARY} ${PREFIX}/bin
	install -m 644 ${BINARY}.1 ${PREFIX}/man/man1

clean:
	rm -f ${BINARY} main.o wcslcpy.o strdelim.o test.o run_tests *core
{'fraction_non_alphanumeric': 0.1728240450845335, 'fraction_numerical': 0.013775829680651221, 'mean_word_length': 3.4887640449438204, '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': '1574404', 'n_tokens_mistral': 782, 'n_tokens_neox': 744, 'n_words': 190}