summaryrefslogtreecommitdiff
path: root/static-analysis/Makefile
blob: 19aabbb2e26e7395a59ef4034d59417b49e8f1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# NOTE: We need at least -O2 to get tail call recursion without stack
# overflows.
CFLAGS = -g -lm -D_GNU_SOURCE
CFLAGS += -O3
CFLAGS += -I.
# CFLAGS += -fsanitize=address

all: build/compiler build/lexer_tests  build/lex_file

build/compiler: compiler.c lexer.c main.c utils.c
	mkdir -p $(dir $@)
	$(CC) $(CFLAGS) $^ -o $@

build/lexer_tests: lexer.c helper_scripts/lexer_tests.c
	mkdir -p $(dir $@)
	$(CC) $(CFLAGS) $^ -o $@

build/lex_file: lexer.c helper_scripts/lex_file.c
	mkdir -p $(dir $@)
	$(CC) $(CFLAGS) $^ -o $@

clean:
	rm -rf build

.PHONY: all clean
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback