summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authormdejong <mdejong>2001-11-11 03:21:24 (GMT)
committermdejong <mdejong>2001-11-11 03:21:24 (GMT)
commit8f732cb3b129cac0dcb9bcd3cc468ae11b4ebaf2 (patch)
treeec383ba82b29d004551926c34a652db7150b5288 /unix
parent4213ce4535eae288c38a8d826e2aef32217e5161 (diff)
downloadtk-8f732cb3b129cac0dcb9bcd3cc468ae11b4ebaf2.zip
tk-8f732cb3b129cac0dcb9bcd3cc468ae11b4ebaf2.tar.gz
tk-8f732cb3b129cac0dcb9bcd3cc468ae11b4ebaf2.tar.bz2
* unix/Makefile.in:
* win/Makefile.in: Add "make gdb" target. This target can run wish inside either gdb or insight.
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 4b1f53e..541f74b 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.55 2001/11/09 07:14:23 mdejong Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.56 2001/11/11 03:21:24 mdejong Exp $
# Current Tk version; used in various names.
@@ -468,6 +468,16 @@ shell: wish
TK_LIBRARY=@TK_SRC_DIR@/library; export TK_LIBRARY; \
./wish $(SCRIPT)
+# This target can be used to run wish inside either gdb or insight
+gdb: wish
+ @echo "set env LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}" > gdb.run
+ @echo "set env LIBPATH=`pwd`:${TCL_BIN_DIR}:${LIBPATH}" >> gdb.run
+ @echo "set env SHLIB_PATH=`pwd`:${TCL_BIN_DIR}:${SHLIB_PATH}" >> gdb.run
+ @echo "set env TCL_LIBRARY=@TCL_SRC_DIR@/library" >> gdb.run
+ @echo "set env TK_LIBRARY=@TK_SRC_DIR@/library" >> gdb.run
+ gdb ./wish --command=gdb.run
+ rm gdb.run
+
install: all install-binaries install-libraries install-demos install-doc
# Note: before running ranlib below, must cd to target directory because