# Makefile.in generated automatically by automake 1.5 from Makefile.am.

# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@

# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#called from the top level Makefile

SHELL = @SHELL@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
ALLOCA = @ALLOCA@
AMTAR = @AMTAR@
AS = @AS@
ASFLAGS = @ASFLAGS@
AVAILABLE_LANGUAGES = @AVAILABLE_LANGUAGES@
AVAILABLE_LANGUAGES_ERRORS = @AVAILABLE_LANGUAGES_ERRORS@
AWK = @AWK@
CC = @CC@
CC_VERSION = @CC_VERSION@
CFLAGS = @CFLAGS@
CHECK_PID = @CHECK_PID@
CHMOD = @CHMOD@
CLIENT_EXTRA_LDFLAGS = @CLIENT_EXTRA_LDFLAGS@
CLIENT_LIBS = @CLIENT_LIBS@
CMP = @CMP@
COMPILATION_COMMENT = @COMPILATION_COMMENT@
CONF_COMMAND = @CONF_COMMAND@
CP = @CP@
CPP = @CPP@
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
CXXLDFLAGS = @CXXLDFLAGS@
CXX_VERSION = @CXX_VERSION@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOT_FRM_VERSION = @DOT_FRM_VERSION@
DVIS = @DVIS@
ECHO = @ECHO@
EXEEXT = @EXEEXT@
FIND_PROC = @FIND_PROC@
GETCONF = @GETCONF@
GXX = @GXX@
HOSTNAME = @HOSTNAME@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
IS_LINUX = @IS_LINUX@
KILL = @KILL@
LD = @LD@
LIBDL = @LIBDL@
LIBTOOL = @LIBTOOL@
LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
LM_CFLAGS = @LM_CFLAGS@
LN = @LN@
LN_CP_F = @LN_CP_F@
LN_S = @LN_S@
MACHINE_TYPE = @MACHINE_TYPE@
MAINT = @MAINT@
MAKE_BINARY_DISTRIBUTION_OPTIONS = @MAKE_BINARY_DISTRIBUTION_OPTIONS@
MAKE_SHELL = @MAKE_SHELL@
MT_INCLUDES = @MT_INCLUDES@
MT_LD_ADD = @MT_LD_ADD@
MV = @MV@
MYSQLD_DEFAULT_SWITCHES = @MYSQLD_DEFAULT_SWITCHES@
MYSQLD_EXTRA_LDFLAGS = @MYSQLD_EXTRA_LDFLAGS@
MYSQLD_USER = @MYSQLD_USER@
MYSQL_BASE_VERSION = @MYSQL_BASE_VERSION@
MYSQL_NO_DASH_VERSION = @MYSQL_NO_DASH_VERSION@
MYSQL_SERVER_SUFFIX = @MYSQL_SERVER_SUFFIX@
MYSQL_TCP_PORT = @MYSQL_TCP_PORT@
MYSQL_TCP_PORT_DEFAULT = @MYSQL_TCP_PORT_DEFAULT@
MYSQL_UNIX_ADDR = @MYSQL_UNIX_ADDR@
MYSQL_VERSION_ID = @MYSQL_VERSION_ID@
NOINST_LDFLAGS = @NOINST_LDFLAGS@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PDFMANUAL = @PDFMANUAL@
PERL = @PERL@
PERL5 = @PERL5@
PROTOCOL_VERSION = @PROTOCOL_VERSION@
PS = @PS@
RANLIB = @RANLIB@
RM = @RM@
SAVE_ASFLAGS = @SAVE_ASFLAGS@
SAVE_CFLAGS = @SAVE_CFLAGS@
SAVE_CXXFLAGS = @SAVE_CXXFLAGS@
SAVE_CXXLDFLAGS = @SAVE_CXXLDFLAGS@
SAVE_LDFLAGS = @SAVE_LDFLAGS@
SED = @SED@
SHARED_LIB_VERSION = @SHARED_LIB_VERSION@
STRIP = @STRIP@
SYSTEM_TYPE = @SYSTEM_TYPE@
TAR = @TAR@
TERMCAP_LIB = @TERMCAP_LIB@
THREAD_LOBJECTS = @THREAD_LOBJECTS@
THREAD_LPROGRAMS = @THREAD_LPROGRAMS@
VERSION = @VERSION@
YACC = @YACC@
am__include = @am__include@
am__quote = @am__quote@
bdb_includes = @bdb_includes@
bdb_libs = @bdb_libs@
bdb_libs_with_path = @bdb_libs_with_path@
bench_dirs = @bench_dirs@
docs_dirs = @docs_dirs@
fs_dirs = @fs_dirs@
innodb_includes = @innodb_includes@
innodb_libs = @innodb_libs@
innodb_system_libs = @innodb_system_libs@
install_sh = @install_sh@
isam_libs = @isam_libs@
libmysqld_dirs = @libmysqld_dirs@
linked_client_targets = @linked_client_targets@
linked_netware_sources = @linked_netware_sources@
netware_dir = @netware_dir@
openssl_includes = @openssl_includes@
openssl_libs = @openssl_libs@
orbit_idl = @orbit_idl@
orbit_includes = @orbit_includes@
orbit_libs = @orbit_libs@
pstack_dirs = @pstack_dirs@
pstack_libs = @pstack_libs@
readline_basedir = @readline_basedir@
readline_dir = @readline_dir@
readline_h_ln_cmd = @readline_h_ln_cmd@
readline_link = @readline_link@
readline_topdir = @readline_topdir@
server_scripts = @server_scripts@
sql_client_dirs = @sql_client_dirs@
sql_server_dirs = @sql_server_dirs@
thread_dirs = @thread_dirs@
tools_dirs = @tools_dirs@
uname_prog = @uname_prog@
vio_dir = @vio_dir@
vio_libs = @vio_libs@
WRAPLIBS = @WRAPLIBS@

