# Generated automatically from Makefile.in by configure.
#
#	Makefile	- makes the Mini SQL tcl code
#
# Copyright (c) 1994   Brad Pepers
#
# Permission to use, copy, and distribute for non-commercial purposes,
# is hereby granted without fee, providing that the above copyright
# notice appear in all copies and that both the copyright notice and this
# permission notice appear in supporting documentation.
#
# This software is provided "as is" without any expressed or implied
# warranty.
#
# $Id: Makefile.in,v 1.1 1998/11/06 16:13:00 timmer Exp $
#
# $Log: Makefile.in,v $
# Revision 1.1  1998/11/06 16:13:00  timmer
# add Makefile.in to cvs
#
# Revision 1.5  1997/05/09 19:40:32  heyes
# 2.0b2
#
# Revision 1.1.1.1  1996/09/05 14:29:46  heyes
# Initial Import
#
# Revision 1.7  1994/08/25  00:28:05  pepers
# Changed for mSQL version 0.2
#
# Revision 1.6  1994/07/28  23:20:02  pepers
# Removed tclMain and tkMain
#
# Revision 1.5  1994/07/28  23:17:29  pepers
# Added paths for home and work
#
# Revision 1.4  1994/07/28  22:44:47  pepers
# Changed around how commands work
#
# Revision 1.3  1994/07/28  02:08:19  pepers
# Added clean, realclean, and tar
#
# Revision 1.2  1994/07/27  22:43:22  pepers
# Fixed log files
#
# Revision 1.1  1994/07/27  22:41:21  pepers
# First version of mSQL to Tcl/Tk interface
#

CODA_INC = /usr/local/coda/2.5/common/include
CODA_LIB = /usr/local/coda/2.5/Linux/lib

CC = gcc
AR = ar
RANLIB = ranlib

CFLAGS   =  -O -I$(CODA_INC) -L$(CODA_LIB)

TCL_LIBS  = -ltcl
TK_LIBS   = -ltk
MSQL_LIBS = -lmsql -lm -lnsl -lresolv -ldl
X_LIBS    = -L/usr/X11R6/lib -lXpm -lXext -lXt -lX11

install : tclSQL.o 
	rm -f libSQL.a
	$(AR) cr libSQL.a tclSQL.o
	$(RANLIB) libSQL.a
	cp libSQL.a ${CODA_LIB}

all : install

test : tclmsql msqlwish ${CODA_LIB}/libmsql.a

tclmsql : tclAppInit.o tclSQL.o
	$(CC) $(CFLAGS) -o tclmsql tclAppInit.o tclSQL.o $(TCL_LIBS) $(MSQL_LIBS)

tclAppInit.o : tclAppInit.c

tclSQL.o : tclSQL.c tclSQL.h

msqlwish : tkAppInit.o tclSQL.o
	$(CC) $(CFLAGS) -o msqlwish tkAppInit.o tclSQL.o \
	$(TK_LIBS) $(TCL_LIBS) $(MSQL_LIBS) $(X_LIBS)

tkAppInit.o : tkAppInit.c

clean:
	rm -f *.o

realclean:
	rm -f *.o *~ tcl_msql.tar tclmsql msqlwish

tar:
	tar cf tcl_msql.tar README Makefile tclSQL.c tclSQL.h \
	tclAppInit.c tkAppInit.c test.tcl test.tk
