aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: afdfdbf8eb76cad5be4499a3a40058b269d4f00d (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 -ggdb -fsanitize=address
VFLAGS=--show-leak-kinds=all --leak-check=full
OUT=

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

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

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

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

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