~drizzle-trunk/drizzle/development

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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
# vim:ft=automake
# Copyright (C) 2001, 2004, 2006 MySQL AB & Innobase Oy
# Copyright (C) 2010 Brian Aker, Joe Daly, Monty Taylor
#
# 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

noinst_HEADERS+= \
                 plugin/innobase/include/btr0btr.h \
                 plugin/innobase/include/btr0btr.ic \
                 plugin/innobase/include/btr0cur.h \
                 plugin/innobase/include/btr0cur.ic \
                 plugin/innobase/include/btr0pcur.h \
                 plugin/innobase/include/btr0pcur.ic \
                 plugin/innobase/include/btr0sea.h \
                 plugin/innobase/include/btr0sea.ic \
                 plugin/innobase/include/btr0types.h \
                 plugin/innobase/include/buf0buddy.h \
                 plugin/innobase/include/buf0buddy.ic \
                 plugin/innobase/include/buf0buf.h \
                 plugin/innobase/include/buf0buf.ic \
                 plugin/innobase/include/buf0flu.h \
                 plugin/innobase/include/buf0flu.ic \
                 plugin/innobase/include/buf0lru.h \
                 plugin/innobase/include/buf0lru.ic \
                 plugin/innobase/include/buf0rea.h \
                 plugin/innobase/include/buf0types.h \
                 plugin/innobase/include/data0data.h \
                 plugin/innobase/include/data0data.ic \
                 plugin/innobase/include/data0type.h \
                 plugin/innobase/include/data0type.ic \
                 plugin/innobase/include/data0types.h \
                 plugin/innobase/include/db0err.h \
                 plugin/innobase/include/dict0boot.h \
                 plugin/innobase/include/dict0boot.ic \
                 plugin/innobase/include/create_replication.h \
                 plugin/innobase/include/read_replication.h \
                 plugin/innobase/include/dict0crea.h \
                 plugin/innobase/include/dict0crea.ic \
                 plugin/innobase/include/dict0dict.h \
                 plugin/innobase/include/dict0dict.ic \
                 plugin/innobase/include/dict0load.h \
                 plugin/innobase/include/dict0load.ic \
                 plugin/innobase/include/dict0mem.h \
                 plugin/innobase/include/dict0mem.ic \
                 plugin/innobase/include/dict0types.h \
                 plugin/innobase/include/dyn0dyn.h \
                 plugin/innobase/include/dyn0dyn.ic \
                 plugin/innobase/include/eval0eval.h \
                 plugin/innobase/include/eval0eval.ic \
                 plugin/innobase/include/eval0proc.h \
                 plugin/innobase/include/eval0proc.ic \
                 plugin/innobase/include/fil0fil.h \
                 plugin/innobase/include/fsp0fsp.h \
                 plugin/innobase/include/fsp0fsp.ic \
                 plugin/innobase/include/fsp0types.h \
                 plugin/innobase/include/fut0fut.h \
                 plugin/innobase/include/fut0fut.ic \
                 plugin/innobase/include/fut0lst.h \
                 plugin/innobase/include/fut0lst.ic \
                 plugin/innobase/include/ha0ha.h \
                 plugin/innobase/include/ha0ha.ic \
                 plugin/innobase/include/ha0storage.h \
                 plugin/innobase/include/ha0storage.ic \
                 plugin/innobase/include/hash0hash.h \
                 plugin/innobase/include/hash0hash.ic \
                 plugin/innobase/include/ibuf0ibuf.h \
                 plugin/innobase/include/ibuf0ibuf.ic \
                 plugin/innobase/include/ibuf0types.h \
                 plugin/innobase/include/lock0iter.h \
                 plugin/innobase/include/lock0lock.h \
                 plugin/innobase/include/lock0lock.ic \
                 plugin/innobase/include/lock0priv.h \
                 plugin/innobase/include/lock0priv.ic \
                 plugin/innobase/include/lock0types.h \
                 plugin/innobase/include/log0log.h \
                 plugin/innobase/include/log0log.ic \
                 plugin/innobase/include/log0recv.h \
                 plugin/innobase/include/log0recv.ic \
                 plugin/innobase/include/mach0data.h \
                 plugin/innobase/include/mach0data.ic \
                 plugin/innobase/include/mem0dbg.h \
                 plugin/innobase/include/mem0dbg.ic \
                 plugin/innobase/include/mem0mem.h \
                 plugin/innobase/include/mem0mem.ic \
                 plugin/innobase/include/mem0pool.h \
                 plugin/innobase/include/mem0pool.ic \
                 plugin/innobase/include/mtr0log.h \
                 plugin/innobase/include/mtr0log.ic \
                 plugin/innobase/include/mtr0mtr.h \
                 plugin/innobase/include/mtr0mtr.ic \
                 plugin/innobase/include/mtr0types.h \
                 plugin/innobase/include/os0file.h \
		 plugin/innobase/include/os0file.ic \
                 plugin/innobase/include/os0proc.h \
                 plugin/innobase/include/os0proc.ic \
                 plugin/innobase/include/os0sync.h \
                 plugin/innobase/include/os0sync.ic \
                 plugin/innobase/include/os0thread.h \
                 plugin/innobase/include/os0thread.ic \
                 plugin/innobase/include/page0cur.h \
                 plugin/innobase/include/page0cur.ic \
                 plugin/innobase/include/page0page.h \
                 plugin/innobase/include/page0page.ic \
                 plugin/innobase/include/page0zip.h \
                 plugin/innobase/include/page0zip.ic \
                 plugin/innobase/include/page0types.h \
                 plugin/innobase/include/pars0opt.h \
                 plugin/innobase/include/pars0opt.ic \
                 plugin/innobase/include/pars0pars.h \
                 plugin/innobase/include/pars0pars.ic \
                 plugin/innobase/include/pars0sym.h \
                 plugin/innobase/include/pars0sym.ic \
                 plugin/innobase/include/pars0types.h \
                 plugin/innobase/include/que0que.h \
                 plugin/innobase/include/que0que.ic \
                 plugin/innobase/include/que0types.h \
                 plugin/innobase/include/read0read.h \
                 plugin/innobase/include/read0read.ic \
                 plugin/innobase/include/read0types.h \
                 plugin/innobase/include/rem0cmp.h \
                 plugin/innobase/include/rem0cmp.ic \
                 plugin/innobase/include/rem0rec.h \
                 plugin/innobase/include/rem0rec.ic \
                 plugin/innobase/include/rem0types.h \
                 plugin/innobase/include/row0ext.h \
                 plugin/innobase/include/row0ext.ic \
                 plugin/innobase/include/row0ins.h \
                 plugin/innobase/include/row0ins.ic \
                 plugin/innobase/include/row0merge.h \
                 plugin/innobase/include/row0mysql.h \
                 plugin/innobase/include/row0mysql.ic \
                 plugin/innobase/include/row0purge.h \
                 plugin/innobase/include/row0purge.ic \
                 plugin/innobase/include/row0row.h \
                 plugin/innobase/include/row0row.ic \
                 plugin/innobase/include/row0sel.h \
                 plugin/innobase/include/row0sel.ic \
                 plugin/innobase/include/row0types.h \
                 plugin/innobase/include/row0uins.h \
                 plugin/innobase/include/row0uins.ic \
                 plugin/innobase/include/row0umod.h \
                 plugin/innobase/include/row0umod.ic \
                 plugin/innobase/include/row0undo.h \
                 plugin/innobase/include/row0undo.ic \
                 plugin/innobase/include/row0upd.h \
                 plugin/innobase/include/row0upd.ic \
                 plugin/innobase/include/row0vers.h \
                 plugin/innobase/include/row0vers.ic \
                 plugin/innobase/include/srv0srv.h \
                 plugin/innobase/include/srv0srv.ic \
                 plugin/innobase/include/srv0start.h \
                 plugin/innobase/include/sync0arr.h \
                 plugin/innobase/include/sync0arr.ic \
                 plugin/innobase/include/sync0rw.h \
                 plugin/innobase/include/sync0rw.ic \
                 plugin/innobase/include/sync0sync.h \
                 plugin/innobase/include/sync0sync.ic \
                 plugin/innobase/include/sync0types.h \
                 plugin/innobase/include/thr0loc.h \
                 plugin/innobase/include/thr0loc.ic \
                 plugin/innobase/include/trx0i_s.h \
                 plugin/innobase/include/trx0purge.h \
                 plugin/innobase/include/trx0purge.ic \
                 plugin/innobase/include/trx0rec.h \
                 plugin/innobase/include/trx0rec.ic \
                 plugin/innobase/include/trx0roll.h \
                 plugin/innobase/include/trx0roll.ic \
                 plugin/innobase/include/trx0rseg.h \
                 plugin/innobase/include/trx0rseg.ic \
                 plugin/innobase/include/trx0sys.h \
                 plugin/innobase/include/trx0sys.ic \
                 plugin/innobase/include/trx0trx.h \
                 plugin/innobase/include/trx0trx.ic \
                 plugin/innobase/include/trx0types.h \
                 plugin/innobase/include/trx0undo.h \
                 plugin/innobase/include/trx0undo.ic \
                 plugin/innobase/include/trx0xa.h \
                 plugin/innobase/include/univ.i \
                 plugin/innobase/include/usr0sess.h \
                 plugin/innobase/include/usr0sess.ic \
                 plugin/innobase/include/usr0types.h \
                 plugin/innobase/include/ut0byte.h \
                 plugin/innobase/include/ut0byte.ic \
                 plugin/innobase/include/ut0dbg.h \
                 plugin/innobase/include/ut0lst.h \
                 plugin/innobase/include/ut0mem.h \
                 plugin/innobase/include/ut0mem.ic \
                 plugin/innobase/include/ut0rbt.h \
                 plugin/innobase/include/ut0rnd.h \
                 plugin/innobase/include/ut0rnd.ic \
                 plugin/innobase/include/ut0sort.h \
                 plugin/innobase/include/ut0ut.h \
                 plugin/innobase/include/ut0ut.ic \
                 plugin/innobase/include/ut0vec.h \
                 plugin/innobase/include/ut0vec.ic \
                 plugin/innobase/include/ut0list.h \
                 plugin/innobase/include/ut0list.ic \
                 plugin/innobase/include/ut0wqueue.h \
                 plugin/innobase/include/ha_prototypes.h \
                 plugin/innobase/include/handler0alter.h \
		 plugin/innobase/include/xtrabackup_api.h \
                 plugin/innobase/mem/mem0dbg.cc \
                 plugin/innobase/handler/ha_innodb.h \
                 plugin/innobase/handler/handler0vars.h \
                 plugin/innobase/handler/status_function.h \
                 plugin/innobase/handler/internal_dictionary.h \
                 plugin/innobase/handler/replication_dictionary.h \
                 plugin/innobase/handler/replication_log.h \
                 plugin/innobase/handler/data_dictionary.h

