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
17
sbin_PROGRAMS= drizzled
19
DTRACEFILES = cursor.o \
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)
20
MYSQLSHAREdir =$(pkgdatadir)
22
MYSQLBASEdir=$(prefix)
24
MYSQLLIBdir= $(pkglibdir)
26
pkgplugindir =$(pkglibdir)/plugin
28
SUBDIRS = field serialize . share
30
sbin_PROGRAMS =drizzled
32
EXTRA_PROGRAMS =gen_lex_hash
36
bin_SCRIPTS = drizzledumpslow \
39
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS}
43
DTRACEFLAGS = @DTRACEFLAGS@
45
DTRACEFILES = handler.o \
30
statement/insert_select.o
32
52
drizzledincludedir = ${includedir}/drizzled
33
nobase_dist_drizzledinclude_HEADERS = \
38
atomic/pthread_traits.h \
44
check_stack_overrun.h \
57
enum_nested_loop_state.h \
79
function/additive_op.h \
80
function/coercibility.h \
82
function/find_in_set.h \
83
function/found_rows.h \
85
function/get_system_var.h \
86
function/get_user_var.h \
87
function/last_insert.h \
90
function/math/acos.h \
91
function/math/asin.h \
92
function/math/atan.h \
93
function/math/ceiling.h \
96
function/math/decimal_typecast.h \
97
function/math/divide.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 \
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 \
122
function/numhybrid.h \
123
function/rollup_const.h \
124
function/row_count.h \
125
function/set_user_var.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 \
137
function/str/export_set.h \
138
function/str/format.h \
140
function/str/insert.h \
141
function/str/left.h \
142
function/str/load_file.h \
143
function/str/make_set.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 \
187
function/unsigned.h \
188
function/user_var_as_out_param.h \
195
hybrid_type_traits.h \
196
hybrid_type_traits_decimal.h \
197
hybrid_type_traits_integer.h \
199
internal_error_handler.h \
201
item/basic_constant.h \
205
item/cache_decimal.h \
214
item/default_value.h \
216
item/empty_string.h \
222
item/insert_value.h \
224
item/int_with_ref.h \
229
item/ref_null_helper.h \
230
item/return_date_time.h \
251
memory/multi_malloc.h \
255
name_resolution_context.h \
256
name_resolution_context_state.h \
257
natural_join_column.h \
259
open_tables_state.h \
261
optimizer/key_field.h \
262
optimizer/key_use.h \
263
optimizer/position.h \
264
optimizer/sargable_param.h \
267
plugin/authentication.h \
269
plugin/error_message.h \
271
plugin/info_schema_table.h \
274
plugin/listen_tcp.h \
278
plugin/null_client.h \
280
plugin/query_cache.h \
283
plugin/storage_engine.h \
284
plugin/transaction_applier.h \
285
plugin/transaction_reader.h \
286
plugin/transaction_replicator.h \
289
replication_services.h \
294
select_exists_subselect.h \
297
select_max_min_finder_subselect.h \
299
select_result_interceptor.h \
301
select_singlerow_subselect.h \
326
statement/alter_schema.h \
327
statement/alter_table.h \
328
statement/analyze.h \
329
statement/change_schema.h \
331
statement/checksum.h \
333
statement/create_index.h \
334
statement/create_schema.h \
335
statement/create_table.h \
337
statement/drop_index.h \
338
statement/drop_schema.h \
339
statement/drop_table.h \
340
statement/empty_query.h \
343
statement/insert_select.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 \
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 \
373
table_map_iterator.h \
379
temporal_interval.h \
392
noinst_LTLIBRARIES = \
396
LDADD = $(top_builddir)/mysys/libmysys.la \
53
dist_drizzledinclude_HEADERS = error.h \
55
plugin_authentication.h
57
noinst_LTLIBRARIES = libhandler.la
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}
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)
409
drizzled_LDFLAGS = -export-dynamic
63
$(ZLIB_LIBS) $(LIBINTL)
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 \
74
$(LIBDL_LIBS) $(LIBEVENT_LIBS)
76
noinst_HEADERS = item.h \
142
drizzled_error_messages.h \
420
145
drizzled_SOURCES = \
424
check_stack_overrun.cc \
428
diagnostics_area.cc \
453
function/additive_op.cc \
454
function/check_reserved_words.cc \
455
function/coercibility.cc \
457
function/find_in_set.cc \
458
function/found_rows.cc \
460
function/get_system_var.cc \
461
function/get_user_var.cc \
462
function/last_insert.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 \
496
function/numhybrid.cc \
497
function/row_count.cc \
498
function/set_user_var.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 \
560
function/unsigned.cc \
561
function/user_var_as_out_param.cc \
564
hybrid_type_traits.cc \
565
hybrid_type_traits_decimal.cc \
566
hybrid_type_traits_integer.cc \
571
item/cache_decimal.cc \
577
item/copy_string.cc \
580
item/default_value.cc \
582
item/empty_string.cc \
587
item/insert_value.cc \
589
item/int_with_ref.cc \
594
item/ref_null_helper.cc \
599
item/type_holder.cc \
608
memory/multi_malloc.cc \
610
name_resolution_context_state.cc \
611
natural_join_column.cc \
614
optimizer/key_field.cc \
615
plugin/authentication.cc \
617
plugin/error_message.cc \
619
plugin/info_schema_table.cc \
621
plugin/listen_tcp.cc \
625
plugin/query_cache.cc \
627
plugin/scheduler.cc \
628
plugin/transaction_applier.cc \
629
plugin/transaction_replicator.cc \
632
replication_services.cc \
655
statement/alter_schema.cc \
656
statement/alter_table.cc \
657
statement/analyze.cc \
658
statement/change_schema.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 \
671
statement/insert.cc \
672
statement/insert_select.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 \
697
table_identifier.cc \
699
table_map_iterator.cc \
703
temporal_interval.cc \
711
libserialutil_la_SOURCES = db.cc table_proto_write.cc
712
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
714
libhandler_la_SOURCES = cursor.cc plugin/storage_engine.cc
716
AM_YFLAGS = -p DRIZZLE -d --verbose
722
plugin/storage_engine.h.gch \
228
libhandler_la_SOURCES = handler.cc
231
drizzled_SOURCES += probes.d
234
gen_lex_hash_SOURCES =gen_lex_hash.cc
236
gen_lex_hash_LDFLAGS =
238
DEFS =-DDRIZZLE_SERVER \
239
-DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \
240
-DDATADIR="\"$(MYSQLDATAdir)\"" \
241
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
242
-DPLUGINDIR="\"$(pkgplugindir)\"" \
243
-DLOCALEDIR=\"$(localedir)\" \
731
246
BUILT_MAINT_SRC = sql_yacc.cc \
734
249
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
742
function_hash.gperf \
749
function_hash.stamp-h \
752
symbol_hash.stamp-h \
754
$(nodist_drizzled_SOURCES)
756
if DTRACE_NEEDS_OBJECTS
757
drizzled_SOURCES += probes.d
761
BUILT_SOURCES += generated_probes.h
762
CLEANFILES += generated_probes.h
253
EXTRA_DIST = $(BUILT_MAINT_SRC) \
258
CLEANFILES = lex_hash.h \
260
$(nodist_drizzled_SOURCES)
766
262
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
767
263
$(BUILT_MAINT_SRC)
769
265
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
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
781
SUFFIXES = .d .gch .gperf .stamp-h
785
$(CXXCOMPILE) -include config.h ${NO_UNUSED_MACROS} -c $<
267
AM_YFLAGS = -d --verbose
270
# These files should not be included in distributions since they are
271
# generated by configure from the .h.in files
273
$(RM) -f $(distdir)/drizzle_version.h
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) \
280
$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
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
788
290
.d.o : $(DTRACEFILES)
789
291
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
791
function_hash.h: function_hash.stamp-h
792
symbol_hash.h: symbol_hash.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 \
801
${top_builddir}/drizzled/$*.h >/dev/null 2>&1 ; \
803
cp $@ ${top_builddir}/drizzled/$*.h ; \