# Generated automatically from Makefile.in by configure.
#
# $Id: Makefile.in,v 1.2 1995/07/23 21:51:59 dimka Exp dimka $
#
# This is a prototype for Makefile for TclRl
#

CC=gcc
SHELL=/bin/sh
UNAME=osf
RANLIB = ranlib

TARGETS: libtclrl.a rlsh

INCLUDE= -I/usr/local/lib/tcl/include -I/s/dimka/dump/lib/readline/ultrix/include
#
# Compilation flags:
#
# NEED_LTOA -- use this if your system have no ltoa() function
# STRONG_BINDINGS -- use this if you applied readline.c.patch and want 
#                    compilation with upgrader libreadline.a
#
# WITH_LIBES_DBG -- this is optional and adds some debugging support
#
DEFINE=  -DHAVE_LIBM=1 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBTCL=1 -DHAVE_LIBREADLINE=1 -DSTDC_HEADERS=1 -DNEED_LTOA=1 -DNEED_STRDUP=1 -DWITH_LIBES_DBG=1 

LIBS= -L/usr/local/lib/tcl/lib -L/s/dimka/dump/lib/readline/ultrix/lib -lreadline -ltcl -ltermcap -lm  -ltcldbg


CFLAGS= -g -c $(INCLUDE) $(DEFINE)

OBJECTS = rl.o display.o text.o undo.o complete.o libes_dbg.o 

libtclrl.a: $(OBJECTS)
	ar cr $@ $(OBJECTS)
	-ranlib $@
DISTRIB = tclrl/README tclrl/COPYING tclrl/tclrl.ps tclrl/tclrl.dvi\
	  tclrl/complete.c tclrl/tclAppInit.c tclrl/tclMain.c \
	  tclrl/undo.c tclrl/display.c \
          tclrl/Makefile tclrl/rl.c tclrl/examples/tclrsh.tcl  tclrl/rl.h tclrl/ToDo \
	  tclrl/libes_dbg.c tclrl/text.c tclrl/readline.c.patch \
	  tclrl/configure tclrl/configure.in tclrl/Makefile.noconf \
	  tclrl/tcl7.4Main.c
ARCHIVE = tclrl-0.0.tar

all : $(TARGETS)

TCLMAIN = tclMain

rlsh : $(OBJECTS) tclAppInit.o $(TCLMAIN).o
	$(CC) -g tclAppInit.o $(TCLMAIN).o libtclrl.a  $(LIBS) -o $@
clean:
	rm -f $(OBJECTS) $(TARGETS) tclAppInit.o $(TCLMAIN).o *~ *.a core
tar:
	( cd .. ; rm -f $(ARCHIVE).gz ; tar -cvf $(ARCHIVE) $(DISTRIB) ;gzip $(ARCHIVE))

 


