~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/Makefile.am

  • Committer: Brian Aker
  • Date: 2008-08-16 15:41:14 UTC
  • mto: This revision was merged to the branch mainline in revision 346.
  • Revision ID: brian@tangent.org-20080816154114-eufmwf31p6ie1nd6
Cleaned up depend in Proto utils. Modified int to bool. Put TmpTable class
into play.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  Copyright (C) 2008 Sun Microsystems
2
 
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.
6
 
#
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.
11
 
#
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
15
 
 
16
 
 
17
 
sbin_PROGRAMS= drizzled
18
 
 
19
 
DTRACEFILES = cursor.o \
 
1
# Copyright (C) 2000-2006 MySQL AB
 
2
 
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.
 
6
 
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.
 
11
 
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
 
15
 
 
16
#called from the top level Makefile
 
17
 
 
18
MYSQLDATAdir =$(localstatedir)
 
19
 
 
20
MYSQLSHAREdir =$(pkgdatadir)
 
21
 
 
22
MYSQLBASEdir=$(prefix)
 
23
 
 
24
MYSQLLIBdir=            $(pkglibdir)
 
25
 
 
26
pkgplugindir =$(pkglibdir)/plugin
 
27
 
 
28
SUBDIRS = field serialize  . share
 
29
 
 
30
sbin_PROGRAMS =drizzled
 
31
 
 
32
EXTRA_PROGRAMS =gen_lex_hash
 
33
 
 
34
bin_PROGRAMS =
 
35
 
 
36
bin_SCRIPTS =   drizzledumpslow \
 
37
                drizzled_safe 
 
38
 
 
39
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS} 
 
40
 
 
41
DTRACE = @DTRACE@
 
42
 
 
43
DTRACEFLAGS = @DTRACEFLAGS@
 
44
 
 
45
DTRACEFILES = handler.o \
20
46
              filesort.o \
21
 
              drizzled.o \
22
 
              session.o \
 
47
              sql_insert.o \
23
48
              sql_delete.o \
24
 
              sql_insert.o \
25
49
              sql_select.o \
26
 
              sql_update.o \
27
 
              sql_parse.o \
28
 
              statement/delete.o \
29
 
              statement/insert.o \
30
 
              statement/insert_select.o
 
50
              sql_update.o
31
51
 
32
52
drizzledincludedir = ${includedir}/drizzled
33
 
nobase_dist_drizzledinclude_HEADERS = \
34
 
                alter_column.h \
35
 
                alter_drop.h \
36
 
                alter_info.h \
37
 
                atomic/gcc_traits.h \
38
 
                atomic/pthread_traits.h \
39
 
                atomic/sun_studio.h \
40
 
                atomics.h \
41
 
                base.h \
42
 
                cached_item.h \
43
 
                calendar.h \
44
 
                check_stack_overrun.h \
45
 
                common.h \
46
 
                comp_creator.h \
47
 
                cost_vect.h \
48
 
                create_field.h \
49
 
                current_session.h \
50
 
                data_home.h \
51
 
                db.h \
52
 
                definitions.h \
53
 
                diagnostics_area.h \
54
 
                discrete_interval.h \
55
 
                dtcollation.h \
56
 
                enum.h \
57
 
                enum_nested_loop_state.h \
58
 
                errmsg_print.h \
59
 
                error.h \
60
 
                field.h \
61
 
                field/blob.h \
62
 
                field/date.h \
63
 
                field/datetime.h \
64
 
                field/decimal.h \
65
 
                field/double.h \
66
 
                field/enum.h \
67
 
                field/int64_t.h \
68
 
                field/long.h \
69
 
                field/null.h \
70
 
                field/num.h \
71
 
                field/real.h \
72
 
                field/str.h \
73
 
                field/timestamp.h \
74
 
                field/varstring.h \
75
 
                field_iterator.h \
76
 
                file_exchange.h \
77
 
                filesort_info.h \
78
 
                foreign_key.h \
79
 
                function/additive_op.h \
80
 
                function/coercibility.h \
81
 
                function/field.h \
82
 
                function/find_in_set.h \
83
 
                function/found_rows.h \
84
 
                function/func.h \
85
 
                function/get_system_var.h \
86
 
                function/get_user_var.h \
87
 
                function/last_insert.h \
88
 
                function/locate.h \
89
 
                function/math/abs.h \
90
 
                function/math/acos.h \
91
 
                function/math/asin.h \
92
 
                function/math/atan.h \
93
 
                function/math/ceiling.h \
94
 
                function/math/cos.h \
95
 
                function/math/dec.h \
96
 
                function/math/decimal_typecast.h \
97
 
                function/math/divide.h \
98
 
                function/math/exp.h \
99
 
                function/math/floor.h \
100
 
                function/math/int.h \
101
 
                function/math/int_divide.h \
102
 
                function/math/int_val.h \
103
 
                function/math/integer.h \
104
 
                function/math/ln.h \
105
 
                function/math/log.h \
106
 
                function/math/minus.h \
107
 
                function/math/mod.h \
108
 
                function/math/multiply.h \
109
 
                function/math/neg.h \
110
 
                function/math/ord.h \
111
 
                function/math/plus.h \
112
 
                function/math/pow.h \
113
 
                function/math/rand.h \
114
 
                function/math/real.h \
115
 
                function/math/round.h \
116
 
                function/math/sin.h \
117
 
                function/math/sqrt.h \
118
 
                function/math/tan.h \
119
 
                function/min_max.h \
120
 
                function/num1.h \
121
 
                function/num_op.h \
122
 
                function/numhybrid.h \
123
 
                function/rollup_const.h \
124
 
                function/row_count.h \
125
 
                function/set_user_var.h \
126
 
                function/sign.h \
127
 
                function/signed.h \
128
 
                function/str/alloc_buffer.h \
129
 
                function/str/binary.h \
130
 
                function/str/char.h \
131
 
                function/str/collation.h \
132
 
                function/str/concat.h \
133
 
                function/str/conv.h \
134
 
                function/str/conv_charset.h \
135
 
                function/str/database.h \
136
 
                function/str/elt.h \
137
 
                function/str/export_set.h \
138
 
                function/str/format.h \
139
 
                function/str/hex.h \
140
 
                function/str/insert.h \
141
 
                function/str/left.h \
142
 
                function/str/load_file.h \
143
 
                function/str/make_set.h \
144
 
                function/str/pad.h \
145
 
                function/str/quote.h \
146
 
                function/str/repeat.h \
147
 
                function/str/replace.h \
148
 
                function/str/reverse.h \
149
 
                function/str/right.h \
150
 
                function/str/set_collation.h \
151
 
                function/str/str_conv.h \
152
 
                function/str/strfunc.h \
153
 
                function/str/substr.h \
154
 
                function/str/trim.h \
155
 
                function/str/user.h \
156
 
                function/str/uuid.h \
157
 
                function/str/weight_string.h \
158
 
                function/time/curdate.h \
159
 
                function/time/date.h \
160
 
                function/time/date_add_interval.h \
161
 
                function/time/date_format.h \
162
 
                function/time/dayname.h \
163
 
                function/time/dayofmonth.h \
164
 
                function/time/dayofyear.h \
165
 
                function/time/extract.h \
166
 
                function/time/from_days.h \
167
 
                function/time/from_unixtime.h \
168
 
                function/time/hour.h \
169
 
                function/time/last_day.h \
170
 
                function/time/makedate.h \
171
 
                function/time/microsecond.h \
172
 
                function/time/minute.h \
173
 
                function/time/month.h \
174
 
                function/time/now.h \
175
 
                function/time/period_add.h \
176
 
                function/time/period_diff.h \
177
 
                function/time/quarter.h \
178
 
                function/time/second.h \
179
 
                function/time/sysdate_local.h \
180
 
                function/time/timestamp_diff.h \
181
 
                function/time/to_days.h \
182
 
                function/time/typecast.h \
183
 
                function/time/unix_timestamp.h \
184
 
                function/time/weekday.h \
185
 
                function/time/year.h  \
186
 
                function/units.h \
187
 
                function/unsigned.h \
188
 
                function/user_var_as_out_param.h \
189
 
                function_hash.h \
190
 
                ha_statistics.h \
191
 
                ha_trx_info.h \
192
 
                cursor.h \
193
 
                handler_structs.h \
194
 
                hybrid_type.h \
195
 
                hybrid_type_traits.h \
196
 
                hybrid_type_traits_decimal.h \
197
 
                hybrid_type_traits_integer.h \
198
 
                index_hint.h \
199
 
                internal_error_handler.h \
200
 
                item.h \
201
 
                item/basic_constant.h \
202
 
                item/bin_string.h \
203
 
                item/blob.h \
204
 
                item/cache.h \
205
 
                item/cache_decimal.h \
206
 
                item/cache_int.h \
207
 
                item/cache_real.h \
208
 
                item/cache_row.h \
209
 
                item/cache_str.h \
210
 
                item/cmpfunc.h \
211
 
                item/copy_string.h \
212
 
                item/create.h \
213
 
                item/decimal.h \
214
 
                item/default_value.h \
215
 
                item/direct_ref.h \
216
 
                item/empty_string.h \
217
 
                item/field.h \
218
 
                item/float.h \
219
 
                item/func.h \
220
 
                item/hex_string.h \
221
 
                item/ident.h \
222
 
                item/insert_value.h \
223
 
                item/int.h \
224
 
                item/int_with_ref.h \
225
 
                item/null.h \
226
 
                item/num.h \
227
 
                item/outer_ref.h \
228
 
                item/ref.h \
229
 
                item/ref_null_helper.h \
230
 
                item/return_date_time.h \
231
 
                item/return_int.h \
232
 
                item/row.h \
233
 
                item/string.h \
234
 
                item/subselect.h \
235
 
                item/sum.h \
236
 
                item/type_holder.h \
237
 
                item/uint.h \
238
 
                join.h \
239
 
                join_cache.h \
240
 
                join_table.h \
241
 
                key.h \
242
 
                key_map.h \
243
 
                key_part_spec.h \
244
 
                korr.h \
245
 
                lex_column.h \
246
 
                lex_input_stream.h \