MYSQLDATAdir = $(localstatedir)
MYSQLSHAREdir = $(pkgdatadir)
MYSQLBASEdir = $(prefix)
INCLUDES = @MT_INCLUDES@ \
			@bdb_includes@ @innodb_includes@ \
			-I$(top_srcdir)/include -I$(top_srcdir)/regex \
			-I$(srcdir) $(openssl_includes)

SUBDIRS = share
libexec_PROGRAMS = mysqld
noinst_PROGRAMS = gen_lex_hash
gen_lex_hash_LDFLAGS = @NOINST_LDFLAGS@
LDADD = @isam_libs@ \
			../myisam/libmyisam.a \
			../myisammrg/libmyisammrg.a \
			../heap/libheap.a \
			../vio/libvio.a \
			../mysys/libmysys.a \
			../dbug/libdbug.a \
			../regex/libregex.a \
			../strings/libmystrings.a


mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
			@bdb_libs@ @innodb_libs@ @pstack_libs@ \
                        @innodb_system_libs@ \
			$(LDADD)  $(CXXLDFLAGS) $(WRAPLIBS) @LIBDL@ @openssl_libs@

noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \
			item_strfunc.h item_timefunc.h item_uniq.h \
			item_create.h item_subselect.h item_row.h \
			mysql_priv.h item_geofunc.h sql_bitmap.h \
			procedure.h sql_class.h sql_lex.h sql_list.h \
			sql_manager.h sql_map.h sql_string.h unireg.h \
			field.h handler.h \
			ha_isammrg.h ha_isam.h ha_myisammrg.h\
			ha_heap.h ha_myisam.h ha_berkeley.h ha_innodb.h \
			opt_range.h opt_ft.h protocol.h \
			sql_select.h structs.h table.h sql_udf.h hash_filo.h\
			lex.h lex_symbol.h sql_acl.h sql_crypt.h  \
			log_event.h sql_repl.h slave.h \
			stacktrace.h sql_sort.h sql_cache.h set_var.h \
			spatial.h gstream.h client_settings.h

