<commit_before>CC = gcc
CFLAGS = -g -I src -I .

all: build/main

build/flex_parser.o: src/flex_parser.l build/grammar.o
	flex --outfile=build/flex_parser.c src/flex_parser.l
	$(CC) $(CFLAGS) build/flex_parser.c -c -o build/flex_parser.o


build/grammar.o: src/grammar.y
	yacc --verbose --debug -d src/grammar.y -o build/grammar.c
	$(CC) $(CFLAGS) build/grammar.c -c -o build/grammar.o


build/sea.o: src/sea.h src/sea.c
	$(CC) $(CFLAGS) src/sea.c -c -o build/sea.o


SRC = build/grammar.o \
	  build/flex_parser.o \
	  build/sea.o \
	  src/main.c


build/main: $(SRC)
	$(CC) $(CFLAGS) $(SRC) -o build/main

clean:
	rm -f \
		build/sea.o \
		build/main \
		build/flex_parser.c \
		build/flex_parser.o<commit_msg>Update Makefile<commit_after>CC = gcc
CFLAGS = -g -I src -I .

all: build/main build/test_dict
.PHONY: all

build/flex_parser.o: build/grammar.o src/flex_parser.l
	flex --outfile=build/flex_parser.c src/flex_parser.l
	$(CC) $(CFLAGS) build/flex_parser.c -c -o build/flex_parser.o


build/grammar.o: src/grammar.y
	yacc --verbose --debug -d src/grammar.y -o build/grammar.c
	$(CC) $(CFLAGS) build/grammar.c -c -o build/grammar.o


build/sea.o: src/sea.h src/sea.c build/grammar.o
	$(CC) $(CFLAGS) src/sea.c -c -o build/sea.o


build/stack.o: src/stack.h src/stack.c
	$(CC) $(CFLAGS) src/stack.c -c -o build/stack.o


build/eval.o: src/eval.h src/eval.c
	$(CC) $(CFLAGS) src/eval.c -c -o build/eval.o


build/compile.o: src/compile.h src/compile.c
	$(CC) $(CFLAGS) src/compile.c -c -o build/compile.o


build/dict_entry.o: src/dict/dict_entry.c src/dict/dict_entry.h
	$(CC) $(CFLAGS) src/dict/dict_entry.c -c -o build/dict_entry.o


build/primes.o: src/dict/primes.h src/dict/primes.c
	$(CC) $(CFLAGS) src/dict/primes.c -c -o build/primes.o


build/dict.o: src/dict/dict.h src/dict/dict.c build/dict_entry.o build/primes.o
	$(CC) $(CFLAGS) src/dict/dict.c -c -o build/dict.o


SRC = build/grammar.o \
	  build/flex_parser.o \
	  build/dict_entry.o \
	  build/primes.o \
	  build/stack.o \
	  build/eval.o \
	  build/compile.o \
	  build/sea.o \
	  build/dict.o \
	  src/ast/ast.c \
	  src/ast/render_ast.c \
	  src/main.c

build/test_dict: build/dict.o build/primes.o build/dict_entry.o src/dict/test_dict.c
	$(CC) $(CFLAGS) src/dict/test_dict.c build/dict_entry.o build/primes.o build/dict.o -o build/test_dict


build/main: $(SRC) src/ast/ast.h src/ast/render_ast.h
	$(CC) $(CFLAGS) $(SRC) -o build/main

clean:
	rm -f \
		build/*.o \
		build/flex_parser.c \
		build/grammar.c \
		build/grammar.h \
		build/grammar.output \
		build/main \
		build/test_dict
{'fraction_non_alphanumeric': 0.17484423676012462, 'fraction_numerical': 0.0, 'mean_word_length': 2.783505154639175, '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': '4449146', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1125, 'n_words': 214}