<commit_before>CFLAGS = -std=c11 -fPIC -D_GNU_SOURCE -flto -O2 -fvisibility=hidden -g -Wall -Wextra
LDFLAGS = -Wl,--as-needed -flto -O2
LDLIBS = -lpthread
OBJECTS = alloc.o bump.o chunk.o extent.o huge.o memory.o

all: alloc.so test_small test_large test_huge

alloc.so: $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@<commit_msg>add a proper debug vs. release build split<commit_after>CFLAGS = -std=c11 -fPIC -D_GNU_SOURCE -fvisibility=hidden -Wall -Wextra
LDFLAGS = -Wl,--as-needed
LDLIBS = -lpthread
OBJECTS = alloc.o bump.o chunk.o extent.o huge.o memory.o

DEBUG ?= 0
ifeq ($(DEBUG), 1)
	CFLAGS += -Og -g
else
	CFLAGS += -flto -O2 -DNDEBUG
	LDFLAGS += -flto -O2
endif

all: alloc.so test_small test_large test_huge

alloc.so: $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
{'fraction_non_alphanumeric': 0.16093366093366093, 'fraction_numerical': 0.012285012285012284, 'mean_word_length': 3.7660818713450293, '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': '385650', 'n_tokens_mistral': 349, 'n_tokens_neox': 333, 'n_words': 91}