if BUILD_INNOBASE_PLUGIN
noinst_LTLIBRARIES+= \
                     plugin/innobase/libinnobase.la \
		     plugin/innobase/libpars.la
bin_PROGRAMS+= plugin/innobase/xtrabackup/drizzlebackup.innobase
endif

plugin_innobase_xtrabackup_drizzlebackup_innobase_SOURCES = plugin/innobase/xtrabackup/xtrabackup.cc
plugin_innobase_xtrabackup_drizzlebackup_innobase_LDADD = \
	plugin/innobase/libinnobase.la \
	drizzled/internal/libinternal.la \
	drizzled/libcharset.la \
	$(BOOST_LIBS) \
	${LTLIBAIO} \
	$(LIBZ)

plugin_innobase_xtrabackup_drizzlebackup_innobase_CXXFLAGS=${AM_CXXFLAGS} ${INNOBASE_SKIP_WARNINGS} -I${top_builddir}/plugin/innobase/include -I$(top_srcdir)/plugin/innobase/include -DBUILD_DRIZZLE

plugin_innobase_libinnobase_la_CXXFLAGS=${AM_CXXFLAGS} ${INNOBASE_SKIP_WARNINGS} -I${top_builddir}/plugin/innobase/include -I$(top_srcdir)/plugin/innobase/include -DBUILD_DRIZZLE
plugin_innobase_libinnobase_la_LDDADD= ${LTLIBAIO}
plugin_innobase_libinnobase_la_SOURCES= \
                                        plugin/innobase/btr/btr0btr.cc \
                                        plugin/innobase/btr/btr0cur.cc \
                                        plugin/innobase/btr/btr0pcur.cc \
                                        plugin/innobase/btr/btr0sea.cc \
                                        plugin/innobase/buf/buf0buddy.cc \
                                        plugin/innobase/buf/buf0buf.cc \
                                        plugin/innobase/buf/buf0flu.cc	\
                                        plugin/innobase/buf/buf0lru.cc \
                                        plugin/innobase/buf/buf0rea.cc \
                                        plugin/innobase/data/data0data.cc \
                                        plugin/innobase/data/data0type.cc \
                                        plugin/innobase/dict/dict0boot.cc \
                                        plugin/innobase/dict/create_replication.cc \
                                        plugin/innobase/dict/dict0crea.cc \
                                        plugin/innobase/dict/dict0dict.cc \
                                        plugin/innobase/dict/dict0load.cc \
                                        plugin/innobase/dict/dict0mem.cc \
                                        plugin/innobase/dyn/dyn0dyn.cc	\
                                        plugin/innobase/eval/eval0eval.cc \
                                        plugin/innobase/eval/eval0proc.cc \
                                        plugin/innobase/fil/fil0fil.cc \
                                        plugin/innobase/fsp/fsp0fsp.cc \
                                        plugin/innobase/fut/fut0fut.cc	\
                                        plugin/innobase/fut/fut0lst.cc \
                                        plugin/innobase/ha/ha0ha.cc \
                                        plugin/innobase/ha/ha0storage.cc \
                                        plugin/innobase/ha/hash0hash.cc \
                                        plugin/innobase/ibuf/ibuf0ibuf.cc \
                                        plugin/innobase/lock/lock0iter.cc \
                                        plugin/innobase/lock/lock0lock.cc \
                                        plugin/innobase/log/log0log.cc \
                                        plugin/innobase/log/log0recv.cc \
                                        plugin/innobase/mach/mach0data.cc \
                                        plugin/innobase/mem/mem0mem.cc \
                                        plugin/innobase/mem/mem0pool.cc \
                                        plugin/innobase/mtr/mtr0log.cc	\
                                        plugin/innobase/mtr/mtr0mtr.cc \
                                        plugin/innobase/os/os0file.cc \
                                        plugin/innobase/os/os0proc.cc \
                                        plugin/innobase/os/os0sync.cc \
                                        plugin/innobase/os/os0thread.cc \
                                        plugin/innobase/page/page0cur.cc \
                                        plugin/innobase/page/page0page.cc \
                                        plugin/innobase/page/page0zip.cc \
                                        plugin/innobase/pars/pars0opt.cc \
                                        plugin/innobase/pars/pars0pars.cc \
                                        plugin/innobase/pars/pars0sym.cc \
                                        plugin/innobase/que/que0que.cc \
                                        plugin/innobase/read/read0read.cc \
                                        plugin/innobase/rem/rem0cmp.cc \
                                        plugin/innobase/rem/rem0rec.cc \
                                        plugin/innobase/row/row0ext.cc	\
                                        plugin/innobase/row/row0ins.cc \
                                        plugin/innobase/row/row0merge.cc \
                                        plugin/innobase/row/row0mysql.cc \
                                        plugin/innobase/row/row0purge.cc \
                                        plugin/innobase/row/row0row.cc	\
                                        plugin/innobase/row/row0sel.cc \
                                        plugin/innobase/row/row0uins.cc \
                                        plugin/innobase/row/row0umod.cc \
                                        plugin/innobase/row/row0undo.cc \
                                        plugin/innobase/row/row0upd.cc \
                                        plugin/innobase/row/row0vers.cc \
                                        plugin/innobase/srv/srv0srv.cc \
                                        plugin/innobase/srv/srv0start.cc \
                                        plugin/innobase/sync/sync0arr.cc \
                                        plugin/innobase/sync/sync0rw.cc \
                                        plugin/innobase/sync/sync0sync.cc \
                                        plugin/innobase/thr/thr0loc.cc	\
                                        plugin/innobase/trx/trx0i_s.cc	\
                                        plugin/innobase/trx/trx0purge.cc \
                                        plugin/innobase/trx/trx0rec.cc \
                                        plugin/innobase/trx/trx0roll.cc \
                                        plugin/innobase/trx/trx0rseg.cc \
                                        plugin/innobase/trx/trx0sys.cc \
                                        plugin/innobase/trx/trx0trx.cc \
                                        plugin/innobase/trx/trx0undo.cc \
                                        plugin/innobase/usr/usr0sess.cc \
                                        plugin/innobase/ut/ut0byte.cc \
                                        plugin/innobase/ut/ut0dbg.cc \
                                        plugin/innobase/ut/ut0list.cc \
                                        plugin/innobase/ut/ut0mem.cc \
                                        plugin/innobase/ut/ut0rbt.cc \
                                        plugin/innobase/ut/ut0rnd.cc \
                                        plugin/innobase/ut/ut0ut.cc \
                                        plugin/innobase/ut/ut0vec.cc \
                                        plugin/innobase/ut/ut0wqueue.cc

