# Generated automatically from Makefile.in by configure.
#
# Makefile for tcl debugger
#

VERSION = 1.0.9
SHORT_VERSION = 1.0

# Compatible with Tcl version 6.5, 6.6, 6.7, 7.1, 7.2, and 7.3
# Compatible with Tk version 3.3, and 3.4

srcdir 	= .
VPATH = .

######################################################################
# 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).
# This must point to the directory that contains ALL of Tcl's include
# files, not just the public ones.
TCLHDIR = -I./../tcl

# flags to pass to cc
# -O for production version
# -g for debuggable version
CFLAGS = -g

# which C compiler to use
CC = gcc

# By default, `make install' will install the appropriate files in
# /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
# an installation prefix other than /usr/local here:
prefix = /depot/tcl

# You can specify a separate installation prefix for architecture-specific
# files such as binaries and libraries.
exec_prefix = /depot/tcl/arch

# If you have ranlib but it should be avoided, change this from "ranlib" #
# to something innocuous like "echo".  Known systems with this problem:
# older SCO boxes.
RANLIB = ranlib

######################################################################
# End of things you are likely to want to change
######################################################################

libdir 	= $(exec_prefix)/lib
includedir = $(prefix)/include

INSTALL = $(srcdir)/install.sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)

AR = ar
ARFLAGS = cr

CPPFLAGS =	-I. -I$(srcdir) $(TCLHDIR)

CFLAGS_INT = $(MH_CFLAGS) $(CPPFLAGS) $(CFLAGS)

.c.o:
	$(CC) -c $(CFLAGS_INT) $(HDEFS) $<

CFILES = Dbg.c Dbg_cmd.c
OFILES = Dbg.o Dbg_cmd.o
LIBDEBUG = libtcldbg.a

all: $(LIBDEBUG)

Makefile : $(srcdir)/Makefile.in $(host_makefile_frag)
	$(SHELL) config.status

$(LIBDEBUG): $(OFILES)
	$(AR) $(ARFLAGS) $(LIBDEBUG) $(OFILES)
	-$(RANLIB) $(LIBDEBUG)

install:	$(LIBDEBUG)
	$(INSTALL_DATA) $(LIBDEBUG) $(libdir)/$(LIBDEBUG)
	-$(RANLIB) $(libdir)/$(LIBDEBUG)
	$(INSTALL_DATA) $(srcdir)/Dbg.h $(includedir)

clean:
	-rm -f *~ *.o core $(LIBDEBUG)

distclean: clean
	-rm -f Makefile config.status

configure: configure.in
	autoconf configure.in > configure
	-@chmod a+x configure

lint:
	lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES) $(TCLLINTLIB) | tee debug.lint

nist:
	configure --v --prefix=/depot/tcl --exec-prefix=/depot/tcl/arch

FTPDIR = /proj/elib/online/pub/expect

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.gz $(FTPDIR)/tcl-debug.tar.gz
	rm tcl-debug-$(SHORT_VERSION).tar*
	ls -l $(FTPDIR)/tcl-debug.tar*

tcl-debug-$(SHORT_VERSION).tar:
	rm -f ../tcl-debug-$(SHORT_VERSION)
	ln -s `pwd` ../tcl-debug-$(SHORT_VERSION)
	rm -f ../pubfile
	ln pubfile ..
	cd ..;tar cvfh $@ `pubfile tcl-debug-$(SHORT_VERSION)`
	mv ../$@ .

tcl-debug-$(SHORT_VERSION).tar.Z:	tcl-debug-$(SHORT_VERSION).tar
	compress -fc tcl-debug-$(SHORT_VERSION).tar > $@

tcl-debug-$(SHORT_VERSION).tar.gz:	tcl-debug-$(SHORT_VERSION).tar
	gzip -fc tcl-debug-$(SHORT_VERSION).tar > $@