mysqld_SOURCES = sql_lex.cc sql_handler.cc \
			item.cc item_sum.cc item_buff.cc item_func.cc \
			item_cmpfunc.cc item_strfunc.cc item_timefunc.cc \
			thr_malloc.cc item_create.cc item_subselect.cc \
			item_row.cc item_geofunc.cc \
			field.cc strfunc.cc key.cc sql_class.cc sql_list.cc \
			net_serv.cc protocol.cc sql_state.c \
			lock.cc my_lock.c \
			sql_string.cc sql_manager.cc sql_map.cc \
			mysqld.cc password.c hash_filo.cc hostname.cc \
			set_var.cc sql_parse.cc sql_yacc.yy \
			sql_base.cc table.cc sql_select.cc sql_insert.cc \
                        sql_prepare.cc sql_error.cc \
			sql_update.cc sql_delete.cc uniques.cc sql_do.cc \
			procedure.cc item_uniq.cc sql_test.cc \
			log.cc log_event.cc init.cc derror.cc sql_acl.cc \
			unireg.cc des_key_file.cc \
			time.cc opt_range.cc opt_sum.cc opt_ft.cc \
		   	records.cc filesort.cc handler.cc \
		        ha_heap.cc ha_myisam.cc ha_myisammrg.cc \
	                ha_berkeley.cc ha_innodb.cc \
			ha_isam.cc ha_isammrg.cc \
			sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \
			sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \
			sql_udf.cc sql_analyse.cc sql_analyse.h sql_cache.cc \
			slave.cc sql_repl.cc sql_union.cc sql_derived.cc \
			client.c sql_client.cc mini_client_errors.c pack.c\
			stacktrace.c repl_failsafe.h repl_failsafe.cc sql_olap.cc\
			gstream.cc spatial.cc sql_help.cc protocol_cursor.cc

gen_lex_hash_SOURCES = gen_lex_hash.cc
gen_lex_hash_LDADD = $(LDADD) $(CXXLDFLAGS)

DEFS = -DMYSQL_SERVER \
			-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
			-DDATADIR="\"$(MYSQLDATAdir)\"" \
			-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
			@DEFS@

# Don't put lex_hash.h in BUILT_SOURCES as this will give infinite recursion
BUILT_SOURCES = sql_yacc.cc sql_yacc.h
EXTRA_DIST = udf_example.cc $(BUILT_SOURCES)
AM_YFLAGS = -d
subdir = sql
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
libexec_PROGRAMS = mysqld$(EXEEXT)
noinst_PROGRAMS = gen_lex_hash$(EXEEXT)
PROGRAMS = $(libexec_PROGRAMS) $(noinst_PROGRAMS)

am_gen_lex_hash_OBJECTS = gen_lex_hash.$(OBJEXT)
gen_lex_hash_OBJECTS = $(am_gen_lex_hash_OBJECTS)
gen_lex_hash_DEPENDENCIES = ../myisam/libmyisam.a \
	../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a \
	../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a \
	../strings/libmystrings.a
