<commit_before>server_target = src/server
client_target = src/client
server_objs = src/server.c src/cdata.c
client_objs = src/client.c src/cdata.c
server_headers = src/cdata.h
client_headers = src/cdata.h

LDFLAGS += -pthread
CFLAGS += -g

.PHONY: server client clean
server: $(server_objs)
	gcc -o $(server_target) $(server_objs) $(LDFLAGS) $(CFLAGS)

client: $(client_objs)
	gcc -o $(client_target) $(client_objs) $(LDFLAGS) $(CFLAGS)

$(server_objs): $(server_headers)

$(client_objs): $(client_headers)

clean:
	rm -fv $(server_target) $(client_target) $(server_objs) $(client_objs)

<commit_msg>Improved Makefile<commit_after>server_bin=server
client_bin=client
cdata_o=cdata.o
cdata_src=src/cdata.c
server_src=src/server.c
client_src=src/client.c
server_headers=src/cdata.h
client_headers=src/cdata.h

LDFLAGS += -pthread
CFLAGS += -Wall -Wextra -g

all: server client

server: cdata $(server_src)
	gcc $(CFLAGS) $(LDFLAGS) -o $(server_bin) $(cdata_o) $(server_headers) $(server_src)

client: cdata $(client_src)
	gcc $(CFLAGS) $(LDFLAGS) -o $(client_bin) $(cdata_o) $(client_headers) $(client_src)

cdata: $(cdata_src)
	gcc -c $(CFLAGS) $(LDFLAGS) -o $(cdata_o) $(cdata_src)

clean:
	rm -fv $(server_bin) $(client_bin) $(cdata_o)

.PHONY: all server client clean

{'fraction_non_alphanumeric': 0.15826771653543306, 'fraction_numerical': 0.0, 'mean_word_length': 5.983516483516484, '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': '3029151', 'n_tokens_mistral': 514, 'n_tokens_neox': 506, 'n_words': 109}