hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 11:35:28 +0200
committerhachem <im@hachem.wtf>2026-09-19 11:35:28 +0200
commitdd52ccd9319aa847cddc486519075b806c9e9092 (patch)
treedf290f8972aa6eb164fad7258002ccb95cf648bf /Makefile
parent768bbdd137f5b205e4282bd79572681aef4514e3 (diff)
feat: emmit a decltype of a difference
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c107cb3..48363ba 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-CC = cc
+CC = clang
LEX = flex
YACC = bison
CFLAGS = -std=c17 -Wall -Wextra -Werror -Wpedantic -O2 -Ibin
-SOURCES = ast.c ast.h lexer.h main.c
-OBJECTS = bin/lexer.o bin/parser.o bin/ast.o bin/main.o
+SOURCES = ast.c ast.h eval.c eval.h lexer.h main.c
+OBJECTS = bin/lexer.o bin/parser.o bin/ast.o bin/eval.o bin/main.o
SANITIZE = -g -O0 -fsanitize=address,undefined
.PHONY: all debug check format lint clean
@@ -31,8 +31,9 @@ bin/parser.o: bin/parser.c
bin/%.o: %.c | bin
$(CC) $(CFLAGS) -c -o $@ $<
-bin/main.o: ast.h lexer.h
-bin/ast.o: ast.h lexer.h
+bin/main.o: ast.h eval.h lexer.h
+bin/ast.o: ast.h lexer.h
+bin/eval.o: eval.h ast.h
debug: CFLAGS += $(SANITIZE)
debug: clean sfinae
@@ -47,7 +48,7 @@ format:
clang-format -i $(SOURCES)
lint:
- clang-tidy ast.c main.c -- -std=c17 -Ibin
+ clang-tidy ast.c eval.c main.c -- -std=c17 -Ibin
clean:
rm -rf bin sfinae