diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |