#
|
#
|
# Makefile for tcl debugger
|
# Makefile for tcl debugger
|
#
|
#
|
|
|
VERSION = \"@DBG_VERSION_FULL@\"
|
VERSION = \"@DBG_VERSION_FULL@\"
|
SHORT_VERSION = @DBG_VERSION@
|
SHORT_VERSION = @DBG_VERSION@
|
|
|
# Compatible with Tcl version 7.5
|
# Compatible with Tcl version 7.5
|
# Compatible with Tk version 4.1
|
# Compatible with Tk version 4.1
|
|
|
srcdir = @srcdir@
|
srcdir = @srcdir@
|
VPATH = @srcdir@
|
VPATH = @srcdir@
|
|
|
######################################################################
|
######################################################################
|
# The following lines are things you are likely to want to change
|
# The following lines are things you are likely to want to change
|
######################################################################
|
######################################################################
|
|
|
# Tcl include files. (If you haven't installed Tcl yet, read the README file).
|
# Tcl include files. (If you haven't installed Tcl yet, read the README file).
|
# This must point to the directory that contains ALL of Tcl's include
|
# This must point to the directory that contains ALL of Tcl's include
|
# files, not just the public ones.
|
# files, not just the public ones.
|
TCLHDIR = @TCLHDIRDASHI@
|
TCLHDIR = @TCLHDIRDASHI@
|
|
|
# flags to pass to cc
|
# flags to pass to cc
|
# You should be able to leave this just the way it is. However, here are some
|
# You should be able to leave this just the way it is. However, here are some
|
# note if you run into problems:
|
# note if you run into problems:
|
#
|
#
|
# Avoid -O (optimize) unless you are convinced your optimizer is flawless
|
# Avoid -O (optimize) unless you are convinced your optimizer is flawless
|
# (hint: not a chance). I have heard many reports of -O causing Expect to
|
# (hint: not a chance). I have heard many reports of -O causing Expect to
|
# misbehave.
|
# misbehave.
|
# I encourage you to use -g (debugging). While it is unlikely you will
|
# I encourage you to use -g (debugging). While it is unlikely you will
|
# encounter an internal error in Expect, should this happen, I may just need
|
# encounter an internal error in Expect, should this happen, I may just need
|
# the -g information and then you will need to recompile Expect. As an aside,
|
# the -g information and then you will need to recompile Expect. As an aside,
|
# Expect is not a space or time pig, so this won't affect the performance of
|
# Expect is not a space or time pig, so this won't affect the performance of
|
# your Expect scripts.
|
# your Expect scripts.
|
# Note: On Linux systems which only have dynamic X libraries, the -g prevents
|
# Note: On Linux systems which only have dynamic X libraries, the -g prevents
|
# the linker from using them. So do not use -g on such systems.
|
# the linker from using them. So do not use -g on such systems.
|
CFLAGS = @DBG_CFLAGS@ @DBG_SHLIB_CFLAGS@
|
CFLAGS = @DBG_CFLAGS@ @DBG_SHLIB_CFLAGS@
|
|
|
# which C compiler to use
|
# which C compiler to use
|
CC = @CC@
|
CC = @CC@
|
|
|
# By default, `make install' will install the appropriate files in
|
# By default, `make install' will install the appropriate files in
|
# /usr/local/bin, /usr/local/lib, /usr/local/man, etc. You can specify
|
# /usr/local/bin, /usr/local/lib, /usr/local/man, etc. You can specify
|
# an installation prefix other than /usr/local here:
|
# an installation prefix other than /usr/local here:
|
prefix = @prefix@
|
prefix = @prefix@
|
|
|
# You can specify a separate installation prefix for architecture-specific
|
# You can specify a separate installation prefix for architecture-specific
|
# files such as binaries and libraries.
|
# files such as binaries and libraries.
|
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
|
|
# If you have ranlib but it should be avoided, change this from "ranlib" #
|
# If you have ranlib but it should be avoided, change this from "ranlib" #
|
# to something innocuous like "echo". Known systems with this problem:
|
# to something innocuous like "echo". Known systems with this problem:
|
# older SCO boxes.
|
# older SCO boxes.
|
UNSHARED_RANLIB = @UNSHARED_RANLIB@
|
UNSHARED_RANLIB = @UNSHARED_RANLIB@
|
|
|
######################################################################
|
######################################################################
|
# End of things you are likely to want to change
|
# End of things you are likely to want to change
|
######################################################################
|
######################################################################
|
|
|
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
datadir = $(prefix)/lib
|
datadir = $(prefix)/lib
|
|
|
mandir = @mandir@
|
mandir = @mandir@
|
man1dir = $(mandir)/man1
|
man1dir = $(mandir)/man1
|
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
|
|
# Where to store utility scripts. This corresponds to the variable
|
# Where to store utility scripts. This corresponds to the variable
|
# "dbg_library".
|
# "dbg_library".
|
DBG_SCRIPTDIR = $(datadir)/dbg
|
DBG_SCRIPTDIR = $(datadir)/dbg
|
|
|
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
AR = ar
|
AR = ar
|
ARFLAGS = cr
|
ARFLAGS = cr
|
|
|
# TCLHDIR includes "-I"
|
# TCLHDIR includes "-I"
|
CPPFLAGS = -I. -I$(srcdir) $(TCLHDIR) \
|
CPPFLAGS = -I. -I$(srcdir) $(TCLHDIR) \
|
-DDBG_VERSION=$(VERSION) \
|
-DDBG_VERSION=$(VERSION) \
|
-DDBG_SCRIPTDIR=\"$(DBG_SCRIPTDIR)\"
|
-DDBG_SCRIPTDIR=\"$(DBG_SCRIPTDIR)\"
|
|
|
CFLAGS_INT = $(MH_CFLAGS) $(CPPFLAGS) $(CFLAGS)
|
CFLAGS_INT = $(MH_CFLAGS) $(CPPFLAGS) $(CFLAGS)
|
|
|
.c.o:
|
.c.o:
|
$(CC) -c $(CFLAGS_INT) $(HDEFS) $<
|
$(CC) -c $(CFLAGS_INT) $(HDEFS) $<
|
|
|
CFILES = Dbg.c Dbg_cmd.c
|
CFILES = Dbg.c Dbg_cmd.c
|
OFILES = Dbg.o Dbg_cmd.o
|
OFILES = Dbg.o Dbg_cmd.o
|
|
|
# libraries (both .a and shared)
|
# libraries (both .a and shared)
|
DBG_LIB_FILES = @DBG_LIB_FILES@
|
DBG_LIB_FILES = @DBG_LIB_FILES@
|
# default Dbg library (shared if possible, otherwise static)
|
# default Dbg library (shared if possible, otherwise static)
|
DBG_LIB_FILE = @DBG_LIB_FILE@
|
DBG_LIB_FILE = @DBG_LIB_FILE@
|
# Dbg object library (.a)
|
# Dbg object library (.a)
|
DBG_UNSHARED_LIB_FILE = @DBG_UNSHARED_LIB_FILE@
|
DBG_UNSHARED_LIB_FILE = @DBG_UNSHARED_LIB_FILE@
|
# Dbg object library (shared, if possible)
|
# Dbg object library (shared, if possible)
|
DBG_SHARED_LIB_FILE = @DBG_SHARED_LIB_FILE@
|
DBG_SHARED_LIB_FILE = @DBG_SHARED_LIB_FILE@
|
|
|
all: $(DBG_LIB_FILES)
|
all: $(DBG_LIB_FILES)
|
|
|
$(DBG_UNSHARED_LIB_FILE): $(OFILES)
|
$(DBG_UNSHARED_LIB_FILE): $(OFILES)
|
-rm -f $(DBG_UNSHARED_LIB_FILE)
|
-rm -f $(DBG_UNSHARED_LIB_FILE)
|
$(AR) $(ARFLAGS) $(DBG_UNSHARED_LIB_FILE) $(OFILES)
|
$(AR) $(ARFLAGS) $(DBG_UNSHARED_LIB_FILE) $(OFILES)
|
-$(UNSHARED_RANLIB) $(DBG_UNSHARED_LIB_FILE)
|
-$(UNSHARED_RANLIB) $(DBG_UNSHARED_LIB_FILE)
|
|
|
$(DBG_SHARED_LIB_FILE): $(OFILES)
|
$(DBG_SHARED_LIB_FILE): $(OFILES)
|
-rm -f $(DBG_SHARED_LIB_FILE)
|
-rm -f $(DBG_SHARED_LIB_FILE)
|
@TCL_SHLIB_LD@ -o $(DBG_SHARED_LIB_FILE) $(OFILES)
|
@TCL_SHLIB_LD@ -o $(DBG_SHARED_LIB_FILE) $(OFILES)
|
|
|
# Delete all the installed files that the `install' target creates
|
# Delete all the installed files that the `install' target creates
|
# (but not the noninstalled files such as `make all' creates)
|
# (but not the noninstalled files such as `make all' creates)
|
uninstall:
|
uninstall:
|
-rm -f $(man1dir)/tcldbg.1 \
|
-rm -f $(man1dir)/tcldbg.1 \
|
$(libdir)/$(DBG_SHARED_LIB_FILE) \
|
$(libdir)/$(DBG_SHARED_LIB_FILE) \
|
$(libdir)/$(DBG_UNSHARED_LIB_FILE) \
|
$(libdir)/$(DBG_UNSHARED_LIB_FILE) \
|
$(includedir)/Dbg.h \
|
$(includedir)/Dbg.h \
|
$(DBG_SCRIPTDIR)/pkgIndex.tcl
|
$(DBG_SCRIPTDIR)/pkgIndex.tcl
|
|
|
install: $(DBG_LIB_FILES)
|
install: $(DBG_LIB_FILES)
|
${srcdir}/mkinstalldirs $(man1dir) $(libdir) $(includedir) $(DBG_SCRIPTDIR)
|
${srcdir}/mkinstalldirs $(man1dir) $(libdir) $(includedir) $(DBG_SCRIPTDIR)
|
$(INSTALL_DATA) $(srcdir)/tcldbg.man $(man1dir)/tcldbg.1
|
$(INSTALL_DATA) $(srcdir)/tcldbg.man $(man1dir)/tcldbg.1
|
if [ -s $(DBG_UNSHARED_LIB_FILE) ] ; then \
|
if [ -s $(DBG_UNSHARED_LIB_FILE) ] ; then \
|
$(INSTALL_DATA) $(DBG_UNSHARED_LIB_FILE) $(libdir)/$(DBG_UNSHARED_LIB_FILE) ; \
|
$(INSTALL_DATA) $(DBG_UNSHARED_LIB_FILE) $(libdir)/$(DBG_UNSHARED_LIB_FILE) ; \
|
$(UNSHARED_RANLIB) $(libdir)/$(DBG_UNSHARED_LIB_FILE) ; \
|
$(UNSHARED_RANLIB) $(libdir)/$(DBG_UNSHARED_LIB_FILE) ; \
|
fi
|
fi
|
if [ -s $(DBG_SHARED_LIB_FILE) ] ; then \
|
if [ -s $(DBG_SHARED_LIB_FILE) ] ; then \
|
$(INSTALL_DATA) $(DBG_SHARED_LIB_FILE) $(libdir)/$(DBG_SHARED_LIB_FILE) ; \
|
$(INSTALL_DATA) $(DBG_SHARED_LIB_FILE) $(libdir)/$(DBG_SHARED_LIB_FILE) ; \
|
fi
|
fi
|
$(INSTALL_DATA) $(srcdir)/Dbg.h $(includedir)
|
$(INSTALL_DATA) $(srcdir)/Dbg.h $(includedir)
|
# create utility-script directory
|
# create utility-script directory
|
$(INSTALL_DATA) $(srcdir)/Dbg_lib.tcl $(DBG_SCRIPTDIR)
|
$(INSTALL_DATA) $(srcdir)/Dbg_lib.tcl $(DBG_SCRIPTDIR)
|
$(INSTALL_DATA) $(srcdir)/tclIndex $(DBG_SCRIPTDIR)
|
$(INSTALL_DATA) $(srcdir)/tclIndex $(DBG_SCRIPTDIR)
|
|
|
|
|
###################################
|
###################################
|
# Targets for Makefile and configure
|
# Targets for Makefile and configure
|
###################################
|
###################################
|
|
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) config.status
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) config.status
|
@echo "Rebuilding the Makefile..."
|
@echo "Rebuilding the Makefile..."
|
$(SHELL) config.status
|
$(SHELL) config.status
|
|
|
configure: $(srcdir)/configure.in $(srcdir)/Makefile.in $(srcdir)/aclocal.m4
|
configure: $(srcdir)/configure.in $(srcdir)/Makefile.in $(srcdir)/aclocal.m4
|
autoconf configure.in > configure
|
autoconf configure.in > configure
|
-@chmod a+x configure
|
-@chmod a+x configure
|
-rm -f config.cache
|
-rm -f config.cache
|
|
|
config.status: $(srcdir)/configure
|
config.status: $(srcdir)/configure
|
@echo "Rebuilding config.status..."
|
@echo "Rebuilding config.status..."
|
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
|
|
################################################
|
################################################
|
# Various "clean" targets follow GNU conventions
|
# Various "clean" targets follow GNU conventions
|
################################################
|
################################################
|
|
|
clean:
|
clean:
|
-rm -f *~ *.o core \
|
-rm -f *~ *.o core \
|
$(DBG_UNSHARED_LIB_FILE) $(DBG_SHARED_LIB_FILE)
|
$(DBG_UNSHARED_LIB_FILE) $(DBG_SHARED_LIB_FILE)
|
|
|
# like "clean", but also delete files created by "configure"
|
# like "clean", but also delete files created by "configure"
|
distclean: clean
|
distclean: clean
|
-rm -f Makefile config.status config.cache config.log Dbg_cf.h
|
-rm -f Makefile config.status config.cache config.log Dbg_cf.h
|
|
|
# like "clean", but doesn't delete test utilities or massaged scripts
|
# like "clean", but doesn't delete test utilities or massaged scripts
|
# because most people don't have to worry about them
|
# because most people don't have to worry about them
|
mostlyclean:
|
mostlyclean:
|
-rm -f *~ *.o core \
|
-rm -f *~ *.o core \
|
$(DBG_UNSHARED_LIB_FILE) $(DBG_SHARED_LIB_FILE)
|
$(DBG_UNSHARED_LIB_FILE) $(DBG_SHARED_LIB_FILE)
|
|
|
# delete everything from current directory that can be reconstructed
|
# delete everything from current directory that can be reconstructed
|
# except for configure
|
# except for configure
|
realclean: distclean
|
realclean: distclean
|
|
|
tclIndex: Dbg_lib.tcl
|
tclIndex: Dbg_lib.tcl
|
expect -c "auto_mkindex . *.tcl;exit"
|
expect -c "auto_mkindex . *.tcl;exit"
|
|
|
LINTFLAGS = -h -q -x
|
LINTFLAGS = -h -q -x
|
|
|
lint:
|
lint:
|
lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES) $(TCLLINTLIB) | tee debug.lint
|
lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES) $(TCLLINTLIB) | tee debug.lint
|
|
|
##################################
|
##################################
|
# Targets for development at NIST
|
# Targets for development at NIST
|
##################################
|
##################################
|
|
|
nist:
|
nist:
|
configure --verbose --prefix=/depot/tcl --exec-prefix=/depot/tcl/arch
|
configure --verbose --prefix=/depot/tcl --exec-prefix=/depot/tcl/arch
|
|
|
# report globals that shouldn't be public but are
|
# report globals that shouldn't be public but are
|
bad_globals:
|
bad_globals:
|
nm $(DBG_UNSHARED_LIB_FILE) | egrep -v " [a-zU] | _Dbg"
|
nm $(DBG_UNSHARED_LIB_FILE) | egrep -v " [a-zU] | _Dbg"
|
|
|
# after copying source directory, restablish all links
|
# after copying source directory, restablish all links
|
symlink:
|
symlink:
|
rm -f aclocal.m4
|
rm -f aclocal.m4
|
ln -s ../expect/aclocal.m4
|
ln -s ../expect/aclocal.m4
|
|
|
######################################
|
######################################
|
# Targets for pushing out releases
|
# Targets for pushing out releases
|
######################################
|
######################################
|
|
|
FTPDIR = /proj/itl/www/div826/subject/expect/tcl-debug
|
FTPDIR = /proj/itl/www/div826/subject/expect/tcl-debug
|
|
|
ftp: tcl-debug-$(SHORT_VERSION).tar.Z tcl-debug-$(SHORT_VERSION).tar.gz
|
ftp: tcl-debug-$(SHORT_VERSION).tar.Z tcl-debug-$(SHORT_VERSION).tar.gz
|
cp tcl-debug-$(SHORT_VERSION).tar.Z $(FTPDIR)/tcl-debug.tar.Z
|
cp tcl-debug-$(SHORT_VERSION).tar.Z $(FTPDIR)/tcl-debug.tar.Z
|
cp tcl-debug-$(SHORT_VERSION).tar.gz $(FTPDIR)/tcl-debug.tar.gz
|
cp tcl-debug-$(SHORT_VERSION).tar.gz $(FTPDIR)/tcl-debug.tar.gz
|
cp HISTORY $(FTPDIR)
|
cp HISTORY $(FTPDIR)
|
cp README $(FTPDIR)/README.distribution
|
cp README $(FTPDIR)/README.distribution
|
rm tcl-debug-$(SHORT_VERSION).tar*
|
rm tcl-debug-$(SHORT_VERSION).tar*
|
ls -l $(FTPDIR)/tcl-debug.tar*
|
ls -l $(FTPDIR)/tcl-debug.tar*
|
|
|
# make an alpha relase and install it on ftp server
|
# make an alpha relase and install it on ftp server
|
alpha: tcl-debug-$(SHORT_VERSION).tar.Z tcl-debug-$(SHORT_VERSION).tar.gz
|
alpha: tcl-debug-$(SHORT_VERSION).tar.Z tcl-debug-$(SHORT_VERSION).tar.gz
|
cp tcl-debug-$(SHORT_VERSION).tar.Z $(FTPDIR)/tcl-debug-alpha.tar.Z
|
cp tcl-debug-$(SHORT_VERSION).tar.Z $(FTPDIR)/tcl-debug-alpha.tar.Z
|
cp tcl-debug-$(SHORT_VERSION).tar.gz $(FTPDIR)/tcl-debug-alpha.tar.gz
|
cp tcl-debug-$(SHORT_VERSION).tar.gz $(FTPDIR)/tcl-debug-alpha.tar.gz
|
rm tcl-debug-$(SHORT_VERSION).tar*
|
rm tcl-debug-$(SHORT_VERSION).tar*
|
ls -l $(FTPDIR)/tcl-debug-alpha.tar*
|
ls -l $(FTPDIR)/tcl-debug-alpha.tar*
|
|
|
tcl-debug-$(SHORT_VERSION).tar:
|
tcl-debug-$(SHORT_VERSION).tar:
|
rm -f ../tcl-debug-$(SHORT_VERSION)
|
rm -f ../tcl-debug-$(SHORT_VERSION)
|
ln -s `pwd` ../tcl-debug-$(SHORT_VERSION)
|
ln -s `pwd` ../tcl-debug-$(SHORT_VERSION)
|
cd ..;tar cvfh $@ `pubfile tcl-debug-$(SHORT_VERSION)`
|
cd ..;tar cvfh $@ `pubfile tcl-debug-$(SHORT_VERSION)`
|
mv ../$@ .
|
mv ../$@ .
|
|
|
tcl-debug-$(SHORT_VERSION).tar.Z: tcl-debug-$(SHORT_VERSION).tar
|
tcl-debug-$(SHORT_VERSION).tar.Z: tcl-debug-$(SHORT_VERSION).tar
|
compress -fc tcl-debug-$(SHORT_VERSION).tar > $@
|
compress -fc tcl-debug-$(SHORT_VERSION).tar > $@
|
|
|
tcl-debug-$(SHORT_VERSION).tar.gz: tcl-debug-$(SHORT_VERSION).tar
|
tcl-debug-$(SHORT_VERSION).tar.gz: tcl-debug-$(SHORT_VERSION).tar
|
gzip -fc tcl-debug-$(SHORT_VERSION).tar > $@
|
gzip -fc tcl-debug-$(SHORT_VERSION).tar > $@
|
|
|
Dbg.o: $(srcdir)/Dbg.c $(srcdir)/Dbg.h
|
Dbg.o: $(srcdir)/Dbg.c $(srcdir)/Dbg.h
|
|
|