diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 11:35:28 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 11:35:28 +0200 |
| commit | dd52ccd9319aa847cddc486519075b806c9e9092 (patch) | |
| tree | df290f8972aa6eb164fad7258002ccb95cf648bf /Makefile | |
| parent | 768bbdd137f5b205e4282bd79572681aef4514e3 (diff) | |
feat: emmit a decltype of a difference
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |
