aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4d03d9321e96f7856184d45699d152c5ade54323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
	rm -v *.out;