am_mysqld_OBJECTS = sql_lex.$(OBJEXT) sql_handler.$(OBJEXT) \
	item.$(OBJEXT) item_sum.$(OBJEXT) item_buff.$(OBJEXT) \
	item_func.$(OBJEXT) item_cmpfunc.$(OBJEXT) \
	item_strfunc.$(OBJEXT) item_timefunc.$(OBJEXT) \
	thr_malloc.$(OBJEXT) item_create.$(OBJEXT) \
	item_subselect.$(OBJEXT) item_row.$(OBJEXT) \
	item_geofunc.$(OBJEXT) field.$(OBJEXT) strfunc.$(OBJEXT) \
	key.$(OBJEXT) sql_class.$(OBJEXT) sql_list.$(OBJEXT) \
	net_serv.$(OBJEXT) protocol.$(OBJEXT) sql_state.$(OBJEXT) \
	lock.$(OBJEXT) my_lock.$(OBJEXT) sql_string.$(OBJEXT) \
	sql_manager.$(OBJEXT) sql_map.$(OBJEXT) mysqld.$(OBJEXT) \
	password.$(OBJEXT) hash_filo.$(OBJEXT) hostname.$(OBJEXT) \
	set_var.$(OBJEXT) sql_parse.$(OBJEXT) sql_yacc.$(OBJEXT) \
	sql_base.$(OBJEXT) table.$(OBJEXT) sql_select.$(OBJEXT) \
	sql_insert.$(OBJEXT) sql_prepare.$(OBJEXT) sql_error.$(OBJEXT) \
	sql_update.$(OBJEXT) sql_delete.$(OBJEXT) uniques.$(OBJEXT) \
	sql_do.$(OBJEXT) procedure.$(OBJEXT) item_uniq.$(OBJEXT) \
	sql_test.$(OBJEXT) log.$(OBJEXT) log_event.$(OBJEXT) \
	init.$(OBJEXT) derror.$(OBJEXT) sql_acl.$(OBJEXT) \
	unireg.$(OBJEXT) des_key_file.$(OBJEXT) time.$(OBJEXT) \
	opt_range.$(OBJEXT) opt_sum.$(OBJEXT) opt_ft.$(OBJEXT) \
	records.$(OBJEXT) filesort.$(OBJEXT) handler.$(OBJEXT) \
	ha_heap.$(OBJEXT) ha_myisam.$(OBJEXT) ha_myisammrg.$(OBJEXT) \
	ha_berkeley.$(OBJEXT) ha_innodb.$(OBJEXT) ha_isam.$(OBJEXT) \
	ha_isammrg.$(OBJEXT) sql_db.$(OBJEXT) sql_table.$(OBJEXT) \
	sql_rename.$(OBJEXT) sql_crypt.$(OBJEXT) sql_load.$(OBJEXT) \
	mf_iocache.$(OBJEXT) field_conv.$(OBJEXT) sql_show.$(OBJEXT) \
	sql_udf.$(OBJEXT) sql_analyse.$(OBJEXT) sql_cache.$(OBJEXT) \
	slave.$(OBJEXT) sql_repl.$(OBJEXT) sql_union.$(OBJEXT) \
	sql_derived.$(OBJEXT) client.$(OBJEXT) sql_client.$(OBJEXT) \
	mini_client_errors.$(OBJEXT) pack.$(OBJEXT) \
	stacktrace.$(OBJEXT) repl_failsafe.$(OBJEXT) sql_olap.$(OBJEXT) \
	gstream.$(OBJEXT) spatial.$(OBJEXT) sql_help.$(OBJEXT) \
	protocol_cursor.$(OBJEXT)
mysqld_OBJECTS = $(am_mysqld_OBJECTS)
mysqld_DEPENDENCIES = ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a \
	../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a \
	../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a
