summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-08-30 17:24:45 (GMT)
committerhobbs <hobbs>2006-08-30 17:24:45 (GMT)
commitf6c89ae4247f996475ddfbf89e217b539a3f037a (patch)
tree050c4ee9e50f6572c238b00096efa36ce8a41815 /unix/Makefile.in
parent9c3c7bbb5a78c67c9e24f4af24df1e183472330d (diff)
downloadtcl-f6c89ae4247f996475ddfbf89e217b539a3f037a.zip
tcl-f6c89ae4247f996475ddfbf89e217b539a3f037a.tar.gz
tcl-f6c89ae4247f996475ddfbf89e217b539a3f037a.tar.bz2
* unix/Makefile.in: add valgrindshell target and update default
VALGRINDARGS. User can override, or add to it with VALGRIND_OPTS env var.
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r--unix/Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 0f816e7..32d2da4 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.121.2.16 2005/11/27 02:34:41 das Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.121.2.17 2006/08/30 17:24:45 hobbs Exp $
VERSION = @TCL_VERSION@
MAJOR_VERSION = @TCL_MAJOR_VERSION@
@@ -551,10 +551,17 @@ ddd: tclsh
$(DDD) -command=gdb.run ./tclsh
rm gdb.run
+VALGRINDARGS=--tool=memcheck --num-callers=8 --leak-resolution=high --leak-check=yes --show-reachable=yes -v
+
valgrind: tclsh tcltest
@LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
- valgrind --num-callers=8 --leak-resolution=high -v --leak-check=yes --show-reachable=yes $(VALGRINDARGS) ./tcltest $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) $(TCLTESTARGS)
+ valgrind $(VALGRINDARGS) ./tcltest $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) $(TCLTESTARGS)
+
+valgrindshell: tclsh
+ @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
+ TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
+ valgrind $(VALGRINDARGS) ./tclsh $(SCRIPT)
# The following target outputs the name of the top-level source directory
# for Tcl (it is used by Tk's configure script, for example). The