VALGRIND = valgrind --tool=memcheck --leak-check=yes --db-attach=no \
--num-callers=24 --leak-resolution=high --track-fds=yes \
- --suppressions=valgrind.suppressions
+ --suppressions=valgrind.suppressions --error-exitcode=1
SOURCES = $(shell find -name '*.cpp')
ifneq ($(V), 1)
NICE_CXX = @echo " CXX $@"; $(CXX)
NICE_LINK = @echo " LINK $@"; $(CXX)
-NICE_TEST = @echo " TEST"; $(TESTCMD) > /dev/null 2>&1
+NICE_TEST = @echo " TEST"; $(TESTCMD) > test_suite.log 2>&1
NICE_MEMTEST = @echo " MEMTEST"; $(VALGRIND) --log-file=valgrind.log \
- $(TESTCMD) > /dev/null 2>&1
+ $(TESTCMD) > valgrind.test_suite.log 2>&1
NICE_CLEAN = @echo " CLEAN"; $(RM)
else
NICE_CXX = $(CXX)
@mkdir -p $(dir $@)
@set -e; rm -f $@; \
$(CC) -MM -MG -MP $(CPPFLAGS) $(ALL_CFLAGS) $< -MF $@.$$$$; \
- sed 's,\($(notdir $*)\)\.o[ :]*,$(dir $<)\1.o $@ : ,g' < $@.$$$$ > $@; \
+ sed 's,\($(notdir $*)\)\.o[ :]*,$(dir $<)\1.o $@ : ,g' \
+ < $@.$$$$ > $@; \
rm -f $@.$$$$
ifneq ($(MAKECMDGOALS),clean)