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-19 20:13:17 -05:00
|
|
|
INCLUDES = @MT_INCLUDES@ \
|
2001-10-10 02:50:28 +03:00
|
|
|
@bdb_includes@ @innodb_includes@ \
|
2002-11-26 14:01:08 +01:00
|
|
|
-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
|
|
|
|
noinst_PROGRAMS = gen_lex_hash
|
2001-10-08 04:58:07 +03:00
|
|
|
gen_lex_hash_LDFLAGS = @NOINST_LDFLAGS@
|
2001-10-09 18:11:44 -04:00
|
|
|
LDADD = @isam_libs@ \
|
2000-07-31 21:29:14 +02:00
|
|
|
../myisam/libmyisam.a \
|
|
|
|
../myisammrg/libmyisammrg.a \
|
|
|
|
../heap/libheap.a \
|
2001-06-05 03:38:10 +03:00
|
|
|
../vio/libvio.a \
|
2000-07-31 21:29:14 +02:00
|
|
|
../mysys/libmysys.a \
|
|
|
|
../dbug/libdbug.a \
|
|
|
|
../regex/libregex.a \
|
2001-06-05 03:38:10 +03:00
|
|
|
../strings/libmystrings.a
|
2001-05-24 01:36:55 +03:00
|
|
|
|
2001-02-19 20:13:17 -05:00
|
|
|
mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
|
2001-04-15 20:14:40 +02:00
|
|
|
@bdb_libs@ @innodb_libs@ @pstack_libs@ \
|
2001-10-10 02:50:28 +03: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 \
|
2002-11-15 20:32:09 +02:00
|
|
|
item_create.h item_subselect.h item_row.h \
|
|
|
|
mysql_priv.h \
|
2000-07-31 21:29:14 +02:00
|
|
|
procedure.h sql_class.h sql_lex.h sql_list.h \
|
2000-11-27 18:14:49 -05:00
|
|
|
sql_manager.h sql_map.h sql_string.h unireg.h \
|
2000-12-05 19:42:02 +02:00
|
|
|
field.h handler.h \
|
|
|
|
ha_isammrg.h ha_isam.h ha_myisammrg.h\
|
2002-01-12 15:42:54 +02:00
|
|
|
ha_heap.h ha_myisam.h ha_berkeley.h ha_innodb.h \
|
2002-12-20 13:43:40 +01:00
|
|
|
opt_range.h opt_ft.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 14:30:43 -06: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 \
|
2002-08-30 12:40:40 +03:00
|
|
|
stacktrace.h sql_sort.h sql_cache.h set_var.h \
|
Simplistic, experimental framework for Stored Procedures (SPs).
Implements creation and dropping of PROCEDUREs, IN, OUT, and INOUT parameters,
single-statement procedures, rudimentary multi-statement (begin-end) prodedures
(when the client can handle it), and local variables.
Missing most of the embedded SQL language, all attributes, FUNCTIONs, error handling,
reparses procedures at each call (no caching), etc, etc.
Certainly buggy too, but procedures can actually be created and called....
2002-12-08 19:59:22 +01:00
|
|
|
spatial.h gstream.h sp_head.h sp_pcontext.h \
|
2002-12-12 13:14:23 +01:00
|
|
|
sp_rcontext.h sp.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 20:32:09 +02:00
|
|
|
thr_malloc.cc item_create.cc item_subselect.cc \
|
|
|
|
item_row.cc \
|
2000-07-31 21:29:14 +02:00
|
|
|
field.cc key.cc sql_class.cc sql_list.cc \
|
2002-12-11 09:17:51 +02:00
|
|
|
net_serv.cc protocol.cc lock.cc my_lock.c \
|
2000-11-27 18:14:49 -05: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 18:31:22 +03: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 \
|
2002-06-12 14:13:12 -07:00
|
|
|
sql_prepare.cc sql_error.cc \
|
2001-12-17 20:47:20 +02: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 01:12:40 +03:00
|
|
|
log.cc log_event.cc init.cc derror.cc sql_acl.cc \
|
2001-12-10 11:02:26 +02: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 01:12:40 +03:00
|
|
|
ha_heap.cc ha_myisam.cc ha_myisammrg.cc \
|
2002-01-12 15:42:54 +02:00
|
|
|
ha_berkeley.cc ha_innodb.cc \
|
2001-05-14 01:12:40 +03:00
|
|
|
ha_isam.cc ha_isammrg.cc \
|
2000-08-21 03:00:52 +03: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 19:27:21 +04:00
|
|
|
slave.cc sql_repl.cc sql_union.cc sql_derived.cc \
|
2003-04-23 19:37:33 +05:00
|
|
|
mini_client.cc mini_client_errors.c pack.c\
|
2002-08-30 12:40:40 +03:00
|
|
|
stacktrace.c repl_failsafe.h repl_failsafe.cc sql_olap.cc\
|
2003-04-29 12:06:04 +02:00
|
|
|
gstream.cc spatial.cc sql_help.cc protocol_cursor.cc \
|
2002-12-12 13:14:23 +01:00
|
|
|
sp_head.cc sp_pcontext.cc sp.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
|
2003-04-23 19:37:33 +05:00
|
|
|
rm -f pack.c
|
|
|
|
@LN_CP_F@ ../sql-common/pack.c pack.c
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
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 04:36:43 -05: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
|
|
|
|
$(MAKE) gen_lex_hash
|
|
|
|
./gen_lex_hash > $@
|
|
|
|
|
|
|
|
# Hack to ensure that lex_hash.h is built early
|
|
|
|
sql_lex.o: lex_hash.h
|
|
|
|
|
2002-09-05 16:17:08 +03: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 05:14:02 +03:00
|
|
|
|
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|