247
 
                lex_string.h \
248
 
                lex_symbol.h \
249
 
                lock.h \
250
 
                lookup_symbol.h \
251
 
                memory/multi_malloc.h \
252
 
                my_decimal.h\
253
 
                my_var.h \
254
 
                name_map.h \
255
 
                name_resolution_context.h \
256
 
                name_resolution_context_state.h \
257
 
                natural_join_column.h \
258
 
                nested_join.h \
259
 
                open_tables_state.h \
260
 
                opt_range.h \
261
 
                optimizer/key_field.h \
262
 
                optimizer/key_use.h \
263
 
                optimizer/position.h \
264
 
                optimizer/sargable_param.h \
265
 
                order.h \
266
 
                plugin.h \
267
 
                plugin/authentication.h \
268
 
                plugin/client.h \
269
 
                plugin/error_message.h \
270
 
                plugin/function.h \
271
 
                plugin/info_schema_table.h \
272
 
                plugin/library.h \
273
 
                plugin/listen.h \
274
 
                plugin/listen_tcp.h \
275
 
                plugin/logging.h \
276
 
                plugin/manifest.h \
277
 
                plugin/module.h \
278
 
                plugin/null_client.h \
279
 
                plugin/plugin.h \
280
 
                plugin/query_cache.h \
281
 
                plugin/registry.h \
282
 
                plugin/scheduler.h \
283
 
                plugin/storage_engine.h \
284
 
                plugin/transaction_applier.h \
285
 
                plugin/transaction_reader.h \
286
 
                plugin/transaction_replicator.h \
287
 
                probes.h \
288
 
                query_id.h \
289
 
                replication_services.h \
290
 
                security_context.h \
291
 
                select_create.h \
292
 
                select_dump.h \
293
 
                select_dumpvar.h \
294
 
                select_exists_subselect.h \
295
 
                select_export.h \
296
 
                select_insert.h \
297
 
                select_max_min_finder_subselect.h \
298
 
                select_result.h \
299
 
                select_result_interceptor.h \
300
 
                select_send.h \
301
 
                select_singlerow_subselect.h \
302
 
                select_subselect.h \
303
 
                select_to_file.h \
304
 
                select_union.h \
305
 
                session.h \
306
 
                set_var.h \
307
 
                show.h \
308
 
                sql_alloc.h \
309
 
                sql_array.h \
310
 
                sql_base.h \
311
 
                sql_bitmap.h \
312
 
                sql_error.h \
313
 
                sql_lex.h \
314
 
                sql_list.h \
315
 
                sql_load.h \
316
 
                sql_locale.h \
317
 
                sql_parse.h \
318
 
                sql_select.h \
319
 
                sql_sort.h \
320
 
                sql_state.h \
321
 
                sql_string.h \
322
 
                sql_table.h \
323
 
                sql_union.h \
324
 
                stacktrace.h \
325
 
                statement.h \
326
 
                statement/alter_schema.h \
327
 
                statement/alter_table.h \
328
 
                statement/analyze.h \
329
 
                statement/change_schema.h \
330
 
                statement/check.h \
331
 
                statement/checksum.h \
332
 
                statement/commit.h \
333
 
                statement/create_index.h \
334
 
                statement/create_schema.h \
335
 
                statement/create_table.h \
336
 
                statement/delete.h \
337
 
                statement/drop_index.h \
338
 
                statement/drop_schema.h \
339
 
                statement/drop_table.h \
340
 
                statement/empty_query.h \
341
 
                statement/flush.h \
342
 
                statement/insert.h \
343
 
                statement/insert_select.h \
344
 
                statement/kill.h \
345
 
                statement/load.h \
346
 
                statement/release_savepoint.h \
347
 
                statement/rename_table.h \
348
 
                statement/replace.h \
349
 
                statement/replace_select.h \
350
 
                statement/rollback.h \
351
 
                statement/rollback_to_savepoint.h \
352
 
                statement/savepoint.h \
353
 
                statement/select.h \
354
 
                statement/set_option.h \
355
 
                statement/show_create.h \
356
 
                statement/show_create_schema.h \
357
 
                statement/show_engine_status.h \
358
 
                statement/show_errors.h \
359
 
                statement/show_processlist.h \
360
 
                statement/show_status.h \
361
 
                statement/show_warnings.h \
362
 
                statement/start_transaction.h \
363
 
                statement/truncate.h \
364
 
                statement/unlock_tables.h \
365
 
                statement/update.h \
366
 
                stored_key.h \
367
 
                structs.h \
368
 
                symbol_hash.h \
369
 
                table.h \
370
 
                table_ident.h \
371
 
                table_identifier.h \
372
 
                table_list.h \
373
 
                table_map_iterator.h \
374
 
                table_proto.h \
375
 
                table_reference.h \
376
 
                table_share.h \
377
 
                temporal.h \
378
 
                temporal_format.h \
379
 
                temporal_interval.h \
380
 
                tmp_table_param.h \
381
 
                tzfile.h \
382
 
                tztime.h \
383
 
                unique.h \
384
 
                unireg.h \
385
 
                user_var_entry.h \
386
 
                utf8.h \
