aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7112d2f0d22c72c3461ac6935b42b3e729df513c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC=clang++
CFLAGS=-pedantic -Wall -ggdb
VFLAGS=--show-leak-kinds=all --leak-check=full

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

.PHONY: memcheck_list
memcheck_list: list
	valgrind $(VFLAGS) ./$^;

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

.PHONY: memcheck_btree
memcheck_btree: btree
	valgrind $(VFLAGS) ./$^;