1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
# Copyright (C) 2000-2006 MySQL 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; version 2 of the License.
#
# 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)
MYSQLLIBdir= $(pkglibdir)
pkgplugindir =$(pkglibdir)/plugin
SUBDIRS = field . share
sbin_PROGRAMS =drizzled
EXTRA_PROGRAMS =gen_lex_hash
bin_PROGRAMS =
bin_SCRIPTS = drizzledumpslow \
drizzled_safe
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS}
DTRACE = @DTRACE@
DTRACEFLAGS = @DTRACEFLAGS@
DTRACEFILES = handler.o \
filesort.o \
sql_insert.o \
sql_delete.o \
sql_select.o \
sql_update.o
drizzledincludedir = ${includedir}/drizzled
dist_drizzledinclude_HEADERS = error.h \
plugin.h \
plugin_authentication.h \
plugin_audit.h
noinst_LTLIBRARIES = libhandler.la
LDADD = $(top_builddir)/vio/libviolt.la \
$(top_builddir)/libdrizzle/libsqlcommon.la \
$(top_builddir)/mysys/libmysyslt.la \
$(top_builddir)/mystrings/libmystringslt.la \
$(ZLIB_LIBS)
drizzled_LDADD = libhandler.la \
$(top_builddir)/libdrizzle/libdrizzle.la \
$(top_builddir)/drizzled/field/libfield.la \
$(libevent_libs) \
@mysql_plugin_libs@ \
$(LDADD) \
$(CXXLDFLAGS) \
$(LIBDL_LIBS) $(LIBEVENT_LIBS)
noinst_HEADERS = item.h \
authentication.h \
item_func.h \
item_sum.h \
item_cmpfunc.h \
item_strfunc.h \
item_timefunc.h \
item_create.h \
item_subselect.h \
item_row.h \
mysql_priv.h \
sql_bitmap.h \
sql_class.h \
sql_lex.h \
sql_list.h \
sql_locale.h \
sql_map.h \
sql_state.h \
sql_string.h \
unireg.h \
sql_error.h \
field.h \
handler.h \
mysqld_suffix.h \
rpl_constants.h \
opt_range.h \
protocol.h \
rpl_tblmap.h \
rpl_utility.h \
rpl_reporting.h \
log.h \
sql_show.h \
rpl_rli.h \
rpl_mi.h \
sql_select.h \
structs.h \
table.h \
sql_udf.h \
lex.h \
lex_symbol.h \
sql_repl.h \
slave.h \
rpl_filter.h \
log_event.h \
rpl_record.h \
stacktrace.h \
sql_sort.h \
set_var.h \
tzfile.h \
client_settings.h \
tztime.h \
my_decimal.h\
sql_array.h \
scheduler.h \
sql_plugin.h \
global.h \
base.h \
probes.h
drizzled_SOURCES = sql_lex.cc \
authentication.cc \
sql_handler.cc \
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 \
item_subselect.cc \
item_row.cc \
field.cc \
strfunc.cc \
key.cc \
sql_class.cc \
sql_list.cc \
protocol.cc \
sql_state.c \
lock.cc \
sql_string.cc \
sql_map.cc \
drizzled.cc \
sql_connect.cc \
scheduler.cc \
sql_parse.cc \
set_var.cc \
sql_yacc.yy \
sql_base.cc \
table.cc \
sql_select.cc \
sql_insert.cc \
sql_error.cc \
sql_locale.cc \
sql_update.cc \
sql_delete.cc \
uniques.cc \
log.cc \
init.cc \
derror.cc \
unireg.cc \
log_event.cc \
rpl_record.cc \
discover.cc \
time.cc \
opt_range.cc \
opt_sum.cc \
records.cc \
filesort.cc \
sql_db.cc \
sql_table.cc \
sql_rename.cc \
sql_load.cc \
mf_iocache.cc \
field_conv.cc \
sql_show.cc \
sql_udf.cc \
slave.cc \
sql_repl.cc \
rpl_filter.cc \
rpl_tblmap.cc \
rpl_utility.cc \
rpl_rli.cc \
rpl_mi.cc \
rpl_reporting.cc \
sql_union.cc \
sql_derived.cc \
sql_client.cc \
stacktrace.c \
repl_failsafe.h \
repl_failsafe.cc \
sql_olap.cc \
tztime.cc \
my_decimal.cc\
sql_plugin.cc \
sql_binlog.cc \
sql_builtin.cc
libhandler_la_SOURCES = handler.cc
if HAVE_DTRACE
drizzled_SOURCES += probes.d
endif
gen_lex_hash_SOURCES =gen_lex_hash.cc
gen_lex_hash_LDFLAGS =
DEFS =-DMYSQL_SERVER \
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
-DDATADIR="\"$(MYSQLDATAdir)\"" \
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
-DPLUGINDIR="\"$(pkgplugindir)\"" \
-DLOCALEDIR=\"$(localedir)\" \
@DEFS@
BUILT_MAINT_SRC = sql_yacc.cc \
sql_yacc.h
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
lex_hash.h \
version.h
EXTRA_DIST = $(BUILT_MAINT_SRC) \
message.mc \
probes.d
CLEANFILES = lex_hash.h \
sql_yacc.output \
$(nodist_drizzled_SOURCES)
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
$(BUILT_MAINT_SRC)
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
AM_YFLAGS = -d --verbose
# These files should not be included in distributions since they are
# generated by configure from the .h.in files
dist-hook:
$(RM) -f $(distdir)/drizzle_version.h
# This generates lex_hash.h
# NOTE Built sources should depend on their sources not the tool
# this avoid the rebuild of the built files in a source dist
lex_hash.h: gen_lex_hash$(EXEEXT) \
$(srcdir)/lex.h
$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
probes.h: probes.d
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
mv probes.h probes.h.bak
sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
rm probes.h.bak
SUFFIXES = .d
.d.o : $(DTRACEFILES)
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
|