aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7112d2f..5a4e524 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,11 @@
CC=clang++
CFLAGS=-pedantic -Wall -ggdb
VFLAGS=--show-leak-kinds=all --leak-check=full
+OUT=
-list: list.cpp
+$(OUT): $(OUT).cpp
$(CC) $(CFLAGS) $^ -o $@
-.PHONY: memcheck_list
-memcheck_list: list
- valgrind $(VFLAGS) ./$^;
-
-btree: btree.cpp
- $(CC) $(CFLAGS) $^ -o $@
-
-.PHONY: memcheck_btree
-memcheck_btree: btree
+.PHONY: memcheck
+memcheck: $(OUT)
valgrind $(VFLAGS) ./$^;