# pars0lex.c and pars0grm.cc have lots of redundant decls 
# and unused/undefeind stuf, but are generated anyway 
plugin_innobase_libpars_la_CFLAGS= \
				   ${AM_CFLAGS} \
				   ${PERMISSIVE_C_WARNINGS} \
				   -DUNIV_NONINL \
				   -I$(top_builddir)/plugin/innobase/include \
				   -I$(top_srcdir)/plugin/innobase/include \
				   -DBUILD_DRIZZLE
plugin_innobase_libpars_la_CXXFLAGS= \
				     ${AM_CXXFLAGS} \
				     ${PERMISSIVE_WARNINGS} \
				     -I$(top_builddir)/plugin/innobase/include \
				     -I$(top_srcdir)/plugin/innobase/include \
				     -DBUILD_DRIZZLE

plugin_innobase_libpars_la_SOURCES= \
				    plugin/innobase/pars/pars0lex.c \
				    plugin/innobase/pars/pars0grm.cc

plugin_innobase_libinnobase_la_LIBADD=	plugin/innobase/libpars.la

plugin/innobase/pars/pars0grm.cc: plugin/innobase/pars/pars0grm.y
	$(AM_V_GEN) $(YACC) -d $< -o plugin/innobase/pars/pars0grm.tab.cc
	@mkdir -p plugin/innobase/include
	@mv plugin/innobase/pars/pars0grm.tab.hh plugin/innobase/include/pars0grm.hh
	@sed -e 's/pars0grm.tab.cc/pars0grm.cc/; s/^\(\(YYSTYPE\|int\) yy\(char\|nerrs\)\)/static \1/; s/\(\(YYSTYPE\|int\) yy\(lval\|parse\)\)/UNIV_INTERN \1/;' < plugin/innobase/pars/pars0grm.tab.cc > plugin/innobase/pars/pars0grm.cc
	@rm plugin/innobase/pars/pars0grm.tab.cc