387
 
                utf8/checked.h \
388
 
                utf8/core.h \
389
 
                utf8/unchecked.h \
390
 
                xid.h
391
 
 
392
 
noinst_LTLIBRARIES = \
393
 
                libhandler.la \
394
 
                libserialutil.la
395
 
 
396
 
LDADD = $(top_builddir)/mysys/libmysys.la \
 
53
dist_drizzledinclude_HEADERS =  error.h \
 
54
                                plugin.h \
 
55
                                plugin_authentication.h
 
56
 
 
57
noinst_LTLIBRARIES = libhandler.la
 
58
 
 
59
LDADD = $(top_builddir)/vio/libviolt.la \
 
60
        $(top_builddir)/libdrizzle/libsqlcommon.la \
 
61
        $(top_builddir)/mysys/libmysys.la \
397
62
        $(top_builddir)/mystrings/libmystrings.la \
398
 
        $(LTLIBDRIZZLE) $(LIBZ) $(LIBINTL) ${LIBC_P}
399
 
 
400
 
drizzled_LDADD = ${noinst_LTLIBRARIES} \
401
 
                 $(top_builddir)/drizzled/hash/libhash.la \
402
 
                 $(top_builddir)/drizzled/message/libdrizzledmessage.la \
403
 
                 $(pandora_plugin_libs) \
404
 
                 $(LDADD) $(LIBUUID) ${top_builddir}/gnulib/libgnu.la \
405
 
                 $(LIBDL_LIBS) $(LIBPROTOBUF) $(LIBPCRE) $(LIBTBB) \
406
 
                 $(PANDORA_PLUGIN_DEP_LIBS)
407
 
drizzled_DEPENDENCIES= ${noinst_LTLIBRARIES} $(pandora_plugin_libs)
408
 
 
409
 
drizzled_LDFLAGS = -export-dynamic
410
 
 
411
 
 
412
 
noinst_HEADERS = \
413
 
                hash.h \
414
 
                gettext.h \
415
 
                global.h \
416
 
                server_includes.h \
417
 
                util/convert.h \
418
 
                util/test.h
 
63
        $(ZLIB_LIBS) $(LIBINTL)
 
64
 
 
65
drizzled_LDADD = libhandler.la \
 
66
                 $(top_builddir)/libdrizzle/libdrizzle.la \
 
67
                 $(top_builddir)/drizzled/field/libfield.la \
 
68
                 $(top_builddir)/drizzled/serialize/libserialize.la \
 
69
                 $(libevent_libs) \
 
70
                 @mysql_plugin_libs@ \
 
71
                 -lprotobuf \
 
72
                 $(LDADD) \
 
73
                 $(CXXLDFLAGS) \
 
74
                 $(LIBDL_LIBS) $(LIBEVENT_LIBS)
 
75
 
 
76
noinst_HEADERS = item.h \
 
77
                 authentication.h \
 
78
                 item_func.h \
 
79
                 item_sum.h \
 
80
                 item_cmpfunc.h \
 
81
                 item_strfunc.h \
 
82
                 item_timefunc.h \
 
83
                 item_create.h \
 
84
                 item_subselect.h \
 
85
                 item_row.h \
 
86
                 server_includes.h \
 
87
                 sql_bitmap.h \
 
88
                 sql_class.h \
 
89
                 sql_lex.h \
 
90
                 sql_list.h \
 
91
                 sql_locale.h \
 
92
                 sql_map.h \
 
93
                 sql_state.h \
 
94
                 sql_string.h \
 
95
                 sql_error.h \
 
96
                 field.h \
 
97
                 handler.h \
 
98
                 mysqld_suffix.h \
 
99
                 rpl_constants.h \
 
100
                 opt_range.h \
 
101
                 protocol.h \
 
102
                 rpl_tblmap.h \
 
103
                 rpl_utility.h \
 
104
                 rpl_reporting.h \
 
105
                 log.h \
 
106
                 sql_show.h \
 
107
                 rpl_rli.h \
 
108
                 rpl_mi.h \
 
109
                 sql_select.h \
 
110
                 structs.h \
 
111
                 table.h \
 
112
                 sql_udf.h \
 
113
                 lex.h \
 
114
                 lex_symbol.h \
 
115
                 sql_repl.h \
 
116
                 slave.h \
 
117
                 rpl_filter.h \
 
118
                 log_event.h \
 
119
                 rpl_record.h \
 
120
                 stacktrace.h \
 
121
                 sql_sort.h \
 
122
                 set_var.h \
 
123
                 tzfile.h \
 
124
                 client_settings.h \
 
125
                 tztime.h \
 
126
                 my_decimal.h\
 
127
                 sql_array.h \
 
128
                 scheduler.h \
 
129
                 sql_plugin.h \
 
130
                 global.h \
 
131
                 base.h \
 
132
                 probes.h \
 
133
                 definitions.h \
 
134
                 sql_alloc.h \
 
135
                 sql_parse.h \
 
136
                 error_injection.h \
 
137
                 connect.h \
 
138
                 sql_table.h \
 
139
                 show.h \
 
140
                 tmp_table.h \
 
