added VALFLAGS varible
[physics.git] / src / Makefile
index 1e3e3f5..2c1cf92 100644 (file)
@@ -6,6 +6,7 @@ LIBS := ${LIBSDL} ${LIBGL}
 OPTFLAGS := -O2
 DBGFLAGS := -ggdb
 PRFFLAGS := ${DBGFLAGS} -pg
+VALFLAGS := --leak-check=full
 
 #CXX := g++
 CXXFLAGS := -Wall -pedantic -ansi ${DBGFLAGS}
@@ -132,7 +133,7 @@ gdb: all
 
 .PHONY: val
 val: all
-       valgrind --leak-check=full ${TARGET}
+       valgrind ${VALFLAGS} ${TARGET}
 
 .PHONY: prof
 prof: all