<commit_before>CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -lSDL
LDFLAGS_TST = -lcmocka -lSDL
EXEC = seamcarving
SRC = $(wildcard src/*.c)
OBJ = $(SRC:.c=.o)
SRC_TST = $(wildcard test/*.c)
OBJ_TST = $(OBJ)
OBJ_TST += $(SRC_TST:.c=.o)
OBJ_TST := $(filter-out src/main.o, $(OBJ_TST))

all: $(EXEC)

$(EXEC): $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS)

test: $(OBJ_TST)
	$(CC) -o unit_tests $^ $(LDFLAGS_TST)
	./unit_tests

%.o: %.c
	$(CC) -o $@ -c $< $(CFLAGS)

clean:
	rm src/main.o
	rm $(OBJ_TST)<commit_msg>Changes Makefile<commit_after>CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -lSDL
LDFLAGS_TST = -lcmocka -lSDL
EXEC = seamcarving
SRC = $(wildcard src/*.c)
OBJ = $(SRC:.c=.o)
SRC_TST = $(wildcard test/*.c)
OBJ_TST = $(OBJ)
OBJ_TST += $(SRC_TST:.c=.o)
OBJ_TST := $(filter-out src/main.o, $(OBJ_TST))

all: $(EXEC)

$(EXEC): $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS)

test: $(OBJ_TST)
	$(CC) -o unit_tests $^ $(LDFLAGS_TST)
	./unit_tests

%.o: %.c
	$(CC) -o $@ -c $< $(CFLAGS)

clean:
	rm src/*.o
{'fraction_non_alphanumeric': 0.24561403508771928, 'fraction_numerical': 0.0, 'mean_word_length': 3.6411483253588517, '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': '3236542', 'n_tokens_mistral': 506, 'n_tokens_neox': 459, 'n_words': 104}