From dd52ccd9319aa847cddc486519075b806c9e9092 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 11:35:28 +0200 Subject: feat: emmit a decltype of a difference --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit v1.3