141
                 sj_tmp_table.h \
 
142
                 drizzled_error_messages.h \
 
143
                 common_includes.h 
419
144
 
420
145
drizzled_SOURCES = \
421
 
                alter_info.cc \
422
 
                cached_item.cc \
423
 
                calendar.cc \
424
 
                check_stack_overrun.cc \
425
 
                comp_creator.cc \
426
 
                create_field.cc \
427
 
                current_session.cc \
428
 
                diagnostics_area.cc \
429
 
                drizzled.cc \
430
 
                dtcollation.cc \
431
 
                errmsg_print.cc \
432
 
                error.cc \
433
 
                field.cc \
434
 
                field/blob.cc \
435
 
                field/date.cc \
436
 
                field/datetime.cc \
437
 
                field/decimal.cc \
438
 
                field/double.cc \
439
 
                field/enum.cc \
440
 
                field/int64_t.cc \
441
 
                field/long.cc \
442
 
                field/null.cc \
443
 
                field/num.cc \
444
 
                field/real.cc \
445
 
                field/str.cc \
446
 
                field/timestamp.cc \
447
 
                field/varstring.cc \
448
 
                field_conv.cc \
449
 
                field_iterator.cc \
450
 
                file_exchange.cc \
451
 
                filesort.cc \
452
 
                foreign_key.cc \
453
 
                function/additive_op.cc \
454
 
                function/check_reserved_words.cc \
455
 
                function/coercibility.cc \
456
 
                function/field.cc \
457
 
                function/find_in_set.cc \
458
 
                function/found_rows.cc \
459
 
                function/func.cc \
460
 
                function/get_system_var.cc \
461
 
                function/get_user_var.cc \
462
 
                function/last_insert.cc \
463
 
                function/locate.cc \
464
 
                function/math/abs.cc \
465
 
                function/math/acos.cc \
466
 
                function/math/asin.cc \
467
 
                function/math/atan.cc \
468
 
                function/math/ceiling.cc \
469
 
                function/math/cos.cc \
470
 
                function/math/decimal_typecast.cc \
471
 
                function/math/divide.cc \
472
 
                function/math/exp.cc \
473
 
                function/math/floor.cc \
474
 
                function/math/int.cc \
475
 
                function/math/int_divide.cc \
476
 
                function/math/int_val.cc \
477
 
                function/math/integer.cc \
478
 
                function/math/ln.cc \
479
 
                function/math/log.cc \
480
 
                function/math/minus.cc \
481
 
                function/math/mod.cc \
482
 
                function/math/multiply.cc \
483
 
                function/math/neg.cc \
484
 
                function/math/ord.cc \
485
 
                function/math/plus.cc \
486
 
                function/math/pow.cc \
487
 
                function/math/rand.cc \
488
 
                function/math/real.cc \
489
 
                function/math/round.cc \
490
 
                function/math/sin.cc \
491
 
                function/math/sqrt.cc \
492
 
                function/math/tan.cc \
493
 
                function/min_max.cc \
494
 
                function/num1.cc \
495
 
                function/num_op.cc \
496
 
                function/numhybrid.cc \
497
 
                function/row_count.cc \
498
 
                function/set_user_var.cc \
499
 
                function/sign.cc \
500
 
                function/signed.cc \
501
 
                function/str/alloc_buffer.cc \
502
 
                function/str/binary.cc \
503
 
                function/str/char.cc \
504
 
                function/str/collation.cc \
505
 
                function/str/concat.cc \
506
 
                function/str/conv.cc \
507
 
                function/str/conv_charset.cc \
508
 
                function/str/database.cc \
509
 
                function/str/elt.cc \
510
 
                function/str/export_set.cc \
511
 
                function/str/format.cc \
512
 
                function/str/hex.cc \
513
 
                function/str/insert.cc \
514
 
                function/str/left.cc \
515
 
                function/str/load_file.cc \
516
 
                function/str/make_set.cc \
517
 
                function/str/pad.cc \
518
 
                function/str/quote.cc \
519
 
                function/str/repeat.cc \
520
 
                function/str/replace.cc \
521
 
                function/str/reverse.cc \
522
 
                function/str/right.cc \
523
 
                function/str/set_collation.cc \
524
 
                function/str/str_conv.cc \
525
 
                function/str/strfunc.cc \
526
 
                function/str/substr.cc \
527
 
                function/str/trim.cc \
528
 
                function/str/user.cc \
529
 
                function/str/uuid.cc \
530
 
                function/str/weight_string.cc \
531
 
                function/time/curdate.cc \
532
 
                function/time/date.cc \
533
 
                function/time/date_add_interval.cc \
534
 
                function/time/date_format.cc \
535
 
                function/time/dayname.cc \
536
 
                function/time/dayofmonth.cc \
537
 
                function/time/dayofyear.cc \
538
 
                function/time/extract.cc \
539
 
                function/time/from_days.cc \
540
 
                function/time/from_unixtime.cc \
541
 
                function/time/hour.cc \
542
 
                function/time/last_day.cc \
543
 
                function/time/makedate.cc \
544
 
                function/time/microsecond.cc \
545
 
                function/time/minute.cc \