plugin/innobase/include/pars0grm.hh: plugin/innobase/pars/pars0grm.cc
	@if test ! -f $@; then \
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $<; \
	else :; fi

plugin/innobase/pars/pars0lex.c: plugin/innobase/pars/pars0lex.l
	$(AM_V_GEN)$(LEX) -oplugin/innobase/pars/_flex_tmp.c $<
# AIX needs its includes done in a certain order, so include "univ.i" first
# to be sure we get it right.
	@echo '#include "univ.i"' > $@
# flex assigns a pointer to an int in one place without a cast, resulting in
# a warning on Win64.  Add the cast.  Also define some symbols as static.
	@sed -e 's/_flex_tmp.c/'`basename $@`'/' \
	     -e 's/\(int offset = \)\((yy_c_buf_p) - (yytext_ptr)\);/\1(int)(\2);/' \
	     -e 's/\(void yy\(restart\|_\(delete\|flush\)_buffer\)\)/static \1/' \
	     -e 's/\(void yy_switch_to_buffer\)/__attribute__((unused)) static \1/' \
	     -e 's/\(void yy\(push\|pop\)_buffer_state\)/__attribute__((unused)) static \1/' \
	     -e 's/\(YY_BUFFER_STATE yy_create_buffer\)/static \1/' \
	     -e 's/\(\(int\|void\) yy[gs]et_\)/__attribute__((unused)) static \1/' \
	     -e 's/\(void \*\?yy\(\(re\)\?alloc\|free\)\)/static \1/' \
	     -e 's/\(extern \)\?\(int yy\(leng\|lineno\|_flex_debug\)\)/static \2/' \
	     -e 's/\(int yylex_destroy\)/__attribute__((unused)) static \1/' \
	     -e 's/\(extern \)\?\(int yylex \)/UNIV_INTERN \2/' \
	     -e 's/^\(\(FILE\|char\) *\* *yyget\)/__attribute__((unused)) static \1/' \
	     -e 's/^\(extern \)\?\(\(FILE\|char\) *\* *yy\)/static \2/' \
              < plugin/innobase/pars/_flex_tmp.c >> $@
	@rm plugin/innobase/pars/_flex_tmp.c

BUILT_MAINT_SRC+= \
	     plugin/innobase/pars/pars0lex.c \
	     plugin/innobase/pars/pars0grm.cc \
	     plugin/innobase/include/pars0grm.hh

EXTRA_DIST+= \
             plugin/innobase/CMakeLists.txt \
             plugin/innobase/pars/pars0grm.y \
             plugin/innobase/pars/pars0lex.l