aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b7ca82b270b40431d5dfca2598178e04f0894928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC=clang++
CFLAGS=-pedantic -Wall -Wextra -Werror -fsanitize=address -fsanitize=undefined -ggdb -fsanitize=address
VFLAGS=--show-leak-kinds=all --leak-check=full
OUT=

btree.out: impls/btree.cpp
	$(CC) $(CFLAGS) $^ -o $@

list.out: impls/list.cpp
	$(CC) $(CFLAGS) $^ -o $@

bsearch.out: impls/bsearch.cpp
	$(CC) $(CFLAGS) $^ -o $@

.PHONY: run
run: $(OUT)
	./$^

.PHONY: clean
clean:
	rm -v *.out *.txt;