about summary refs log tree commit diff stats
path: root/cpp/makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-22 23:25:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-22 23:25:20 -0700
commit634fcea02c35e734cacf4152400d2cdee666497e (patch)
tree6eec850dda9fce7fb3c27f20210af950217787a0 /cpp/makefile
parent9d18c99f5d66ffbe3cddf60e3e3c7608c20d696d (diff)
downloadmu-634fcea02c35e734cacf4152400d2cdee666497e.tar.gz
1148 - valgrind ALL the things!
Diffstat (limited to 'cpp/makefile')
-rw-r--r--cpp/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/makefile b/cpp/makefile
index 5c978101..75ed8424 100644
--- a/cpp/makefile
+++ b/cpp/makefile
@@ -18,12 +18,15 @@ termbox/libtermbox.a:
 	cd termbox && make
 
 # auto-generated files; by convention they end in '_list'.
-.PHONY: autogenerated_lists test clena 
+.PHONY: autogenerated_lists test valgrind clena
 autogenerated_lists: mu.cc function_list test_list
 
 test: mu
 	./mu test
 
+valgrind: mu
+	valgrind --leak-check=yes ./mu test
+
 function_list: mu.cc
 	# declarations for lines starting with non-space and ending with ') {', except methods
 	@grep -h "^[^[:space:]#].*) {" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list