hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 11:01:51 +0200
committerhachem <im@hachem.wtf>2026-09-19 11:01:51 +0200
commit08b8cbbccd8c8d7dab75746ee9d134f67455de91 (patch)
tree83de1ed169e14b2595cd9da9e5c16f1d84c8c808 /Makefile
parent05bf718e37efdc5201ad281e85da7850af31bd59 (diff)
feat: start work on ast
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e1140cf..a30b93c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
CC = cc
LEX = flex
CFLAGS = -std=c17 -Wall -Wextra -Werror -Wpedantic -O2
-SOURCES = lexer.h main.c
-OBJECTS = bin/lexer.o bin/main.o
+SOURCES = ast.c ast.h lexer.h main.c
+OBJECTS = bin/lexer.o bin/ast.o bin/main.o
SANITIZE = -g -O0 -fsanitize=address,undefined
.PHONY: all debug check format lint clean
@@ -25,6 +25,7 @@ bin/%.o: %.c | bin
$(CC) $(CFLAGS) -c -o $@ $<
bin/main.o: lexer.h
+bin/ast.o: ast.h lexer.h
debug: CFLAGS += $(SANITIZE)
debug: clean sfinae
@@ -39,7 +40,7 @@ format:
clang-format -i $(SOURCES)
lint:
- clang-tidy main.c -- -std=c17
+ clang-tidy ast.c main.c -- -std=c17
clean:
rm -rf bin sfinae