diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