546
 
                function/time/month.cc \
547
 
                function/time/now.cc \
548
 
                function/time/period_add.cc \
549
 
                function/time/period_diff.cc \
550
 
                function/time/quarter.cc \
551
 
                function/time/second.cc \
552
 
                function/time/sysdate_local.cc \
553
 
                function/time/timestamp_diff.cc \
554
 
                function/time/to_days.cc \
555
 
                function/time/typecast.cc \
556
 
                function/time/unix_timestamp.cc \
557
 
                function/time/weekday.cc \
558
 
                function/time/year.cc \
559
 
                function/units.cc \
560
 
                function/unsigned.cc \
561
 
                function/user_var_as_out_param.cc \
562
 
                ha_commands.cc \
563
 
                ha_trx_info.cc \
564
 
                hybrid_type_traits.cc \
565
 
                hybrid_type_traits_decimal.cc \
566
 
                hybrid_type_traits_integer.cc \
567
 
                index_hint.cc \
568
 
                item.cc \
569
 
                item/bin_string.cc \
570
 
                item/cache.cc \
571
 
                item/cache_decimal.cc \
572
 
                item/cache_int.cc \
573
 
                item/cache_real.cc \
574
 
                item/cache_row.cc \
575
 
                item/cache_str.cc \
576
 
                item/cmpfunc.cc \
577
 
                item/copy_string.cc \
578
 
                item/create.cc \
579
 
                item/decimal.cc \
580
 
                item/default_value.cc \
581
 
                item/direct_ref.cc \
582
 
                item/empty_string.cc \
583
 
                item/field.cc \
584
 
                item/float.cc \
585
 
                item/hex_string.cc \
586
 
                item/ident.cc \
587
 
                item/insert_value.cc \
588
 
                item/int.cc \
589
 
                item/int_with_ref.cc \
590
 
                item/null.cc \
591
 
                item/num.cc \
592
 
                item/outer_ref.cc \
593
 
                item/ref.cc \
594
 
                item/ref_null_helper.cc \
595
 
                item/row.cc \
596
 
                item/string.cc \
597
 
                item/subselect.cc \
598
 
                item/sum.cc \
599
 
                item/type_holder.cc \
600
 
                item/uint.cc \
601
 
                join.cc \
602
 
                join_cache.cc \
603
 
                join_table.cc \
604
 
                key.cc \
605
 
                key_map.cc \
606
 
                lock.cc \
607
 
                lookup_symbol.cc \
608
 
                memory/multi_malloc.cc \
609
 
                my_decimal.cc \
610
 
                name_resolution_context_state.cc \
611
 
                natural_join_column.cc \
612
 
                opt_range.cc \
613
 
                opt_sum.cc \
614
 
                optimizer/key_field.cc \
615
 
                plugin/authentication.cc \
616
 
                plugin/client.cc \
617
 
                plugin/error_message.cc \
618
 
                plugin/function.cc \
619
 
                plugin/info_schema_table.cc \
620
 
                plugin/listen.cc \
621
 
                plugin/listen_tcp.cc \
622
 
                plugin/loader.cc \
623
 
                plugin/logging.cc \
624
 
                plugin/plugin.cc \
625
 
                plugin/query_cache.cc \
626
 
                plugin/registry.cc \
627
 
                plugin/scheduler.cc \
628
 
                plugin/transaction_applier.cc \
629
 
                plugin/transaction_replicator.cc \
630
 
                query_id.cc \
631
 
                records.cc \
632
 
                replication_services.cc \
633
 
                session.cc \
634
 
                set_var.cc \
635
 
                show.cc \
636
 
                sql_alloc.cc \
637
 
                sql_base.cc \
638
 
                sql_delete.cc \
639
 
                sql_derived.cc \
640
 
                sql_error.cc \
641
 
                sql_insert.cc \
642
 
                sql_lex.cc \
643
 
                sql_list.cc \
644
 
                sql_load.cc \
645
 
                sql_locale.cc \
646
 
                sql_parse.cc \
647
 
                sql_select.cc \
648
 
                sql_state.cc \
649
 
                sql_string.cc \
650
 
                sql_table.cc \
651
 
                sql_union.cc \
652
 
                sql_update.cc \
653
 
                sql_yacc.yy \
654
 
                stacktrace.cc \
655
 
                statement/alter_schema.cc \
656
 
                statement/alter_table.cc \
657
 
                statement/analyze.cc \
658
 
                statement/change_schema.cc \
659
 
                statement/check.cc \
660
 
                statement/checksum.cc \
661
 
                statement/commit.cc \
662
 
                statement/create_index.cc \
663
 
                statement/create_schema.cc \
664
 
                statement/create_table.cc \
665
 
                statement/delete.cc \
666
 
                statement/drop_index.cc \
667
 
                statement/drop_schema.cc \
668
 
                statement/drop_table.cc \
669
 
                statement/empty_query.cc \
670
 
                statement/flush.cc \
671
 
                statement/insert.cc \
672
 
                statement/insert_select.cc \
673
 
                statement/kill.cc \
674
 
                statement/load.cc \
675
 
                statement/release_savepoint.cc \
