1
# Copyright (C) 2008 Sun Microsystems
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
MYSQLDATAdir =$(localstatedir)
18
MYSQLSHAREdir =$(pkgdatadir)
20
MYSQLBASEdir=$(prefix)
1
# Copyright (C) 2000-2006 MySQL AB
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
#called from the top level Makefile
18
MYSQLDATAdir = $(localstatedir)
19
MYSQLSHAREdir = $(pkgdatadir)
20
MYSQLBASEdir= $(prefix)
22
21
MYSQLLIBdir= $(pkglibdir)
24
pkgplugindir =$(pkglibdir)/plugin
26
SUBDIRS = util field serialize functions .
28
sbin_PROGRAMS =drizzled
30
EXTRA_PROGRAMS =gen_lex_hash
34
bin_SCRIPTS = drizzledumpslow \
37
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS}
41
DTRACEFLAGS = @DTRACEFLAGS@
43
DTRACEFILES = handler.o \
50
drizzledincludedir = ${includedir}/drizzled
51
dist_drizzledinclude_HEADERS = error.h \
54
plugin_authentication.h
56
noinst_LTLIBRARIES = libhandler.la
58
LDADD = $(top_builddir)/libdrizzle/libdrizzle.la \
59
$(top_builddir)/mysys/libmysys.la \
60
$(top_builddir)/mystrings/libmystrings.la \
61
$(ZLIB_LIBS) $(LIBINTL)
63
drizzled_LDADD = libhandler.la \
64
$(top_builddir)/libdrizzle/libdrizzle.la \
65
$(top_builddir)/drizzled/field/libfield.la \
66
$(top_builddir)/drizzled/serialize/libserialize.la \
67
$(top_builddir)/drizzled/functions/libfunctions.la \
73
$(LIBDL_LIBS) $(LIBEVENT_LIBS)
77
noinst_HEADERS = item.h \
91
table_map_iterator.h \
145
drizzled_error_messages.h \
146
innodb_plugin_extras.h \
158
natural_join_column.cc \
159
table_map_iterator.cc \
22
pkgplugindir = $(pkglibdir)/plugin
23
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
24
-I$(srcdir) $(openssl_includes) \
25
$(libevent_includes) \
28
libexec_PROGRAMS = drizzled
29
EXTRA_PROGRAMS = gen_lex_hash
31
bin_SCRIPTS = drizzledumpslow drizzled_safe
34
DTRACEFLAGS = @DTRACEFLAGS@
35
DTRACEFILES = handler.o \
42
noinst_LTLIBRARIES = libhandler.la
44
SUPPORTING_LIBS = $(top_builddir)/vio/libviolt.la \
45
$(top_builddir)/libdrizzle/libsqlcommon.la \
46
$(top_builddir)/mysys/libmysyslt.la \
48
$(top_builddir)/strings/libmystringslt.la
49
LDADD = $(SUPPORTING_LIBS) -lz -levent
50
drizzled_LDADD = libhandler.la \
51
$(top_builddir)/libdrizzle/libdrizzle.la \
54
$(LDADD) $(CXXLDFLAGS) @LIBDL@
56
noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \
57
item_strfunc.h item_timefunc.h \
58
item_create.h item_subselect.h item_row.h \
59
mysql_priv.h sql_bitmap.h \
60
sql_class.h sql_lex.h sql_list.h \
61
sql_map.h sql_string.h unireg.h \
62
sql_error.h field.h handler.h mysqld_suffix.h \
64
opt_range.h protocol.h rpl_tblmap.h rpl_utility.h \
66
log.h sql_show.h rpl_rli.h rpl_mi.h \
67
sql_select.h structs.h table.h sql_udf.h \
68
lex.h lex_symbol.h sql_crypt.h \
69
sql_repl.h slave.h rpl_filter.h \
70
log_event.h rpl_record.h \
71
stacktrace.h sql_sort.h set_var.h \
72
tzfile.h client_settings.h \
73
tztime.h my_decimal.h\
74
sql_array.h scheduler.h \
78
drizzled_SOURCES = sql_lex.cc sql_handler.cc \
79
item.cc item_sum.cc item_buff.cc item_func.cc \
80
item_cmpfunc.cc item_strfunc.cc item_timefunc.cc \
81
thr_malloc.cc item_create.cc item_subselect.cc \
83
field.cc strfunc.cc key.cc sql_class.cc sql_list.cc \
84
protocol.cc sql_state.c \
86
sql_string.cc sql_map.cc \
88
sql_connect.cc scheduler.cc sql_parse.cc \
89
set_var.cc sql_yacc.yy \
90
sql_base.cc table.cc sql_select.cc sql_insert.cc \
91
sql_error.cc sql_locale.cc \
92
sql_update.cc sql_delete.cc uniques.cc \
93
log.cc init.cc derror.cc \
95
log_event.cc rpl_record.cc \
96
discover.cc time.cc opt_range.cc opt_sum.cc \
97
records.cc filesort.cc \
98
sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \
99
sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \
101
slave.cc sql_repl.cc rpl_filter.cc rpl_tblmap.cc \
102
rpl_utility.cc rpl_rli.cc rpl_mi.cc \
104
sql_union.cc sql_derived.cc \
106
stacktrace.c repl_failsafe.h repl_failsafe.cc \
108
tztime.cc my_decimal.cc\
109
sql_plugin.cc sql_binlog.cc \
237
112
libhandler_la_SOURCES = handler.cc
240
drizzled_SOURCES += probes.d
115
drizzled_SOURCES += probes.d
243
gen_lex_hash_SOURCES =gen_lex_hash.cc
118
gen_lex_hash_SOURCES = gen_lex_hash.cc
245
119
gen_lex_hash_LDFLAGS =
247
DEFS =-DDRIZZLE_SERVER \
248
-DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \
249
-DDATADIR="\"$(MYSQLDATAdir)\"" \
250
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
251
-DPLUGINDIR="\"$(pkgplugindir)\"" \
252
-DLOCALEDIR=\"$(localedir)\" \
261
BUILT_MAINT_SRC = sql_yacc.cc \
264
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
269
EXTRA_DIST = $(BUILT_MAINT_SRC) \
274
CLEANFILES = lex_hash.h \
276
$(nodist_drizzled_SOURCES)
278
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
281
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
283
AM_YFLAGS = -d --verbose
286
# These files should not be included in distributions since they are
287
# generated by configure from the .h.in files
289
$(RM) -f $(distdir)/drizzle_version.h
121
DEFS = -DMYSQL_SERVER \
122
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
123
-DDATADIR="\"$(MYSQLDATAdir)\"" \
124
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
125
-DPLUGINDIR="\"$(pkgplugindir)\"" \
128
BUILT_MAINT_SRC = sql_yacc.cc sql_yacc.h
129
BUILT_SOURCES = $(BUILT_MAINT_SRC) lex_hash.h
130
EXTRA_DIST = $(BUILT_MAINT_SRC) \
133
CLEANFILES = lex_hash.h sql_yacc.output $(nodist_drizzled_SOURCES)
134
DISTCLEANFILES = $(EXTRA_PROGRAMS) $(BUILT_MAINT_SRC)
135
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
136
AM_YFLAGS = -d --verbose
291
138
# This generates lex_hash.h
292
139
# NOTE Built sources should depend on their sources not the tool
293
140
# this avoid the rebuild of the built files in a source dist
294
lex_hash.h: gen_lex_hash$(EXEEXT) \
296
$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
141
lex_hash.h: gen_lex_hash$(EXEEXT) $(srcdir)/lex.h
142
$(top_builddir)/server/gen_lex_hash$(EXEEXT) > $@
298
144
probes.h: probes.d
299
145
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d