about summary refs log tree commit diff stats
path: root/cpp/makefile
diff options
context:
space:
mode:
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