676
 
                statement/rename_table.cc \
677
 
                statement/replace.cc \
678
 
                statement/replace_select.cc \
679
 
                statement/rollback.cc \
680
 
                statement/rollback_to_savepoint.cc \
681
 
                statement/savepoint.cc \
682
 
                statement/select.cc \
683
 
                statement/set_option.cc \
684
 
                statement/show_create.cc \
685
 
                statement/show_create_schema.cc \
686
 
                statement/show_engine_status.cc \
687
 
                statement/show_errors.cc \
688
 
                statement/show_processlist.cc \
689
 
                statement/show_status.cc \
690
 
                statement/show_warnings.cc \
691
 
                statement/start_transaction.cc \
692
 
                statement/truncate.cc \
693
 
                statement/unlock_tables.cc \
694
 
                statement/update.cc \
695
 
                strfunc.cc \
696
 
                table.cc \
697
 
                table_identifier.cc \
698
 
                table_list.cc \
699
 
                table_map_iterator.cc \
700
 
                table_share.cc \
701
 
                temporal.cc \
702
 
                temporal_format.cc \
703
 
                temporal_interval.cc \
704
 
                time.cc \
705
 
                tztime.cc \
706
 
                uniques.cc \
707
 
                user_var_entry.cc \
708
 
                util/convert.cc \
709
 
                xid.cc
710
 
 
711
 
libserialutil_la_SOURCES = db.cc table_proto_write.cc
712
 
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
713
 
 
714
 
libhandler_la_SOURCES = cursor.cc plugin/storage_engine.cc
715
 
 
716
 
AM_YFLAGS = -p DRIZZLE -d --verbose
717
 
 
718
 
 
719
 
if BUILD_GCC_PCH
720
 
PCHHEADERS = \
721
 
                definitions.h.gch \
722
 
                plugin/storage_engine.h.gch  \
723
 
                sql_base.h.gch \
724
 
                sql_parse.h.gch \
725
 
                util/convert.h.gch \
726
 
                util/test.h.gch
727
 
else
728
 
PCHHEADERS = 
 
146
                   sql_db.cc \
 
147
                   sql_lex.cc \
 
148
                   authentication.cc \
 
149
                   sql_handler.cc \
 
150
                   item.cc \
 
151
                   item_sum.cc \
 
152
                   item_buff.cc \
 
153
                   item_func.cc \
 
154
                   item_cmpfunc.cc \
 
155
                   item_strfunc.cc \
 
156
                   item_timefunc.cc \
 
157
                   thr_malloc.cc \
 
158
                   item_create.cc \
 
159
                   item_subselect.cc \
 
160
                   item_row.cc \
 
161
                   field.cc \
 
162
                   strfunc.cc \
 
163
                   key.cc \
 
164
                   sql_class.cc \
 
165
                   sql_list.cc \
 
166
                   protocol.cc \
 
167
                   sql_state.c \
 
168
                   lock.cc \
 
169
                   sql_string.cc \
 
170
                   sql_map.cc \
 
171
                   drizzled.cc \
 
172
                   sql_connect.cc \
 
173
                   scheduler.cc \
 
174
                   sql_parse.cc \
 
175
                   set_var.cc \
 
176
                   sql_yacc.yy \
 
177
                   sql_base.cc \
 
178
                   table.cc \
 
179
                   sql_select.cc \
 
180
                   sql_insert.cc \
 
181
                   sql_error.cc \
 
182
                   sql_locale.cc \
 
183
                   sql_update.cc \
 
184
                   sql_delete.cc \
 
185
                   uniques.cc \
 
186
                   log.cc \
 
187
                   init.cc \
 
188
                   derror.cc \
 
189
                   unireg.cc \
 
190
                   log_event.cc \
 
191
                   rpl_record.cc \
 
192
                   discover.cc \
 
193
                   time.cc \
 
194
                   opt_range.cc \
 
195
                   opt_sum.cc \
 
196
                   records.cc \
 
197
                   filesort.cc \
 
198
                   sql_table.cc \
 
199
                   sql_rename.cc \
 
200
                   sql_load.cc \
 
201
                   mf_iocache.cc \
 
202
                   field_conv.cc \
 
203
                   sql_show.cc \
 
204
                   sql_udf.cc \
 
205
                   slave.cc \
 
206
                   sql_repl.cc \
 
207
                   rpl_filter.cc \
 
208
                   rpl_tblmap.cc \
 
209
                   rpl_utility.cc \
 
210
                   rpl_rli.cc \
 
211
                   rpl_mi.cc \
 
212
                   rpl_reporting.cc \
 
213
                   sql_union.cc \
 
214
                   sql_derived.cc \
 
215
                   sql_client.cc \
 
216
                   stacktrace.c \
 
217
                   repl_failsafe.h \
 
218
                   repl_failsafe.cc \
 
219
                   sql_olap.cc \
 
220
                   tztime.cc \
 
221
                   my_decimal.cc\
 
222
                   sql_plugin.cc \
 
223
                   sql_binlog.cc \
 
224
                   tmp_table.cc \
 
225
                   sj_tmp_table.cc \
 
