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@
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
45
19
DTRACEFILES = handler.o \
52
26
drizzledincludedir = ${includedir}/drizzled
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 \
27
nobase_dist_drizzledinclude_HEADERS = \
31
atomic/pthread_traits.h \
38
check_stack_overrun.h \
52
enum_nested_loop_state.h \
76
function/additive_op.h \
78
function/benchmark.h \
79
function/char_length.h \
80
function/coercibility.h \
81
function/connection_id.h \
84
function/find_in_set.h \
85
function/found_rows.h \
87
function/get_system_var.h \
88
function/get_user_var.h \
89
function/last_insert.h \
93
function/math/acos.h \
94
function/math/asin.h \
95
function/math/atan.h \
96
function/math/ceiling.h \
99
function/math/decimal_typecast.h \
100
function/math/divide.h \
101
function/math/exp.h \
102
function/math/floor.h \
103
function/math/int.h \
104
function/math/int_divide.h \
105
function/math/int_val.h \
106
function/math/integer.h \
108
function/math/log.h \
109
function/math/minus.h \
110
function/math/mod.h \
111
function/math/multiply.h \
112
function/math/neg.h \
113
function/math/ord.h \
114
function/math/plus.h \
115
function/math/pow.h \
116
function/math/rand.h \
117
function/math/real.h \
118
function/math/round.h \
119
function/math/sin.h \
120
function/math/sqrt.h \
121
function/math/tan.h \
125
function/numhybrid.h \
126
function/rollup_const.h \
127
function/row_count.h \
128
function/set_user_var.h \
131
function/str/alloc_buffer.h \
132
function/str/binary.h \
133
function/str/char.h \
134
function/str/collation.h \
135
function/str/concat.h \
136
function/str/conv.h \
137
function/str/conv_charset.h \
138
function/str/database.h \
140
function/str/export_set.h \
141
function/str/format.h \
143
function/str/insert.h \
144
function/str/left.h \
145
function/str/load_file.h \
146
function/str/make_set.h \
148
function/str/quote.h \
149
function/str/repeat.h \
150
function/str/replace.h \
151
function/str/reverse.h \
152
function/str/right.h \
153
function/str/set_collation.h \
154
function/str/str_conv.h \
155
function/str/strfunc.h \
156
function/str/substr.h \
157
function/str/trim.h \
158
function/str/user.h \
159
function/str/uuid.h \
160
function/str/weight_string.h \
161
function/time/curdate.h \
162
function/time/date.h \
163
function/time/date_add_interval.h \
164
function/time/date_format.h \
165
function/time/dayname.h \
166
function/time/dayofmonth.h \
167
function/time/dayofyear.h \
168
function/time/extract.h \
169
function/time/from_days.h \
170
function/time/from_unixtime.h \
171
function/time/get_interval_value.h \
172
function/time/hour.h \
173
function/time/last_day.h \
174
function/time/makedate.h \
175
function/time/microsecond.h \
176
function/time/minute.h \
177
function/time/month.h \
178
function/time/now.h \
179
function/time/period_add.h \
180
function/time/period_diff.h \
181
function/time/quarter.h \
182
function/time/second.h \
183
function/time/sysdate_local.h \
184
function/time/timestamp_diff.h \
185
function/time/to_days.h \
186
function/time/typecast.h \
187
function/time/unix_timestamp.h \
188
function/time/weekday.h \
189
function/time/year.h \
191
function/unsigned.h \
192
function/user_var_as_out_param.h \
199
hybrid_type_traits.h \
200
hybrid_type_traits_decimal.h \
201
hybrid_type_traits_integer.h \
204
internal_error_handler.h \
206
item/basic_constant.h \
210
item/cache_decimal.h \
219
item/default_value.h \
221
item/empty_string.h \
227
item/insert_value.h \
229
item/int_with_ref.h \
235
item/ref_null_helper.h \
236
item/return_date_time.h \
263
name_resolution_context.h \
264
name_resolution_context_state.h \
265
natural_join_column.h \
267
open_tables_state.h \
273
plugin/authentication.h \
274
plugin/error_message_handler.h \
276
plugin/logging_handler.h \
279
plugin/replicator.h \
281
plugin/storage_engine.h \
287
transaction_services.h \
293
select_exists_subselect.h \
296
select_max_min_finder_subselect.h \
298
select_result_interceptor.h \
300
select_singlerow_subselect.h \
333
table_map_iterator.h \
350
noinst_LTLIBRARIES = \
354
LDADD = $(top_builddir)/mysys/libmysys.la \
62
355
$(top_builddir)/mystrings/libmystrings.la \
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 \
140
drizzled_error_messages.h \
356
$(LTLIBDRIZZLE) $(LIBZ) $(LIBINTL) ${LIBC_P}
358
drizzled_LDADD = ${noinst_LTLIBRARIES} \
359
$(top_builddir)/drizzled/message/libdrizzledmessage.la \
360
$(drizzled_plugin_libs) \
361
$(LDADD) $(LIBUUID) ${top_builddir}/gnulib/libgnu.la \
362
$(LIBDL_LIBS) $(LIBPROTOBUF) $(LIBPCRE) $(LIBTBB) \
363
$(DRIZZLED_PLUGIN_DEP_LIBS)
364
drizzled_DEPENDENCIES= ${noinst_LTLIBRARIES} $(drizzled_plugin_libs)
143
376
drizzled_SOURCES = \
224
libhandler_la_SOURCES = handler.cc
380
check_stack_overrun.cc \
384
diagnostics_area.cc \
410
function/additive_op.cc \
411
function/benchmark.cc \
412
function/char_length.cc \
413
function/check_reserved_words.cc \
414
function/connection_id.cc \
415
function/coercibility.cc \
417
function/find_in_set.cc \
418
function/found_rows.cc \
420
function/get_system_var.cc \
421
function/get_user_var.cc \
422
function/last_insert.cc \
425
function/min_max.cc \
427
function/numhybrid.cc \
429
function/row_count.cc \
430
function/set_user_var.cc \
434
function/unsigned.cc \
435
function/user_var_as_out_param.cc \
436
function/math/abs.cc \
437
function/math/acos.cc \
438
function/math/asin.cc \
439
function/math/atan.cc \
440
function/math/ceiling.cc \
441
function/math/cos.cc \
442
function/math/decimal_typecast.cc \
443
function/math/divide.cc \
444
function/math/exp.cc \
445
function/math/floor.cc \
446
function/math/int_divide.cc \
447
function/math/integer.cc \
448
function/math/int.cc \
449
function/math/int_val.cc \
450
function/math/ln.cc \
451
function/math/log.cc \
452
function/math/minus.cc \
453
function/math/mod.cc \
454
function/math/multiply.cc \
455
function/math/neg.cc \
456
function/math/ord.cc \
457
function/math/plus.cc \
458
function/math/pow.cc \
459
function/math/rand.cc \
460
function/math/real.cc \
461
function/math/round.cc \
462
function/math/sin.cc \
463
function/math/sqrt.cc \
464
function/math/tan.cc \
465
function/str/alloc_buffer.cc \
466
function/str/binary.cc \
467
function/str/char.cc \
468
function/str/collation.cc \
469
function/str/concat.cc \
470
function/str/conv.cc \
471
function/str/conv_charset.cc \
472
function/str/database.cc \
473
function/str/elt.cc \
474
function/str/export_set.cc \
475
function/str/format.cc \
476
function/str/hex.cc \
477
function/str/insert.cc \
478
function/str/left.cc \
479
function/str/load_file.cc \
480
function/str/make_set.cc \
481
function/str/pad.cc \
482
function/str/quote.cc \
483
function/str/repeat.cc \
484
function/str/replace.cc \
485
function/str/reverse.cc \
486
function/str/right.cc \
487
function/str/set_collation.cc \
488
function/str/str_conv.cc \
489
function/str/strfunc.cc \
490
function/str/substr.cc \
491
function/str/trim.cc \
492
function/str/user.cc \
493
function/str/uuid.cc \
494
function/str/weight_string.cc \
495
function/time/curdate.cc \
496
function/time/date.cc \
497
function/time/date_add_interval.cc \
498
function/time/date_format.cc \
499
function/time/dayname.cc \
500
function/time/dayofmonth.cc \
501
function/time/extract.cc \
502
function/time/dayofyear.cc \
503
function/time/from_days.cc \
504
function/time/from_unixtime.cc \
505
function/time/get_interval_value.cc \
506
function/time/hour.cc \
507
function/time/last_day.cc \
508
function/time/makedate.cc \
509
function/time/microsecond.cc \
510
function/time/minute.cc \
511
function/time/month.cc \
512
function/time/now.cc \
513
function/time/quarter.cc \
514
function/time/period_add.cc \
515
function/time/period_diff.cc \
516
function/time/second.cc \
517
function/time/sysdate_local.cc \
518
function/time/timestamp_diff.cc \
519
function/time/to_days.cc \
520
function/time/typecast.cc \
521
function/time/unix_timestamp.cc \
522
function/time/weekday.cc \
523
function/time/year.cc \
525
hybrid_type_traits.cc \
526
hybrid_type_traits_decimal.cc \
527
hybrid_type_traits_integer.cc \
531
item/cache_decimal.cc \
537
item/copy_string.cc \
540
item/default_value.cc \
542
item/empty_string.cc \
546
item/insert_value.cc \
547
item/int_with_ref.cc \
555
item/ref_null_helper.cc \
560
item/type_holder.cc \
573
name_resolution_context_state.cc \
574
natural_join_column.cc \
611
table_map_iterator.cc \
616
transaction_services.cc \
227
624
drizzled_SOURCES += probes.d
230
gen_lex_hash_SOURCES =gen_lex_hash.cc
232
gen_lex_hash_LDFLAGS =
234
DEFS =-DDRIZZLE_SERVER \
235
-DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \
236
-DDATADIR="\"$(MYSQLDATAdir)\"" \
237
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
238
-DPLUGINDIR="\"$(pkgplugindir)\"" \
239
-DLOCALEDIR=\"$(localedir)\" \
627
libserialutil_la_SOURCES = db.cc table_proto_write.cc
628
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
630
libhandler_la_SOURCES = handler.cc plugin/storage_engine.cc
632
AM_YFLAGS = -p DRIZZLE -d --verbose
638
plugin/storage_engine.h.gch \
242
648
BUILT_MAINT_SRC = sql_yacc.cc \
245
651
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
249
EXTRA_DIST = $(BUILT_MAINT_SRC) \
254
CLEANFILES = lex_hash.h \
256
$(nodist_drizzled_SOURCES)
659
function_hash.gperf \
666
function_hash.stamp-h \
669
symbol_hash.stamp-h \
671
$(nodist_drizzled_SOURCES)
258
673
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
259
674
$(BUILT_MAINT_SRC)
261
676
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
263
AM_YFLAGS = -d --verbose
266
# These files should not be included in distributions since they are
267
# generated by configure from the .h.in files
269
$(RM) -f $(distdir)/drizzle_version.h
271
# This generates lex_hash.h
272
# NOTE Built sources should depend on their sources not the tool
273
# this avoid the rebuild of the built files in a source dist
274
lex_hash.h: gen_lex_hash$(EXEEXT) \
276
$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
278
678
probes.h: probes.d
279
679
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
280
680
mv probes.h probes.h.bak
281
681
sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
685
SUFFIXES = .d .gch .gperf .stamp-h
689
$(CXXCOMPILE) -include config.h ${NO_UNUSED_MACROS} -c $<
286
692
.d.o : $(DTRACEFILES)
287
693
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
695
function_hash.h: function_hash.stamp-h
696
symbol_hash.h: symbol_hash.stamp-h
699
$(GPERF) --initializer-suffix=,0 --struct-type --enum \
700
--omit-struct-type --readonly-tables --language=C++ \
701
--class-name=$* $< > $@
702
@if ! test $$? ; then rm $@ ; fi
703
@if test -f $@ ; then \
705
${top_builddir}/drizzled/$*.h >/dev/null 2>&1 ; \
707
cp $@ ${top_builddir}/drizzled/$*.h ; \