diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 11:01:51 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 11:01:51 +0200 |
| commit | 08b8cbbccd8c8d7dab75746ee9d134f67455de91 (patch) | |
| tree | 83de1ed169e14b2595cd9da9e5c16f1d84c8c808 /Makefile | |
| parent | 05bf718e37efdc5201ad281e85da7850af31bd59 (diff) | |
feat: start work on ast
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 |
