summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4af7f0b..52f5602 100644
--- a/Makefile
+++ b/Makefile
@@ -7,3 +7,11 @@ all:
cc $(CCOPTS) -o obj/proc.o -c src/proc.c
cc $(CCOPTS) -o obj/status.o -c src/status.c
cc $(CCOPTS) -o cmon obj/*.o src/main.c
+
+valgrind: all
+ $(info Running memory leak check)
+ valgrind \
+ --leak-check=full \
+ --show-leak-kinds=all \
+ --error-exitcode=1 \
+ ./cmon

Generated by cgit