226
                   sql_builtin.cc 
 
227
 
 
228
libhandler_la_SOURCES = handler.cc
 
229
 
 
230
if HAVE_DTRACE
 
231
drizzled_SOURCES += probes.d
729
232
endif
730
233
 
 
234
gen_lex_hash_SOURCES =gen_lex_hash.cc
 
235
 
 
236
gen_lex_hash_LDFLAGS =  
 
237
 
 
238
DEFS =-DDRIZZLE_SERVER \
 
239
      -DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \
 
240
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
 
241
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
 
242
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
 
243
      -DLOCALEDIR=\"$(localedir)\" \
 
244
      @DEFS@
 
245
 
731
246
BUILT_MAINT_SRC = sql_yacc.cc \
732
247
                  sql_yacc.h
733
248
 
734
249
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
735
 
                symbol_hash.h \
736
 
                function_hash.h \
737
 
                $(PCHHEADERS) 
738
 
 
739
 
EXTRA_DIST = \
740
 
                $(BUILT_MAINT_SRC) \
741
 
                symbol_hash.gperf \
742
 
                function_hash.gperf \
743
 
                message.mc \
744
 
                probes.d
745
 
 
746
 
CLEANFILES = \
747
 
                configmake.h \
748
 
                function_hash.h \
749
 
                function_hash.stamp-h \
750
 
                sql_yacc.output \
751
 
                symbol_hash.h \
752
 
                symbol_hash.stamp-h \
753
 
                $(PCHHEADERS) \
754
 
                $(nodist_drizzled_SOURCES)
755
 
 
756
 
if DTRACE_NEEDS_OBJECTS
757
 
drizzled_SOURCES += probes.d
758
 
endif
759
 
 
760
 
if HAVE_DTRACE
761
 
BUILT_SOURCES += generated_probes.h
762
 
CLEANFILES += generated_probes.h
763
 
endif
764
 
 
 
250
                lex_hash.h \
 
251
                version.h
 
252
 
 
253
EXTRA_DIST = $(BUILT_MAINT_SRC) \
 
254
             drizzledumpslow \
 
255
             message.mc \
 
256
             probes.d
 
257
 
 
258
CLEANFILES = lex_hash.h \
 
259
             sql_yacc.output \
 
260
             $(nodist_drizzled_SOURCES)
765
261
 
766
262
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
767
263
                 $(BUILT_MAINT_SRC)
768
264
 
769
265
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
770
266
 
771
 
generated_probes.h : probes.d
772
 
        $(DTRACE) $(DTRACEFLAGS) -h -s probes.d -o generated_probes.h
773
 
        mv generated_probes.h generated_probes.h.bak
774
 
        sed "s/#include <unistd.h>//g" generated_probes.h.bak > generated_probes.h
775
 
        rm generated_probes.h.bak
776
 
        sed -e 's,void \*,const void \*,g' generated_probes.h | \
777
 
                sed -e 's,char \*,const char \*,g' | tr '\t' ' ' > dtrace_probes.tmp
778
 
        mv dtrace_probes.tmp generated_probes.h
779
 
 
780
 
 
781
 
SUFFIXES = .d .gch .gperf .stamp-h
782
 
 
783
 
if BUILD_GCC_PCH
784
 
.h.gch:
785
 
        $(CXXCOMPILE) -include config.h ${NO_UNUSED_MACROS} -c $<
786
 
endif
 
267
AM_YFLAGS = -d --verbose
 
268
 
 
269
 
 
270
# These files should not be included in distributions since they are
 
271
# generated by configure from the .h.in files
 
272
dist-hook:
 
273
        $(RM) -f $(distdir)/drizzle_version.h 
 
274
 
 
275
# This generates lex_hash.h
 
276
# NOTE Built sources should depend on their sources not the tool
 
277
# this avoid the rebuild of the built files in a source dist
 
278
lex_hash.h: gen_lex_hash$(EXEEXT) \
 
279
        $(srcdir)/lex.h
 
280
        $(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
 
281
 
 
282
probes.h: probes.d
 
283
        $(DTRACE) $(DTRACEFLAGS) -h -s probes.d
 
284
        mv probes.h probes.h.bak
 
285
        sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
 
286
        rm probes.h.bak
 
287
 
 
288
SUFFIXES = .d
787
289
 
788
290
.d.o : $(DTRACEFILES)
789
291
        $(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
790
 
 
791
 
function_hash.h: function_hash.stamp-h
792
 
symbol_hash.h: symbol_hash.stamp-h
793
 
 
794
 
.gperf.stamp-h:
795
 
        $(GPERF) -D --initializer-suffix=,0 --struct-type --enum \
796
 
                --omit-struct-type --readonly-tables --language=C++ \
797
 
                --class-name=$* $<  > $@
798
 
        @if ! test $$? ; then rm $@ ; fi
799
 
        @if test -f $@ ; then \
800
 
                if ! diff $@ \
801
 
                           ${top_builddir}/drizzled/$*.h >/dev/null 2>&1 ; \
802
 
                then \
803
 
                        cp $@ ${top_builddir}/drizzled/$*.h ; \
804
 
                fi \
805
 
        fi
806