mysqld_LDFLAGS =
DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
depcomp = $(SHELL) $(top_srcdir)/depcomp
@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/client.Po $(DEPDIR)/derror.Po \
@AMDEP_TRUE@	$(DEPDIR)/des_key_file.Po $(DEPDIR)/field.Po \
@AMDEP_TRUE@	$(DEPDIR)/field_conv.Po $(DEPDIR)/filesort.Po \
@AMDEP_TRUE@	$(DEPDIR)/gen_lex_hash.Po $(DEPDIR)/gstream.Po \
@AMDEP_TRUE@	$(DEPDIR)/ha_berkeley.Po $(DEPDIR)/ha_heap.Po \
@AMDEP_TRUE@	$(DEPDIR)/ha_innodb.Po $(DEPDIR)/ha_isam.Po \
@AMDEP_TRUE@	$(DEPDIR)/ha_isammrg.Po $(DEPDIR)/ha_myisam.Po \
@AMDEP_TRUE@	$(DEPDIR)/ha_myisammrg.Po $(DEPDIR)/handler.Po \
@AMDEP_TRUE@	$(DEPDIR)/hash_filo.Po $(DEPDIR)/hostname.Po \
@AMDEP_TRUE@	$(DEPDIR)/init.Po $(DEPDIR)/item.Po \
@AMDEP_TRUE@	$(DEPDIR)/item_buff.Po $(DEPDIR)/item_cmpfunc.Po \
@AMDEP_TRUE@	$(DEPDIR)/item_create.Po $(DEPDIR)/item_func.Po \
@AMDEP_TRUE@	$(DEPDIR)/item_geofunc.Po $(DEPDIR)/item_row.Po \
@AMDEP_TRUE@	$(DEPDIR)/item_strfunc.Po \
@AMDEP_TRUE@	$(DEPDIR)/item_subselect.Po $(DEPDIR)/item_sum.Po \
@AMDEP_TRUE@	$(DEPDIR)/item_timefunc.Po $(DEPDIR)/item_uniq.Po \
@AMDEP_TRUE@	$(DEPDIR)/key.Po $(DEPDIR)/lock.Po $(DEPDIR)/log.Po \
@AMDEP_TRUE@	$(DEPDIR)/log_event.Po $(DEPDIR)/mf_iocache.Po \
@AMDEP_TRUE@	$(DEPDIR)/mini_client_errors.Po \
@AMDEP_TRUE@	$(DEPDIR)/my_lock.Po $(DEPDIR)/mysqld.Po \
@AMDEP_TRUE@	$(DEPDIR)/net_serv.Po $(DEPDIR)/opt_ft.Po \
@AMDEP_TRUE@	$(DEPDIR)/opt_range.Po $(DEPDIR)/opt_sum.Po \
@AMDEP_TRUE@	$(DEPDIR)/pack.Po $(DEPDIR)/password.Po \
@AMDEP_TRUE@	$(DEPDIR)/procedure.Po $(DEPDIR)/protocol.Po \
@AMDEP_TRUE@	$(DEPDIR)/protocol_cursor.Po $(DEPDIR)/records.Po \
@AMDEP_TRUE@	$(DEPDIR)/repl_failsafe.Po $(DEPDIR)/set_var.Po \
@AMDEP_TRUE@	$(DEPDIR)/slave.Po $(DEPDIR)/spatial.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_acl.Po $(DEPDIR)/sql_analyse.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_base.Po $(DEPDIR)/sql_cache.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_class.Po $(DEPDIR)/sql_client.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_crypt.Po $(DEPDIR)/sql_db.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_delete.Po $(DEPDIR)/sql_derived.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_do.Po $(DEPDIR)/sql_error.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_handler.Po $(DEPDIR)/sql_help.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_insert.Po $(DEPDIR)/sql_lex.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_list.Po $(DEPDIR)/sql_load.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_manager.Po $(DEPDIR)/sql_map.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_olap.Po $(DEPDIR)/sql_parse.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_prepare.Po $(DEPDIR)/sql_rename.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_repl.Po $(DEPDIR)/sql_select.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_show.Po $(DEPDIR)/sql_state.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_string.Po $(DEPDIR)/sql_table.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_test.Po $(DEPDIR)/sql_udf.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_union.Po $(DEPDIR)/sql_update.Po \
@AMDEP_TRUE@	$(DEPDIR)/sql_yacc.Po $(DEPDIR)/stacktrace.Po \
@AMDEP_TRUE@	$(DEPDIR)/strfunc.Po $(DEPDIR)/table.Po \
@AMDEP_TRUE@	$(DEPDIR)/thr_malloc.Po $(DEPDIR)/time.Po \
@AMDEP_TRUE@	$(DEPDIR)/uniques.Po $(DEPDIR)/unireg.Po
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
	$(AM_LDFLAGS) $(LDFLAGS) -o $@
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
	$(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
	$(AM_LDFLAGS) $(LDFLAGS) -o $@
YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
LTYACCCOMPILE = $(LIBTOOL) --mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS)
DIST_SOURCES = $(gen_lex_hash_SOURCES) $(mysqld_SOURCES)
HEADERS = $(noinst_HEADERS)


RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
	uninstall-info-recursive all-recursive install-data-recursive \
	install-exec-recursive installdirs-recursive install-recursive \
	uninstall-recursive check-recursive installcheck-recursive
DIST_COMMON = $(noinst_HEADERS) Makefile.am Makefile.in sql_yacc.cc \
	sql_yacc.h
DIST_SUBDIRS = $(SUBDIRS)
SOURCES = $(gen_lex_hash_SOURCES) $(mysqld_SOURCES)

all: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) all-recursive

.SUFFIXES:
.SUFFIXES: .c .cc .lo .o .obj .yy

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:
	-rm -f libtool
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  sql/Makefile
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) && \
	  CONFIG_HEADERS= CONFIG_LINKS= \
	  CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
install-libexecPROGRAMS: $(libexec_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libexecdir)
	@list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
	  if test -f $$p \
	     || test -f $$p1 \
	  ; then \
	    f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$f"; \
	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$f; \
	  else :; fi; \
	done

uninstall-libexecPROGRAMS:
	@$(NORMAL_UNINSTALL)
	@list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
	  echo " rm -f $(DESTDIR)$(libexecdir)/$$f"; \
	  rm -f $(DESTDIR)$(libexecdir)/$$f; \
	done

