# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.2 from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Copyright Abandoned 1996,1997 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind

# Makefile for DBI and Msql-Mysql-modules. The Msql-Mysql-modules was
# renamed Mysql-Modules but the msql support is still present but not
# enabled by default.

# *** REMEMBER to check the filelists below for new versions of DBI or Msql-Mysql-modules ***


SHELL = /bin/sh

srcdir = .
top_srcdir = ..
prefix = /usr/local/mysql
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

pkgdatadir = $(datadir)/mysql
pkglibdir = $(libdir)/mysql
pkgincludedir = $(includedir)/mysql

top_builddir = ..

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = true
PRE_INSTALL = true
POST_INSTALL = true
NORMAL_UNINSTALL = true
PRE_UNINSTALL = true
POST_UNINSTALL = true
build_alias = sparc-sun-solaris2.5.1
build_triplet = sparc-sun-solaris2.5.1
host_alias = sparc-sun-solaris2.5.1
host_triplet = sparc-sun-solaris2.5.1
target_alias = sparc-sun-solaris2.5.1
target_triplet = sparc-sun-solaris2.5.1
ALLOCA = 
CC = gcc
CHARSET_OBJS = ctype-latin1.o
CHARSET_SRCS = ctype-latin1.c
CHECK_PID = /usr/bin/kill -0 $$PID
CHMOD = /usr/bin/chmod
CLIENT_LIBS = -lnsl -lm  -lsocket  -lcrypt -ldl -lgen 
CMP = /usr/bin/cmp
COMPILATION_COMMENT = TCX binary
CP = /usr/bin/cp
CPP = gcc -E
CXX = gcc
DOT_FRM_VERSION = 6
FIND_PROC = /usr/ucb/ps $$PID | grep mysqld > /dev/null
GXX = yes
HOSTNAME = /usr/bin/hostname
IS_LINUX = false
KILL = /usr/bin/kill
LM_CFLAGS = 
LN = /usr/bin/ln
LN_CP_F = /usr/bin/ln
MACHINE_TYPE = sparc
MAINT = #M#
MAKEINFO = makeinfo
MT_INCLUDES = 
MT_LD_ADD = 
MV = /usr/bin/mv
MYSQLD_DEFAULT_SWITCHES = 
MYSQL_UNIX_ADDR = /tmp/mysql.sock
MYSQL_VERSION_ID = 32126
PACKAGE = mysql
PERL5 = /usr/bin/perl
PERL_MATHLIB = -lm
PROTOCOL_VERSION = 10
PS = /usr/ucb/ps
RANLIB = ranlib
RM = /usr/bin/rm
SED = /usr/bin/sed
SHARED_LIB_VERSION = 4
SYSTEM_TYPE = sun-solaris2.5.1
TERMCAP_LIB = -lcurses
THREAD_LOBJECTS = thr_alarm.o thr_lock.o my_pthread.o
THREAD_LPROGRAMS = thr_alarm thr_lock
VERSION = 3.21.26-gamma
YACC = bison -y
bench_dirs = bench
docs_dirs = Docs
install_shlib = 
mystrings_charset = latin1
perl_dirs = 
readline_dir = readline
readline_link = -L../readline -lreadline
server_scripts = mysql.server safe_mysqld mysql_install_db
shlib = 
sql_server_dirs = strings dbug mysys extra regex isam heap merge sql data

INCLUDED_DBI_VERSION=0.90
INCLUDED_DBD_VERSION=1.1821

PERL = /usr/bin/perl

SUFFIXES = .sh
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = 
DIST_COMMON =  Makefile.am Makefile.in


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP = --best
default: all

.SUFFIXES:
.SUFFIXES: .sh
$(srcdir)/Makefile.in: #M# Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps perl/Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

tags: TAGS
TAGS:


distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = perl

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
	$(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
info:
dvi:
check: all
	$(MAKE)
installcheck:
install-exec: 
	@$(NORMAL_INSTALL)
	$(MAKE) install-exec-hook

install-data: 
	@$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: 

all: Makefile

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:


mostlyclean-generic:
	test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

maintainer-clean-generic:
	test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean:  mostlyclean-generic

clean:  clean-generic mostlyclean

distclean:  distclean-generic clean
	rm -f config.status

maintainer-clean:  maintainer-clean-generic distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

.PHONY: default tags distdir info dvi installcheck install-exec \
install-data install uninstall all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean


# The subdirectory's is to avoid having perl's Makefile overwrite
# automakes Makefile.

all:
	BASEDIR=`cd $(top_srcdir); pwd`; \
	BUILDDIR=`cd $(top_builddir); pwd`; \
	cd $$BASEDIR/perl/DBI; \
	/usr/bin/perl Makefile.PL; sleep 2; $(MAKE); \
	cd $$BASEDIR/perl/Mysql-modules; \
	IN_MYSQL_DISTRIBUTION=1; \
	MYSQL_HOME=$$BASEDIR; \
	MYSQL_BUILD=$$BUILDDIR \
	export IN_MYSQL_DISTRIBUTION MYSQL_HOME	MYSQL_BUILD; \
	/usr/bin/perl -I$$BASEDIR/perl/DBI/blib/arch \
	       -I$$BASEDIR/perl/DBI/blib/lib Makefile.PL; \
	sleep 2 ; $(MAKE)

test:	DBI/Makefile Mysql-modules/Makefile
	BASEDIR=`cd $(top_srcdir); pwd`; \
	cd $$BASEDIR/perl/DBI; $(MAKE) test; \
	cd $$BASEDIR/perl/Mysql-modules; $(MAKE) test

# Should be distclean-hooks if automake supported that
distclean-generic:	perldistclean

clean-generic:		perlclean

perldistclean:
	BASEDIR=`cd $(top_srcdir); pwd`; \
	cd $$BASEDIR/perl/DBI; $(MAKE) distclean; \
	cd $$BASEDIR/perl/Mysql-modules; $(MAKE) distclean

perlclean:
	BASEDIR=`cd $(top_srcdir); pwd`; \
	cd $$BASEDIR/perl/DBI; $(MAKE) clean; \
	cd $$BASEDIR/perl/Mysql-modules; $(MAKE) clean

# This requires a manual check/update each time we update DBI or Msql-Mysql-modules
dist-hook:
	BASEDIR=`cd $(top_srcdir); pwd`; \
	for file in \
		t/examp.t t/dbidrv.t t/basics.t DriverST.xst lib/DBI/W32ODBC.pm \
		lib/DBI/FAQ.pm lib/DBI/DBD.pm lib/DBD/ExampleP.pm lib/DBD/NullP.pm \
		lib/DBD/Sponge.pm Makefile.PL DBI.xs test.pl README DBIXS.h dbd_xsh.h \
		dbi_sql.h ToDo MANIFEST Changes Driver.xst DBI.pm DriverDB.xst; \
	do \
		dir=`dirname $$file`; \
		if test ! -d $(distdir)/DBI/$$dir; then \
			mkdir -p $(distdir)/DBI/$$dir; \
		fi; \
		cp -p $$BASEDIR/perl/DBI/$$file $(distdir)/DBI/$$file; \
	done; \
	for file in \
	    DBD-mysql/t/40numrows.t DBD-mysql/t/lib.pl DBD-mysql/t/10dsnlist.t \
	    DBD-mysql/t/00base.t DBD-mysql/t/ak-dbd.t DBD-mysql/t/50chopblanks.t \
	    DBD-mysql/t/20createdrop.t DBD-mysql/t/50commit.t \
	    DBD-mysql/t/30insertfetch.t DBD-mysql/t/40nulls.t \
	    DBD-mysql/t/40bindparam.t DBD-mysql/t/40blobs.t \
	    DBD-mysql/t/40listfields.t DBD-mysql/myMsql.c DBD-mysql/dbdimp.c \
	    DBD-mysql/mysql.xs Mysql/t/mysql.t Mysql/t/akmisc.t Mysql/t/lib.pl \
	    Mysql/t/mysql2.t Mysql/typemap Mysql/myMsql.c Mysql/pmysql \
	    Mysql/Mysql.xs dbd/dbd.xs.in dbd/Acknowledgements \
	    dbd/README dbd/dbd.pm.in dbd/myMsql.c dbd/Changes dbd/myMsql.h \
	    dbd/Makefile.PL.in dbd/dbimon.in dbd/dbdimp.c dbd/dbdimp.h \
	    dbd/bindparam.h \
	    Msql/Msql.xs Msql/typemap Msql/t/lib.pl Msql/t/msql1.t \
	    Msql/t/akmisc.t Msql/t/msql2.t Msql/pmsql Msql/myMsql.c \
	    nodbd/constants.h nodbd/typemap nodbd/nodbd.pm.in \
	    nodbd/statement.pm.in nodbd/bundle.pm.in nodbd/Makefile.PL.in \
	    nodbd/pmsql.in nodbd/nodbd.xs.in DBD-mSQL/t/40numrows.t \
	    DBD-mSQL/t/40listfields.t DBD-mSQL/t/00base.t DBD-mSQL/t/lib.pl \
	    DBD-mSQL/t/10dsnlist.t DBD-mSQL/t/ak-dbd.t DBD-mSQL/t/40nulls.t \
	    DBD-mSQL/t/40bindparam.t DBD-mSQL/t/30insertfetch.t \
	    DBD-mSQL/t/50chopblanks.t DBD-mSQL/t/20createdrop.t \
	    DBD-mSQL/t/50commit.t DBD-mSQL/myMsql.c DBD-mSQL/dbdimp.c \
	    DBD-mSQL/mSQL.xs lib/DBD/mSQL.pm lib/DBD/mysql.pm lib/Mysql.pm \
	    lib/Bundle/Mysql.pm lib/Bundle/Msql.pm lib/Msql/Statement.pm \
	    lib/Mysql/Statement.pm lib/Msql.pm tests/pNET.dbtest \
	    tests/msql2.t tests/30insertfetch.t tests/mysql2.t \
	    tests/50chopblanks.t tests/20createdrop.t tests/50commit.t \
	    tests/40numrows.t tests/README tests/msql1.t tests/mysql.mtest \
	    tests/pNET.mtest tests/40listfields.t tests/akmisc.t tests/00base.t \
	    tests/lib.pl tests/10dsnlist.t tests/ak-dbd.t tests/mysql.dbtest \
	    tests/mSQL.dbtest tests/skeleton.test tests/40bindparam.t \
	    tests/40nulls.t tests/40blobs.t tests/mysql.t tests/mSQL.mtest \
	    msql.patch.lost.tables MANIFEST FAQ.msql Makefile.PL ChangeLog INSTALL \
	    Makefile.lib README xtract dbimon; \
	do \
		dir=`dirname $$file`; \
		if test ! -d $(distdir)/Mysql-modules/$$dir; then \
			mkdir -p $(distdir)/Mysql-modules/$$dir; \
		fi; \
		cp -p $$BASEDIR/perl/Mysql-modules/$$file $(distdir)/Mysql-modules/$$file; \
	done;

# Run make two times since the first run may remake the Makefile.
install-exec-hook: install-dbi install-dbd

# When installing on a RedHat 5.0 system I had to create INSTALLARCHLIB.
# By default that is/tmp/perl-root/usr/lib/perl5/i386-linux/5.00401

install-dbi: DBI/Makefile.PL
	BASEDIR=`cd $(top_srcdir); pwd`; \
	cd $$BASEDIR/perl/DBI; \
	$(MAKE) -f Makefile; \
	$(MAKE) -f Makefile install UNINST=1

install-dbd: Mysql-modules/Makefile.PL
	BASEDIR=`cd $(top_srcdir); pwd`; \
	cd $$BASEDIR/perl/Mysql-modules; \
	$(MAKE) -f Makefile; \
	$(MAKE) -f Makefile install UNINST=1

.PHONY: test perldistclean perlclean install-dbi install-dbd

.sh:
	/usr/bin/rm -f $@ $@-t
	/usr/bin/sed \
	  -e 's!@''bindir''@!$(bindir)!' \
	  -e 's!@''prefix''@!$(prefix)!' \
	  -e 's!@''sharedstatedir''@!$(sharedstatedir)!' \
	  -e 's!@''libexecdir''@!$(libexecdir)!' \
	  -e 's!@''INCLUDEDIR''@!$(srcdir)/../include!' \
	  -e 's!@''SRCDIR''@!$(srcdir)!' \
	  -e 's!@''PERL''@!$(PERL)!' \
	  -e 's!@''PERL_THREADLIB''@!@PERL_THREADLIB@!' \
	  -e 's!@''PERL_MATHLIB''@!-lm!' \
	$< > $@-t
	/usr/bin/chmod +x $@-t
	/usr/bin/mv $@-t $@

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
