From 4c8bf7899b5004c5085493689cb81a0700f9a058 Mon Sep 17 00:00:00 2001 From: mdejong Date: Sun, 11 Nov 2001 03:21:23 +0000 Subject: * unix/Makefile.in: * win/Makefile.in: Add "make gdb" target. This target can run wish inside either gdb or insight. FossilOrigin-Name: 7cda0c5db7d62590d0e2cd87823312aa6080d14b --- ChangeLog | 6 ++++++ unix/Makefile.in | 12 +++++++++++- win/Makefile.in | 10 +++++++++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87ef0f0..5d93b96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-11-10 Mo DeJong + + * unix/Makefile.in: + * win/Makefile.in: Add "make gdb" target. This target + can run wish inside either gdb or insight. + 2001-11-09 Jeff Hobbs * unix/configure: 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 diff --git a/win/Makefile.in b/win/Makefile.in index 6f81cd4..c8b4c4c 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -4,7 +4,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.44 2001/09/10 03:23:54 mdejong Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.45 2001/11/11 03:21:24 mdejong Exp $ TCLVERSION = @TCL_VERSION@ VERSION = @TK_VERSION@ @@ -397,6 +397,14 @@ shell: $(WISH) PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ ./$(WISH) $(SCRIPT) +# This target can be used to run wish inside either gdb or insight +gdb: $(WISH) + @echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run + @echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run + PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ + gdb ./$(WISH) --command=gdb.run + rm gdb.run + install: all install-binaries install-libraries install-doc install-demos install-binaries: binaries -- cgit v0.12