From 08b8cbbccd8c8d7dab75746ee9d134f67455de91 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 11:01:51 +0200 Subject: feat: start work on ast --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.3