<commit_before>RACKET_PATH = ../../racket
RACR_PATH = ../../racr

CRACR = -I$(RACR_PATH)/racr-c/include -I$(RACKET_PATH)/racket/include
LRACR = -lm -lpthread -ldl -lffi $(RACR_PATH)/racr-c/build/racr.o
LRACR += $(RACKET_PATH)/racket/src/build/racket/libracket.a
LRACR += $(RACKET_PATH)/racket/src/build/racket/libmzgc.a


CF = -Wall -O2 -Iinclude
LF = -pthread

all: server worker


SERVERSRC = src/main.c src/server.c src/cambri.c src/event.c src/worker.c
SERVEROBJ = $(SERVERSRC:src/%.c=obj/%.o)

server: Makefile $(SERVEROBJ)
	gcc $(LF) $(LRACR) $(SERVEROBJ) -o $@


obj/%.o: src/%.c Makefile
	@mkdir -p obj
	gcc $(CF) $(CRACR) $< -c -o $@




worker: Makefile obj/worker_main.o
	gcc $(LF) obj/worker_main.o -o $@<commit_msg>add -lrt<commit_after>RACKET_PATH = ../../racket
RACR_PATH = ../../racr

CRACR = -I$(RACR_PATH)/racr-c/include -I$(RACKET_PATH)/racket/include
LRACR = -lm -lpthread -ldl -lffi $(RACR_PATH)/racr-c/build/racr.o
LRACR += $(RACKET_PATH)/racket/src/build/racket/libracket.a
LRACR += $(RACKET_PATH)/racket/src/build/racket/libmzgc.a


CF = -Wall -O2 -Iinclude
LF = -pthread -lrt

all: server worker


SERVERSRC = src/main.c src/server.c src/cambri.c src/event.c src/worker.c
SERVEROBJ = $(SERVERSRC:src/%.c=obj/%.o)

server: Makefile $(SERVEROBJ)
	gcc $(LF) $(LRACR) $(SERVEROBJ) -o $@


obj/%.o: src/%.c Makefile
	@mkdir -p obj
	gcc $(CF) $(CRACR) $< -c -o $@




worker: Makefile obj/worker_main.o
	gcc $(LF) obj/worker_main.o -o $@
{'fraction_non_alphanumeric': 0.19917582417582416, 'fraction_numerical': 0.0013736263736263737, 'mean_word_length': 3.45565749235474, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5153913', 'n_tokens_mistral': 697, 'n_tokens_neox': 638, 'n_words': 122}