2000-07-31 21:29:14 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
MYSQLDATAdir = $(localstatedir)
|
|
|
|
MYSQLSHAREdir = $(pkgdatadir)
|
|
|
|
MYSQLBASEdir= $(prefix)
|
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
|
|
|
INCLUDES = @MT_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 \
|
|
|
|
-I$(top_srcdir)/regex -I$(srcdir) $(openssl_includes)
|
2000-07-31 21:29:14 +02:00
|
|
|
WRAPLIBS= @WRAPLIBS@
|
|
|
|
SUBDIRS = share
|
|
|
|
libexec_PROGRAMS = mysqld
|
2004-06-22 11:19:25 +02:00
|
|
|
noinst_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@
|
2001-10-10 00:11:44 +02:00
|
|
|
LDADD = @isam_libs@ \
|
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)/myisam/libmyisam.a \
|
|
|
|
$(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@ \
|
2001-05-20 20:32:49 +02:00
|
|
|
$(LDADD) $(CXXLDFLAGS) $(WRAPLIBS) @LIBDL@ @openssl_libs@
|
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 \
|
2004-05-19 15:38:12 +02:00
|
|
|
field.h handler.h mysqld_suffix.h \
|
2000-12-05 18:42:02 +01:00
|
|
|
ha_isammrg.h ha_isam.h ha_myisammrg.h\
|
2002-01-12 14:42:54 +01:00
|
|
|
ha_heap.h ha_myisam.h ha_berkeley.h ha_innodb.h \
|
2004-04-15 09:14:14 +02:00
|
|
|
ha_ndbcluster.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 \
|
2004-08-13 05:57:18 +02:00
|
|
|
tztime.h examples/ha_example.h examples/ha_archive.h \
|
2005-03-23 01:10:39 +01:00
|
|
|
examples/ha_tina.h ha_blackhole.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 \
|
2002-06-12 23:13:12 +02:00
|
|
|
sql_prepare.cc sql_error.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 \
|
2004-04-15 09:14:14 +02:00
|
|
|
ha_isam.cc ha_isammrg.cc ha_ndbcluster.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-04-13 06:01:45 +02:00
|
|
|
gstream.cc spatial.cc sql_help.cc protocol_cursor.cc \
|
2004-06-24 17:08:36 +02:00
|
|
|
tztime.cc my_time.c \
|
2004-08-13 05:57:18 +02:00
|
|
|
examples/ha_example.cc examples/ha_archive.cc \
|
2005-03-23 01:10:39 +01:00
|
|
|
examples/ha_tina.cc ha_blackhole.cc
|
2004-06-27 19:07:21 +02:00
|
|
|
|
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)
|
2004-06-23 11:07:00 +02:00
|
|
|
|
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
|
2000-07-31 21:29:14 +02:00
|
|
|
EXTRA_DIST = udf_example.cc $(BUILT_SOURCES)
|
2003-01-27 13:44:16 +01:00
|
|
|
AM_YFLAGS = -d
|
2000-07-31 21:29:14 +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
|
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
|
|
|
|
|
2003-07-06 18:09:57 +02:00
|
|
|
sql_yacc.o: sql_yacc.cc sql_yacc.h $(HEADERS)
|
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"
|
|
|
|
$(CXXCOMPILE) $(LM_CFLAGS) -c $<
|
|
|
|
|
2005-06-20 18:03:30 +02:00
|
|
|
lex_hash.h: gen_lex_hash$(EXEEXT)
|
2003-06-20 15:19:51 +02:00
|
|
|
./gen_lex_hash$(EXEEXT) > $@
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2002-09-05 15:17:08 +02:00
|
|
|
# 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 $@ $<
|
|
|
|
|
2005-09-24 15:51:45 +02:00
|
|
|
distclean-local:
|
2004-07-22 19:28:11 +02:00
|
|
|
rm -f lex_hash.h
|
2000-08-16 04:14:02 +02:00
|
|
|
|
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|