OPTFLAGS := -O2
DBGFLAGS := -ggdb
PRFFLAGS := ${DBGFLAGS} -pg
+VALFLAGS := --leak-check=full
#CXX := g++
CXXFLAGS := -Wall -pedantic -ansi ${DBGFLAGS}
.PHONY: val
val: all
- valgrind --leak-check=full ${TARGET}
+ valgrind ${VALFLAGS} ${TARGET}
.PHONY: prof
prof: all