Easy leakchecks with "make valgrind"

result is readable thanks to the suppression file
This commit is contained in:
Thomas Bernard
2018-02-15 15:11:38 +01:00
parent 3a6968c97c
commit 8ec19f523b
2 changed files with 107 additions and 1 deletions

View File

@@ -528,7 +528,7 @@ endif
### And now for the real build rules ###
.PHONY : all debug release clean depend zip force install uninstall
.PHONY : all debug release clean depend zip force install uninstall valgrind
# This is the list of the objects we want to build. Dependancies are built by "make depend" automatically.
OBJS = main.o init.o graph.o sdlscreen.o misc.o special.o \
@@ -797,5 +797,8 @@ uninstall :
endif
valgrind: $(BIN)
valgrind --suppressions=../valgrind.grafx2.suppr --leak-check=full --show-leak-kinds=all --num-callers=20 $(BIN)
-include Makefile.dep