clean-libexecPROGRAMS:
	-test -z "$(libexec_PROGRAMS)" || rm -f $(libexec_PROGRAMS)

clean-noinstPROGRAMS:
	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
gen_lex_hash$(EXEEXT): $(gen_lex_hash_OBJECTS) $(gen_lex_hash_DEPENDENCIES) 
	@rm -f gen_lex_hash$(EXEEXT)
	$(CXXLINK) $(gen_lex_hash_LDFLAGS) $(gen_lex_hash_OBJECTS) $(gen_lex_hash_LDADD) $(LIBS)
sql_yacc.h: sql_yacc.cc
mysqld$(EXEEXT): $(mysqld_OBJECTS) $(mysqld_DEPENDENCIES) 
	@rm -f mysqld$(EXEEXT)
	$(CXXLINK) $(mysqld_LDFLAGS) $(mysqld_OBJECTS) $(mysqld_LDADD) $(LIBS)

mostlyclean-compile:
	-rm -f *.$(OBJEXT) core *.core

distclean-compile:
	-rm -f *.tab.c

@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/client.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/derror.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/des_key_file.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/field.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/field_conv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/filesort.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gen_lex_hash.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gstream.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_berkeley.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_heap.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_innodb.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_isam.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_isammrg.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_myisam.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ha_myisammrg.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/handler.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/hash_filo.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/hostname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/init.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_buff.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_cmpfunc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_create.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_func.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_geofunc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_row.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_strfunc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_subselect.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_sum.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_timefunc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/item_uniq.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/key.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/lock.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/log.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/log_event.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mf_iocache.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mini_client_errors.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/my_lock.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mysqld.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/net_serv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/opt_ft.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/opt_range.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/opt_sum.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/pack.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/password.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/procedure.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/protocol.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/protocol_cursor.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/records.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/repl_failsafe.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/set_var.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/slave.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/spatial.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_acl.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_analyse.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_base.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_cache.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_class.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_client.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_crypt.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_db.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_delete.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_derived.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_do.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_error.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_handler.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_help.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_insert.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_lex.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_list.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_load.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_manager.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_map.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_olap.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_parse.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_prepare.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_rename.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_repl.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_select.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_show.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_state.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_string.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_table.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_test.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_udf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_union.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_update.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sql_yacc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/stacktrace.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strfunc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/table.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/thr_malloc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/time.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/uniques.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/unireg.Po@am__quote@

distclean-depend:
	-rm -rf $(DEPDIR)

.c.o:
@AMDEP_TRUE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<

.c.obj:
@AMDEP_TRUE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(COMPILE) -c `cygpath -w $<`

.c.lo:
@AMDEP_TRUE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
CCDEPMODE = @CCDEPMODE@

