diff options
author | Aaron Ball <nullspoon@oper.io> | 2022-06-21 20:51:36 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2022-06-21 20:51:36 -0600 |
commit | e3eadc3a5b85b3c97b7ff5504808ef73ea1c7e2a (patch) | |
tree | cf8f711fdffa3764fbb2344a04ad6ff322da5cf6 | |
parent | 9de768f602b90fe09b2db91ad400ca96e48fe9bd (diff) | |
download | cmon-e3eadc3a5b85b3c97b7ff5504808ef73ea1c7e2a.tar.gz cmon-e3eadc3a5b85b3c97b7ff5504808ef73ea1c7e2a.tar.xz |
Makefile:Add valgrind target
This is set up to check for memory leaks verbosely, as well as notify of
leaked file descriptors.
-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 |