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)
|
2001-02-20 02:13:17 +01:00
|
|
|
INCLUDES = @MT_INCLUDES@ \
|
2001-10-10 01:50:28 +02:00
|
|
|
@bdb_includes@ @innodb_includes@ \
|
2001-02-20 02:13:17 +01:00
|
|
|
-I$(srcdir)/../include \
|
2000-07-31 21:29:14 +02:00
|
|
|
-I$(srcdir)/../regex \
|
2001-09-21 15:36:23 +02:00
|
|
|
-I$(srcdir) -I../include -I. $(openssl_includes)
|
2000-07-31 21:29:14 +02:00
|
|
|
WRAPLIBS= @WRAPLIBS@
|
|
|
|
SUBDIRS = share
|
|
|
|
libexec_PROGRAMS = mysqld
|
|
|
|
noinst_PROGRAMS = gen_lex_hash
|
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@ \
|
2000-07-31 21:29:14 +02:00
|
|
|
../myisam/libmyisam.a \
|
|
|
|
../myisammrg/libmyisammrg.a \
|
|
|
|
../heap/libheap.a \
|
2001-06-05 02:38:10 +02:00
|
|
|
../vio/libvio.a \
|
2000-07-31 21:29:14 +02:00
|
|
|
../mysys/libmysys.a \
|
|
|
|
../dbug/libdbug.a \
|
|
|
|
../regex/libregex.a \
|
2001-06-05 02:38:10 +02:00
|
|
|
../strings/libmystrings.a
|
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@ \
|
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 \
|
|
|
|
item_create.h mysql_priv.h \
|
|
|
|
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 \
|
2000-12-05 18:42:02 +01:00
|
|
|
field.h handler.h \
|
|
|
|
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 \
|
2001-10-10 01:50:28 +02:00
|
|
|
opt_range.h opt_ft.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 \
|
2002-07-24 13:48:27 +02:00
|
|
|
log_event.h mini_client.h sql_repl.h slave.h \
|
|
|
|
stacktrace.h sql_sort.h sql_cache.h set_var.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 \
|
|
|
|
thr_malloc.cc item_create.cc \
|
|
|
|
field.cc key.cc sql_class.cc sql_list.cc \
|
2001-05-31 16:18:25 +02:00
|
|
|
net_serv.cc net_pkg.cc 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 \
|
2002-07-23 17:31:22 +02:00
|
|
|
convert.cc 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 \
|
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 \
|
2000-10-07 13:59:47 +02:00
|
|
|
time.cc opt_range.cc opt_sum.cc opt_ft.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 \
|
2001-05-14 00:12:40 +02:00
|
|
|
ha_isam.cc ha_isammrg.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 \
|
2001-08-12 03:54:31 +02:00
|
|
|
slave.cc sql_repl.cc sql_union.cc \
|
2001-05-14 00:12:40 +02:00
|
|
|
mini_client.cc mini_client_errors.c \
|
2002-07-16 21:42:53 +02:00
|
|
|
stacktrace.c repl_failsafe.h repl_failsafe.cc sql_olap.cc
|
2000-07-31 21:29:14 +02:00
|
|
|
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)
|
2003-01-27 13:44:16 +01:00
|
|
|
AM_YFLAGS = -d
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
link_sources:
|
|
|
|
rm -f mini_client_errors.c
|
|
|
|
@LN_CP_F@ ../libmysql/errmsg.c mini_client_errors.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
|
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 $<
|
|
|
|
|
|
|
|
lex_hash.h: lex.h gen_lex_hash.cc sql_yacc.h
|
2003-06-20 15:19:51 +02:00
|
|
|
$(MAKE) gen_lex_hash$(EXEEXT)
|
|
|
|
./gen_lex_hash$(EXEEXT) > $@
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
# Hack to ensure that lex_hash.h is built early
|
|
|
|
sql_lex.o: lex_hash.h
|
|
|
|
|
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 $@ $<
|
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
#distclean:
|
|
|
|
# rm -f lex_hash.h
|
2000-08-16 04:14:02 +02:00
|
|
|
|
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|