.cc.o:
@AMDEP_TRUE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(CXXCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<

.cc.obj:
@AMDEP_TRUE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(CXXCOMPILE) -c -o $@ `cygpath -w $<`

.cc.lo:
@AMDEP_TRUE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(LTCXXCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
CXXDEPMODE = @CXXDEPMODE@

.yy.cc:
	$(YACCCOMPILE) $< && mv y.tab.c $@
	if test -f y.tab.h; then \
	  if cmp -s y.tab.h $*.h; then \
	    rm -f y.tab.h; \
	  else \
	    mv y.tab.h $*.h; \
	  fi; \
	fi
uninstall-info-am:

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    dot_seen=yes; \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done; \
	if test "$$dot_seen" = "no"; then \
	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
	fi; test -z "$$fail"

mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	case "$@" in \
	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
	  *) list='$(SUBDIRS)' ;; \
	esac; \
	rev=''; for subdir in $$list; do \
	  if test "$$subdir" = "."; then :; else \
	    rev="$$subdir $$rev"; \
	  fi; \
	done; \
	rev="$$rev ."; \
	target=`echo $@ | sed s/-recursive//`; \
	for subdir in $$rev; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	mkid -fID $$unique $(LISP)

TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  if test "$$subdir" = .; then :; else \
	    test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
	  fi; \
	done; \
	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
	  || etags $(ETAGS_ARGS) $$tags  $$unique $(LISP)

GTAGS:
	here=`CDPATH=: && cd $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH

DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)

top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
	    $(mkinstalldirs) "$(distdir)/$$dir"; \
	  fi; \
	  if test -d $$d/$$file; then \
	    cp -pR $$d/$$file $(distdir) \
	    || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
	for subdir in $(SUBDIRS); do \
	  if test "$$subdir" = .; then :; else \
	    test -d $(distdir)/$$subdir \
	    || mkdir $(distdir)/$$subdir \
	    || exit 1; \
	    (cd $$subdir && \
	      $(MAKE) $(AM_MAKEFLAGS) \
	        top_distdir="$(top_distdir)" \
	        distdir=../$(distdir)/$$subdir \
	        distdir) \
	      || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-recursive
all-am: Makefile $(PROGRAMS) $(HEADERS)
installdirs: installdirs-recursive
installdirs-am:
	$(mkinstalldirs) $(DESTDIR)$(libexecdir)

install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-recursive
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-test -z "sql_yacc.h$(BUILT_SOURCES)" || rm -f sql_yacc.h $(BUILT_SOURCES)
clean: clean-recursive

clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \
	clean-noinstPROGRAMS mostlyclean-am

distclean: distclean-recursive

distclean-am: clean-am distclean-compile distclean-depend \
	distclean-generic distclean-libtool distclean-tags

dvi: dvi-recursive

dvi-am:

info: info-recursive

info-am:

install-data-am:

install-exec-am: install-libexecPROGRAMS

install-info: install-info-recursive

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-recursive

maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-recursive

mostlyclean-am: mostlyclean-compile mostlyclean-generic \
	mostlyclean-libtool

uninstall-am: uninstall-info-am uninstall-libexecPROGRAMS

uninstall-info: uninstall-info-recursive

.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
	clean-generic clean-libexecPROGRAMS clean-libtool \
	clean-noinstPROGRAMS clean-recursive distclean \
	distclean-compile distclean-depend distclean-generic \
	distclean-libtool distclean-recursive distclean-tags distdir \
	dvi dvi-am dvi-recursive info info-am info-recursive install \
	install-am install-data install-data-am install-data-recursive \
	install-exec install-exec-am install-exec-recursive \
	install-info install-info-am install-info-recursive \
	install-libexecPROGRAMS install-man install-recursive \
	install-strip installcheck installcheck-am installdirs \
	installdirs-am installdirs-recursive maintainer-clean \
	maintainer-clean-generic maintainer-clean-recursive mostlyclean \
	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
	mostlyclean-recursive tags tags-recursive uninstall \
	uninstall-am uninstall-info-am uninstall-info-recursive \
	uninstall-libexecPROGRAMS uninstall-recursive


link_sources:
	rm -f mini_client_errors.c
	@LN_CP_F@ ../libmysql/errmsg.c mini_client_errors.c
	rm -f pack.c
	@LN_CP_F@ ../sql-common/pack.c pack.c
	rm -f client.c
	@LN_CP_F@ ../sql-common/client.c client.c

gen_lex_hash.o:		gen_lex_hash.cc lex.h
			$(CXXCOMPILE) -c $(INCLUDES) $<

# Try to get better dependencies for the grammar. Othervise really bad
# things like different grammars for different pars of MySQL can
# happen if you are unlucky.
sql_yacc.cc:	sql_yacc.yy
sql_yacc.h:	sql_yacc.yy

sql_yacc.o:	sql_yacc.cc sql_yacc.h $(HEADERS)
		@echo "Note: The following compile may take a long time."
		@echo "If it fails, re-run configure with --with-low-memory"
		$(CXXCOMPILE) $(LM_CFLAGS) -c $<

lex_hash.h:	lex.h gen_lex_hash.cc sql_yacc.h
		$(MAKE) gen_lex_hash$(EXEEXT)
		./gen_lex_hash$(EXEEXT) > $@

# Hack to ensure that lex_hash.h is built early
sql_lex.o:	lex_hash.h

# For testing of udf_example.so;  Works on platforms with gcc
# (This is not part of our build process but only provided as an example)
udf_example.so:	udf_example.cc
		$(CXXCOMPILE) -shared -o $@ $<

#distclean:
#		rm -f lex_hash.h

# Don't update the files from bitkeeper
%::SCCS/s.%
# 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:
