1
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
3
# This library is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public
5
# License as published by the Free Software Foundation; either
6
# version 2 of the License, or (at your option) any later version.
8
# This library is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
# Library General Public License for more details.
13
# You should have received a copy of the GNU Library General Public
14
# License along with this library; if not, write to the Free
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18
# This file is public domain and comes with NO WARRANTY of any kind
20
MYSQLDATAdir = $(localstatedir)
21
MYSQLSHAREdir = $(pkgdatadir)
22
MYSQLBASEdir= $(prefix)
24
DEFS = -DEMBEDDED_LIBRARY -DMYSQL_SERVER \
25
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
26
-DDATADIR="\"$(MYSQLDATAdir)\"" \
27
-DSHAREDIR="\"$(MYSQLSHAREdir)\""
28
INCLUDES = @MT_INCLUDES@ @bdb_includes@ -I$(srcdir)/../include -I../include \
29
-I$(srcdir)/.. -I$(top_srcdir) -I.. -I../sql -I../regex
32
## XXX: should we use client or server LDFLAGS for libmysqld?
33
LDADD = @CLIENT_EXTRA_LDFLAGS@ libmysqld.la
34
pkglib_LTLIBRARIES = libmysqld.la
36
libmysqld_la_SOURCES = libmysqld.c lib_sql.cc
38
libmysqlsources = errmsg.c get_password.c password.c
39
## XXX: we should not have to duplicate info from the sources list
40
libmysqlobjects = errmsg.lo get_password.lo password.lo
42
sqlsources = convert.cc derror.cc field.cc field_conv.cc filesort.cc \
43
ha_berkeley.cc ha_heap.cc ha_isam.cc ha_isammrg.cc \
44
ha_myisam.cc ha_myisammrg.cc handler.cc hostname.cc init.cc \
45
item.cc item_buff.cc item_cmpfunc.cc item_create.cc \
46
item_func.cc item_strfunc.cc item_sum.cc item_timefunc.cc \
47
item_uniq.cc key.cc lock.cc log.cc log_event.cc md5.c \
48
mini_client.cc net_pkg.cc net_serv.cc opt_ft.cc opt_range.cc \
49
opt_sum.cc procedure.cc records.cc slave.cc sql_acl.cc \
50
sql_analyse.cc sql_base.cc sql_cache.cc sql_class.cc \
51
sql_crypt.cc sql_db.cc sql_delete.cc sql_insert.cc sql_lex.cc \
52
sql_list.cc sql_load.cc sql_manager.cc sql_map.cc sql_parse.cc \
53
sql_rename.cc sql_repl.cc sql_select.cc sql_show.cc \
54
sql_string.cc sql_table.cc sql_test.cc sql_udf.cc \
55
sql_update.cc sql_yacc.cc table.cc thr_malloc.cc time.cc \
58
## XXX: we should not have to duplicate info from the sources list
59
sqlobjects = convert.lo derror.lo field.lo field_conv.lo filesort.lo \
60
ha_berkeley.lo ha_heap.lo ha_isam.lo ha_isammrg.lo \
61
ha_myisam.lo ha_myisammrg.lo handler.lo hostname.lo init.lo \
62
item.lo item_buff.lo item_cmpfunc.lo item_create.lo \
63
item_func.lo item_strfunc.lo item_sum.lo item_timefunc.lo \
64
item_uniq.lo key.lo lock.lo log.lo log_event.lo md5.lo \
65
mini_client.lo net_pkg.lo net_serv.lo opt_ft.lo opt_range.lo \
66
opt_sum.lo procedure.lo records.lo slave.lo sql_acl.lo \
67
sql_analyse.lo sql_base.lo sql_cache.lo sql_class.lo \
68
sql_crypt.lo sql_db.lo sql_delete.lo sql_insert.lo sql_lex.lo \
69
sql_list.lo sql_load.lo sql_manager.lo sql_map.lo sql_parse.lo \
70
sql_rename.lo sql_repl.lo sql_select.lo sql_show.lo \
71
sql_string.lo sql_table.lo sql_test.lo sql_udf.lo \
72
sql_update.lo sql_yacc.lo table.lo thr_malloc.lo time.lo \
75
EXTRA_DIST = lib_vio.c
77
# automake misses these
78
sql_yacc.cc sql_yacc.h: $(top_srcdir)/sql/sql_yacc.yy
80
libmysqld_la_LIBADD = $(sqlobjects) $(libmysqlobjects)
81
## XXX: any time the client interface changes, we'll need to bump
82
## the version info for libmysqld; however, it's possible for the
83
## libmysqld interface to change without affecting the standard
84
## libmysqlclient interface. Should we make a separate version
85
## string for the two?
86
libmysqld_la_LDFLAGS = -version-info @SHARED_LIB_VERSION@
87
CLEANFILES = $(libmysqld_la_LIBADD) libmysqld.la
89
# This is called from the toplevel makefile
92
for f in $(sqlsources); do \
93
rm -f $(srcdir)/$$f; \
94
@LN_CP_F@ $(srcdir)/../sql/$$f $(srcdir)/$$f; \
96
for f in $(libmysqlsources); do \
97
rm -f $(srcdir)/$$f; \
98
@LN_CP_F@ $(srcdir)/../libmysql/$$f $(srcdir)/$$f; \
102
rm -f `echo $(sqlsources) $(libmysqlsources) | sed "s;\.lo;.c;g"` \
103
$(top_srcdir)/linked_libmysqld_sources
105
# Don't update the files from bitkeeper