2006-12-31 01:02:27 +01:00
|
|
|
# Copyright (C) 2000-2006 MySQL AB
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# 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
|
2006-12-23 20:17:15 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
MYSQLDATAdir = $(localstatedir)
|
|
|
|
MYSQLSHAREdir = $(pkgdatadir)
|
|
|
|
MYSQLBASEdir= $(prefix)
|
2005-03-17 01:22:56 +01:00
|
|
|
INCLUDES = @ZLIB_INCLUDES@ \
|
2004-04-15 09:14:14 +02:00
|
|
|
@bdb_includes@ @innodb_includes@ @ndbcluster_includes@ \
|
2005-07-05 23:24:48 +02:00
|
|
|
-I$(top_builddir)/include -I$(top_srcdir)/include \
|
2006-05-31 16:19:06 +02:00
|
|
|
-I$(top_srcdir)/regex -I$(srcdir) \
|
2005-10-18 15:43:59 +02:00
|
|
|
$(openssl_includes)
|
2000-07-31 21:29:14 +02:00
|
|
|
WRAPLIBS= @WRAPLIBS@
|
|
|
|
SUBDIRS = share
|
|
|
|
libexec_PROGRAMS = mysqld
|
2006-09-20 08:56:57 +02:00
|
|
|
EXTRA_PROGRAMS = gen_lex_hash
|
2004-06-23 11:07:00 +02:00
|
|
|
bin_PROGRAMS = mysql_tzinfo_to_sql
|
2001-10-08 03:58:07 +02:00
|
|
|
gen_lex_hash_LDFLAGS = @NOINST_LDFLAGS@
|
2004-12-06 01:00:37 +01:00
|
|
|
LDADD = $(top_builddir)/myisam/libmyisam.a \
|
WL#1518, "make bundled zlib usable for unix builds":
required autotools macro written and deployed in all apropriate Makefile.ams.
Use cases checked:
- linux, standard location of zlib, no ndb
- linux, standard locatoin of zlib, with ndb
- linux, non-standard location of zlib, no ndb
- hpux11, use of bundled zlib, no ndb
The only non-checked case is non-standard location of zlib (or use of bundled
zlib) + ndb. I wasn't able to check it as ndb/ just won't compile on beasts
like AIX52 or HPUX11, where such a check is possible. It didn't compile
there before as these systems dont't have installed zlib, so nothing got broken ;)
2004-07-24 12:30:11 +02:00
|
|
|
$(top_builddir)/myisammrg/libmyisammrg.a \
|
|
|
|
$(top_builddir)/heap/libheap.a \
|
|
|
|
$(top_builddir)/vio/libvio.a \
|
|
|
|
$(top_builddir)/mysys/libmysys.a \
|
|
|
|
$(top_builddir)/dbug/libdbug.a \
|
|
|
|
$(top_builddir)/regex/libregex.a \
|
logging_ok:
Logging to logging@openlogging.org accepted
SCI_Transporter.hpp, SCI_Transporter.cpp:
Major fix-up of SCI Transporter, fixed so that it works with single card, fixed wrap around, added lots of DBUG statements, merged with new transporter handling
TransporterRegistry.cpp:
Some fixes for wrap around needed plus DBUG handling
TCP_Transporter.hpp, TCP_Transporter.cpp:
Added DBUG statements
SHM_Transporter.hpp, SHM_Transporter.cpp:
Fixed SHM Transporter
SHM_Buffer.hpp:
Fixed SHM Buffer to handle wrap around properly
IPCConfig.cpp:
Fixed up config of SCI
SocketServer.cpp:
Added DBUG support for SocketServer threads
ConfigInfo.cpp:
Config changes for SCI
TransporterDefinitions.hpp, mgmapi_config_parameters.h:
SCI fixes
Makefile.am, type_ndbapitools.mk.am, type_ndbapitest.mk.am:
Added SCI library path to Makefiles
configure.in:
Fixed small bug with shared mem and sci together in configure
acinclude.m4:
Added possibility of providing SCI library path in confgure
2004-09-15 20:41:49 +02:00
|
|
|
$(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@ @NDB_SCI_LIBS@
|
2001-05-24 00:36:55 +02:00
|
|
|
|
2001-02-20 02:13:17 +01:00
|
|
|
mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
|
2001-04-15 20:14:40 +02:00
|
|
|
@bdb_libs@ @innodb_libs@ @pstack_libs@ \
|
2001-10-10 01:50:28 +02:00
|
|
|
@innodb_system_libs@ \
|
2004-04-15 09:14:14 +02:00
|
|
|
@ndbcluster_libs@ @ndbcluster_system_libs@ \
|
2005-10-18 15:43:59 +02:00
|
|
|
$(LDADD) $(CXXLDFLAGS) $(WRAPLIBS) @LIBDL@ \
|
2007-06-28 11:13:18 +02:00
|
|
|
$(yassl_libs) $(openssl_libs) @MYSQLD_EXTRA_LIBS@
|
2007-02-07 15:11:03 +01:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \
|
|
|
|
item_strfunc.h item_timefunc.h item_uniq.h \
|
2002-11-15 19:32:09 +01:00
|
|
|
item_create.h item_subselect.h item_row.h \
|
2003-11-12 12:32:51 +01:00
|
|
|
mysql_priv.h item_geofunc.h sql_bitmap.h \
|
2000-07-31 21:29:14 +02:00
|
|
|
procedure.h sql_class.h sql_lex.h sql_list.h \
|
2000-11-28 00:14:49 +01:00
|
|
|
sql_manager.h sql_map.h sql_string.h unireg.h \
|
2005-04-01 14:04:50 +02:00
|
|
|
sql_error.h field.h handler.h mysqld_suffix.h \
|
2007-01-03 23:15:10 +01:00
|
|
|
sql_profile.h \
|
2004-12-06 01:00:37 +01:00
|
|
|
ha_myisammrg.h\
|
2002-01-12 14:42:54 +01:00
|
|
|
ha_heap.h ha_myisam.h ha_berkeley.h ha_innodb.h \
|
2007-04-23 11:25:33 +02:00
|
|
|
ha_ndbcluster.h ha_ndbcluster_cond.h \
|
|
|
|
opt_range.h protocol.h \
|
2000-07-31 21:29:14 +02:00
|
|
|
sql_select.h structs.h table.h sql_udf.h hash_filo.h\
|
2001-09-19 22:30:43 +02:00
|
|
|
lex.h lex_symbol.h sql_acl.h sql_crypt.h \
|
2003-05-31 12:15:46 +02:00
|
|
|
log_event.h sql_repl.h slave.h \
|
2002-08-30 11:40:40 +02:00
|
|
|
stacktrace.h sql_sort.h sql_cache.h set_var.h \
|
2004-06-18 08:11:31 +02:00
|
|
|
spatial.h gstream.h client_settings.h tzfile.h \
|
2005-02-08 23:50:45 +01:00
|
|
|
tztime.h my_decimal.h\
|
2004-05-11 22:23:49 +02:00
|
|
|
sp_head.h sp_pcontext.h sp_rcontext.h sp.h sp_cache.h \
|
2004-09-09 17:52:10 +02:00
|
|
|
parse_file.h sql_view.h sql_trigger.h \
|
2005-09-22 00:11:21 +02:00
|
|
|
sql_array.h sql_cursor.h \
|
2005-09-29 04:04:51 +02:00
|
|
|
examples/ha_example.h ha_archive.h \
|
2005-03-25 19:36:58 +01:00
|
|
|
examples/ha_tina.h ha_blackhole.h \
|
2004-12-11 21:03:51 +01:00
|
|
|
ha_federated.h
|
2001-04-07 00:18:33 +02:00
|
|
|
mysqld_SOURCES = sql_lex.cc sql_handler.cc \
|
2000-07-31 21:29:14 +02:00
|
|
|
item.cc item_sum.cc item_buff.cc item_func.cc \
|
|
|
|
item_cmpfunc.cc item_strfunc.cc item_timefunc.cc \
|
2002-11-15 19:32:09 +01:00
|
|
|
thr_malloc.cc item_create.cc item_subselect.cc \
|
2003-05-30 12:22:34 +02:00
|
|
|
item_row.cc item_geofunc.cc \
|
2003-11-03 13:01:59 +01:00
|
|
|
field.cc strfunc.cc key.cc sql_class.cc sql_list.cc \
|
2003-06-04 17:28:51 +02:00
|
|
|
net_serv.cc protocol.cc sql_state.c \
|
|
|
|
lock.cc my_lock.c \
|
2000-11-28 00:14:49 +01:00
|
|
|
sql_string.cc sql_manager.cc sql_map.cc \
|
2000-07-31 21:29:14 +02:00
|
|
|
mysqld.cc password.c hash_filo.cc hostname.cc \
|
2003-05-23 11:02:27 +02:00
|
|
|
set_var.cc sql_parse.cc sql_yacc.yy \
|
2000-07-31 21:29:14 +02:00
|
|
|
sql_base.cc table.cc sql_select.cc sql_insert.cc \
|
2006-07-04 14:40:40 +02:00
|
|
|
sql_prepare.cc sql_error.cc sql_locale.cc \
|
2007-01-03 23:15:10 +01:00
|
|
|
sql_profile.cc \
|
2001-12-17 19:47:20 +01:00
|
|
|
sql_update.cc sql_delete.cc uniques.cc sql_do.cc \
|
2000-07-31 21:29:14 +02:00
|
|
|
procedure.cc item_uniq.cc sql_test.cc \
|
2001-05-14 00:12:40 +02:00
|
|
|
log.cc log_event.cc init.cc derror.cc sql_acl.cc \
|
2001-12-10 10:02:26 +01:00
|
|
|
unireg.cc des_key_file.cc \
|
2004-04-15 09:14:14 +02:00
|
|
|
discover.cc time.cc opt_range.cc opt_sum.cc \
|
2000-07-31 21:29:14 +02:00
|
|
|
records.cc filesort.cc handler.cc \
|
2001-05-14 00:12:40 +02:00
|
|
|
ha_heap.cc ha_myisam.cc ha_myisammrg.cc \
|
2002-01-12 14:42:54 +01:00
|
|
|
ha_berkeley.cc ha_innodb.cc \
|
2007-04-23 11:25:33 +02:00
|
|
|
ha_ndbcluster.cc ha_ndbcluster_cond.cc \
|
2000-08-21 02:00:52 +02:00
|
|
|
sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \
|
2000-07-31 21:29:14 +02:00
|
|
|
sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \
|
|
|
|
sql_udf.cc sql_analyse.cc sql_analyse.h sql_cache.cc \
|
2002-03-29 16:27:21 +01:00
|
|
|
slave.cc sql_repl.cc sql_union.cc sql_derived.cc \
|
2003-06-14 10:37:42 +02:00
|
|
|
client.c sql_client.cc mini_client_errors.c pack.c\
|
2004-05-19 23:54:52 +02:00
|
|
|
stacktrace.c repl_failsafe.h repl_failsafe.cc \
|
2004-07-16 00:15:55 +02:00
|
|
|
sql_olap.cc sql_view.cc \
|
2005-09-22 00:11:21 +02:00
|
|
|
gstream.cc spatial.cc sql_help.cc sql_cursor.cc \
|
2006-01-11 00:07:40 +01:00
|
|
|
tztime.cc my_time.c my_user.c my_decimal.cc\
|
2003-09-16 14:26:08 +02:00
|
|
|
sp_head.cc sp_pcontext.cc sp_rcontext.cc sp.cc \
|
2004-09-09 17:52:10 +02:00
|
|
|
sp_cache.cc parse_file.cc sql_trigger.cc \
|
2005-09-29 04:04:51 +02:00
|
|
|
examples/ha_example.cc ha_archive.cc \
|
2005-03-25 19:36:58 +01:00
|
|
|
examples/ha_tina.cc ha_blackhole.cc \
|
2004-12-11 21:03:51 +01:00
|
|
|
ha_federated.cc
|
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
gen_lex_hash_SOURCES = gen_lex_hash.cc
|
|
|
|
gen_lex_hash_LDADD = $(LDADD) $(CXXLDFLAGS)
|
2004-06-27 19:07:21 +02:00
|
|
|
mysql_tzinfo_to_sql_SOURCES = mysql_tzinfo_to_sql.cc
|
2004-07-30 13:52:44 +02:00
|
|
|
mysql_tzinfo_to_sql_LDADD = @MYSQLD_EXTRA_LDFLAGS@ $(LDADD) $(CXXLDFLAGS)
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
DEFS = -DMYSQL_SERVER \
|
|
|
|
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
|
|
|
|
-DDATADIR="\"$(MYSQLDATAdir)\"" \
|
|
|
|
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
|
|
|
|
@DEFS@
|
2005-06-20 18:03:30 +02:00
|
|
|
|
|
|
|
BUILT_SOURCES = sql_yacc.cc sql_yacc.h lex_hash.h
|
2006-09-01 10:32:12 +02:00
|
|
|
EXTRA_DIST = $(BUILT_SOURCES) nt_servc.cc nt_servc.h \
|
2008-10-23 15:28:53 +02:00
|
|
|
message.mc message.h message.rc MSG00001.bin \
|
|
|
|
examples/CMakeLists.txt CMakeLists.txt \
|
2006-09-22 14:42:43 +02:00
|
|
|
udf_example.c udf_example.def
|
2006-08-18 01:08:51 +02:00
|
|
|
DISTCLEANFILES = lex_hash.h sql_yacc.output
|
|
|
|
|
2006-08-19 04:16:07 +02:00
|
|
|
AM_YFLAGS = -d --debug --verbose
|
2006-08-18 01:08:51 +02:00
|
|
|
|
2004-06-27 20:17:32 +02:00
|
|
|
mysql_tzinfo_to_sql.cc:
|
|
|
|
rm -f mysql_tzinfo_to_sql.cc
|
2005-09-24 15:51:45 +02:00
|
|
|
@LN_CP_F@ $(srcdir)/tztime.cc mysql_tzinfo_to_sql.cc
|
2004-06-27 20:17:32 +02:00
|
|
|
|
|
|
|
link_sources: mysql_tzinfo_to_sql.cc
|
2000-07-31 21:29:14 +02:00
|
|
|
rm -f mini_client_errors.c
|
2005-09-24 15:51:45 +02:00
|
|
|
@LN_CP_F@ $(top_srcdir)/libmysql/errmsg.c mini_client_errors.c
|
2003-04-23 16:37:33 +02:00
|
|
|
rm -f pack.c
|
2005-09-24 15:51:45 +02:00
|
|
|
@LN_CP_F@ $(top_srcdir)/sql-common/pack.c pack.c
|
2003-05-31 12:15:46 +02:00
|
|
|
rm -f client.c
|
2005-09-24 15:51:45 +02:00
|
|
|
@LN_CP_F@ $(top_srcdir)/sql-common/client.c client.c
|
2004-06-24 17:08:36 +02:00
|
|
|
rm -f my_time.c
|
2005-09-24 15:51:45 +02:00
|
|
|
@LN_CP_F@ $(top_srcdir)/sql-common/my_time.c my_time.c
|
2006-01-11 00:07:40 +01:00
|
|
|
rm -f my_user.c
|
|
|
|
@LN_CP_F@ $(top_srcdir)/sql-common/my_user.c my_user.c
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2004-06-27 19:07:21 +02:00
|
|
|
mysql_tzinfo_to_sql.o: $(mysql_tzinfo_to_sql_SOURCES)
|
|
|
|
$(CXXCOMPILE) -c $(INCLUDES) -DTZINFO2SQL $<
|
2004-06-23 11:07:00 +02:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
# 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
|
|
|
|
|
2006-11-28 18:08:30 +01:00
|
|
|
# Be careful here, note that we use VPATH and might or might not have
|
|
|
|
# a pregenerated "sql_yacc.cc" in $(srcdir) or one we just built in
|
|
|
|
# $(builddir). And it has to work if $(srcdir) == $(builddir).
|
2003-07-06 18:09:57 +02:00
|
|
|
sql_yacc.o: sql_yacc.cc sql_yacc.h $(HEADERS)
|
2006-11-28 18:08:30 +01:00
|
|
|
@SED@ -e 's/__attribute__ ((__unused__))//' $< > sql_yacc.cc-new
|
2006-11-20 21:42:06 +01:00
|
|
|
@MV@ sql_yacc.cc-new sql_yacc.cc
|
2000-08-22 11:36:43 +02:00
|
|
|
@echo "Note: The following compile may take a long time."
|
2000-07-31 21:29:14 +02:00
|
|
|
@echo "If it fails, re-run configure with --with-low-memory"
|
2006-11-28 18:08:30 +01:00
|
|
|
$(CXXCOMPILE) $(LM_CFLAGS) -c sql_yacc.cc
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2006-09-18 21:11:34 +02:00
|
|
|
# This generates lex_hash.h
|
|
|
|
# NOTE Built sources should depend on their sources not the tool
|
|
|
|
# this avoid the rebuild of the built files in a source dist
|
|
|
|
lex_hash.h: gen_lex_hash.cc lex.h
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) gen_lex_hash$(EXEEXT)
|
2007-02-07 09:46:20 +01:00
|
|
|
./gen_lex_hash$(EXEEXT) > $@-t
|
|
|
|
$(MV) $@-t $@
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2006-03-10 10:41:04 +01:00
|
|
|
# For testing of udf_example.so
|
|
|
|
noinst_LTLIBRARIES= udf_example.la
|
2006-07-29 04:41:50 +02:00
|
|
|
udf_example_la_SOURCES= udf_example.c
|
2006-03-10 10:41:04 +01:00
|
|
|
udf_example_la_LDFLAGS= -module -rpath $(pkglibdir)
|
|
|
|
|
2002-09-05 15:17:08 +02:00
|
|
|
|
2000-08-16 04:14:02 +02:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|