~drizzle-trunk/drizzle/development

492.1.7 by Monty Taylor
Moved test() to its own file.
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
1 by brian
clean slate
15
187 by Brian Aker
Fixed tab issue
16
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
17
sbin_PROGRAMS= drizzled
18
202.1.6 by Monty Taylor
Added Makefile.am to server/field and build as libtool noinst lib.
19
bin_SCRIPTS = 	drizzledumpslow \
20
		drizzled_safe 
187 by Brian Aker
Fixed tab issue
21
22
DTRACEFILES = handler.o \
23
	      filesort.o \
539 by Monty Taylor
Sorted file lists for headers and sources.
24
	      sql_delete.o \
187 by Brian Aker
Fixed tab issue
25
	      sql_insert.o \
26
	      sql_select.o \
27
	      sql_update.o
28
236.1.38 by Monty Taylor
Fixed header install problem. The now install to the right places.
29
drizzledincludedir = ${includedir}/drizzled
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
30
nobase_dist_drizzledinclude_HEADERS = \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
31
		alter_column.h \
32
		alter_drop.h \
910.5.2 by Monty Taylor
Applied atomic patch to current tree.
33
		atomic/gcc_traits.h \
34
		atomic/pthread_traits.h \
35
		atomic/sun_studio.h \
36
		atomics.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
37
		authentication.h \
38
		base.h \
584.4.10 by Monty Taylor
Broke out cached_item.
39
		cached_item.h \
813.1.2 by Jay Pipes
First function cleanup for temporal handling: YEAR()
40
		calendar.h \
670.2.4 by Monty Taylor
Removed more stuff from the headers.
41
		check_stack_overrun.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
42
		common.h \
584.4.7 by Monty Taylor
Removed a big bank of includes from item.h.
43
		comp_creator.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
44
		connect.h \
575.1.3 by Monty Taylor
Moved some stuff out of handler.h.
45
		cost_vect.h \
840.1.7 by Monty Taylor
Merged trunk
46
		current_session.h \
520.6.7 by Monty Taylor
Moved a bunch of crap out of common_includes.
47
		data_home.h \
575.4.6 by Monty Taylor
Removed my_getwd.
48
		db.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
49
		definitions.h \
840.1.7 by Monty Taylor
Merged trunk
50
		diagnostics_area.h \
844 by Brian Aker
Added drizzled/discrete_interval.h
51
		discrete_interval.h \
584.4.1 by Monty Taylor
Split out DTCollation.
52
		dtcollation.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
53
		errmsg.h \
840.1.7 by Monty Taylor
Merged trunk
54
		errmsg_print.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
55
		error.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
56
		error_injection.h \
57
		field.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
58
		field/blob.h \
59
		field/date.h \
60
		field/datetime.h \
61
		field/decimal.h \
62
		field/double.h \
840.1.7 by Monty Taylor
Merged trunk
63
		field/enum.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
64
		field/int64_t.h \
65
		field/long.h \
66
		field/longstr.h \
67
		field/null.h \
68
		field/num.h \
69
		field/real.h \
70
		field/str.h \
71
		field/timestamp.h \
72
		field/varstring.h \
840.1.7 by Monty Taylor
Merged trunk
73
		field_iterator.h \
831.1.3 by Brian Aker
Moved over file_exchange class.
74
		file_exchange.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
75
		filesort_info.h \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
76
		foreign_key.h \
840.1.7 by Monty Taylor
Merged trunk
77
		function/additive_op.h \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
78
		function/ascii.h \
79
		function/benchmark.h \
80
		function/bit.h \
81
		function/bit_count.h \
82
		function/bit_length.h \
83
		function/char_length.h \
84
		function/coercibility.h \
85
		function/connection_id.h \
942.1.12 by Monty Taylor
Converted udf_func into a factory.
86
		function/create.h \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
87
		function/field.h \
88
		function/find_in_set.h \
89
		function/found_rows.h \
90
		function/func.h \
91
		function/get_system_var.h \
92
		function/get_user_var.h \
93
		function/last_insert.h \
94
		function/length.h \
95
		function/locate.h \
642.1.30 by Lee
move math functions to drizzled/function/math directory
96
		function/math/abs.h \
97
		function/math/acos.h \
98
		function/math/asin.h \
99
		function/math/atan.h \
100
		function/math/ceiling.h \
101
		function/math/cos.h \
102
		function/math/dec.h \
103
		function/math/decimal_typecast.h \
104
		function/math/divide.h \
105
		function/math/exp.h \
106
		function/math/floor.h \
840.1.7 by Monty Taylor
Merged trunk
107
		function/math/int.h \
642.1.35 by Lee
merge with latest from the trunk
108
		function/math/int_divide.h \
840.1.7 by Monty Taylor
Merged trunk
109
		function/math/int_val.h \
642.1.30 by Lee
move math functions to drizzled/function/math directory
110
		function/math/integer.h \
111
		function/math/ln.h \
112
		function/math/log.h \
113
		function/math/minus.h \
114
		function/math/mod.h \
115
		function/math/multiply.h \
116
		function/math/neg.h \
117
		function/math/ord.h \
118
		function/math/plus.h \
119
		function/math/pow.h \
120
		function/math/rand.h \
121
		function/math/real.h \
122
		function/math/round.h \
123
		function/math/sin.h \
124
		function/math/sqrt.h \
125
		function/math/tan.h \
840.1.7 by Monty Taylor
Merged trunk
126
		function/min_max.h \
127
		function/num1.h \
128
		function/num_op.h \
129
		function/numhybrid.h \
130
		function/rollup_const.h \
131
		function/row_count.h \
132
		function/set_user_var.h \
133
		function/sign.h \
134
		function/signed.h \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
135
		function/str/alloc_buffer.h \
136
		function/str/binary.h \
137
		function/str/char.h \
138
		function/str/charset.h \
139
		function/str/collation.h \
140
		function/str/concat.h \
141
		function/str/conv.h \
142
		function/str/conv_charset.h \
143
		function/str/database.h \
144
		function/str/elt.h \
145
		function/str/export_set.h \
146
		function/str/format.h \
147
		function/str/hex.h \
148
		function/str/insert.h \
149
		function/str/left.h \
150
		function/str/load_file.h \
151
		function/str/make_set.h \
152
		function/str/pad.h \
153
		function/str/quote.h \
154
		function/str/repeat.h \
155
		function/str/replace.h \
156
		function/str/reverse.h \
157
		function/str/right.h \
158
		function/str/set_collation.h \
159
		function/str/str_conv.h \
160
		function/str/strfunc.h \
161
		function/str/substr.h \
162
		function/str/sysconst.h \
163
		function/str/trim.h \
164
		function/str/user.h \
165
		function/str/uuid.h \
722.1.10 by Monty Taylor
Fixed a distcheck bug.
166
		function/str/weight_string.h \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
167
		function/time/curdate.h \
168
		function/time/date.h \
169
		function/time/date_add_interval.h \
170
		function/time/date_format.h \
171
		function/time/dayname.h \
172
		function/time/dayofmonth.h \
173
		function/time/dayofyear.h \
174
		function/time/extract.h \
175
		function/time/from_days.h \
176
		function/time/from_unixtime.h \
177
		function/time/get_interval_value.h \
178
		function/time/hour.h \
179
		function/time/last_day.h \
180
		function/time/makedate.h \
181
		function/time/microsecond.h \
182
		function/time/minute.h \
183
		function/time/month.h \
184
		function/time/now.h \
185
		function/time/period_add.h \
186
		function/time/period_diff.h \
840.1.7 by Monty Taylor
Merged trunk
187
		function/time/quarter.h \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
188
		function/time/second.h \
189
		function/time/sysdate_local.h \
190
		function/time/timestamp_diff.h \
191
		function/time/to_days.h \
192
		function/time/typecast.h \
193
		function/time/unix_timestamp.h \
194
		function/time/weekday.h \
195
		function/time/year.h  \
840.1.7 by Monty Taylor
Merged trunk
196
		function/units.h \
197
		function/unsigned.h \
198
		function/update_hash.h \
199
		function/user_var_as_out_param.h \
200
		function_hash.h \
201
		ha_statistics.h \
575.1.3 by Monty Taylor
Moved some stuff out of handler.h.
202
		ha_trx_info.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
203
		handler.h \
840.1.7 by Monty Taylor
Merged trunk
204
		handler_structs.h \
584.4.2 by Monty Taylor
Split out hybrid_type_traits.
205
		hybrid_type.h \
206
		hybrid_type_traits.h \
207
		hybrid_type_traits_decimal.h \
208
		hybrid_type_traits_integer.h \
934.2.1 by Jay Pipes
Split index hints out into their own file, removal from sql_lex.h and sql_select.cc
209
		index_hint.h \
840.1.7 by Monty Taylor
Merged trunk
210
		internal_error_handler.h \
211
		item.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
212
		item/basic_constant.h \
213
		item/bin_string.h \
214
		item/blob.h \
215
		item/cache.h \
216
		item/cache_decimal.h \
217
		item/cache_int.h \
218
		item/cache_real.h \
219
		item/cache_row.h \
220
		item/cache_str.h \
221
		item/cmpfunc.h \
222
		item/copy_string.h \
223
		item/create.h \
224
		item/decimal.h \
225
		item/direct_ref.h \
226
		item/empty_string.h \
227
		item/field.h \
228
		item/float.h \
840.1.7 by Monty Taylor
Merged trunk
229
		item/func.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
230
		item/hex_string.h \
840.1.7 by Monty Taylor
Merged trunk
231
		item/ident.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
232
		item/insert_value.h \
840.1.7 by Monty Taylor
Merged trunk
233
		item/int.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
234
		item/int_with_ref.h \
235
		item/null.h \
236
		item/num.h \
237
		item/outer_ref.h \
238
		item/param.h \
239
		item/ref.h \
240
		item/ref_null_helper.h \
241
		item/return_date_time.h \
242
		item/return_int.h \
243
		item/row.h \
244
		item/string.h \
245
		item/subselect.h \
246
		item/sum.h \
247
		item/type_holder.h \
248
		item/uint.h \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
249
		key.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
250
		key_map.h \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
251
		key_part_spec.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
252
		korr.h \
840.1.7 by Monty Taylor
Merged trunk
253
		lex_column.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
254
		lex_string.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
255
		lex_symbol.h \
670.2.4 by Monty Taylor
Removed more stuff from the headers.
256
		lock.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
257
		logging.h \
873.2.23 by Monty Taylor
Fixed a failure during gperf failure.
258
		lookup_symbol.h \
840.1.7 by Monty Taylor
Merged trunk
259
		multi_delete.h \
260
		multi_update.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
261
		my_decimal.h\
840.1.7 by Monty Taylor
Merged trunk
262
		my_var.h \
584.4.4 by Monty Taylor
Split out Name_resolution_context.
263
		name_resolution_context.h \
264
		name_resolution_context_state.h \
722.2.4 by Monty Taylor
Fixed some distcheck build issues.
265
		natural_join_column.h \
266
		nested_join.h \
840.1.7 by Monty Taylor
Merged trunk
267
		open_tables_state.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
268
		opt_range.h \
269
		order.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
270
		plugin.h \
908.1.7 by Monty Taylor
Lowercased filenames.
271
		plugin_registry.h \
988.1.4 by Jay Pipes
Removed binlog and correct sql_builtin generation.
272
		plugin/applier.h \
960.2.22 by Monty Taylor
Renamed a bunch of plugin files.
273
		plugin/authentication.h \
274
		plugin/error_message_handler.h \
275
		plugin/logging_handler.h \
971.3.12 by Eric Day
Started abstracting Protocol, removed init_connect, init_file.
276
		plugin/protocol.h \
960.2.22 by Monty Taylor
Renamed a bunch of plugin files.
277
		plugin/qcache.h \
278
		plugin/replicator.h \
279
		plugin/scheduler.h \
960.2.23 by Monty Taylor
Moved handlerton to plugin/storage_engine.h.
280
		plugin/storage_engine.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
281
		probes.h \
282
		protocol.h \
283
		qcache.h \
722.1.5 by Monty Taylor
Split out query_arena.
284
		query_arena.h \
561.1.3 by Monty Taylor
Split some more things out of common_includes.h.
285
		query_id.h \
971.1.23 by Monty Taylor
Add generalized registry to be used for case-insensitive mappings.
286
		registry.h \
575.4.7 by Monty Taylor
More header cleanup.
287
		rename.h \
988.1.4 by Jay Pipes
Removed binlog and correct sql_builtin generation.
288
		transaction_services.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
289
		scheduling.h \
840.1.7 by Monty Taylor
Merged trunk
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 \
837 by Brian Aker
Reworked some classes out of session.h
298
		select_result.h \
299
		select_result_interceptor.h \
300
		select_send.h \
840.1.7 by Monty Taylor
Merged trunk
301
		select_singlerow_subselect.h \
302
		select_subselect.h \
303
		select_to_file.h \
304
		select_union.h \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
305
		session.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
306
		set_var.h \
307
		show.h \
308
		sj_tmp_table.h \
309
		sql_alloc.h \
310
		sql_array.h \
575.4.7 by Monty Taylor
More header cleanup.
311
		sql_base.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
312
		sql_bitmap.h \
313
		sql_error.h \
314
		sql_lex.h \
315
		sql_list.h \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
316
		sql_load.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
317
		sql_locale.h \
318
		sql_parse.h \
319
		sql_plugin.h \
320
		sql_select.h \
321
		sql_sort.h \
322
		sql_state.h \
323
		sql_string.h \
324
		sql_table.h \
325
		sql_udf.h \
326
		stacktrace.h \
327
		structs.h \
779.3.43 by Monty Taylor
Fixed a couple of distcheck related things.
328
		symbol_hash.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
329
		table.h \
840.1.7 by Monty Taylor
Merged trunk
330
		table_ident.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
331
		table_list.h \
332
		table_map_iterator.h \
798 by Brian Aker
Updated table_share tto its own file (yess, it will eventually go away).
333
		table_share.h \
813.1.2 by Jay Pipes
First function cleanup for temporal handling: YEAR()
334
		temporal.h \
335
		temporal_format.h \
840.1.7 by Monty Taylor
Merged trunk
336
		tmp_table_param.h \
539 by Monty Taylor
Sorted file lists for headers and sources.
337
		tzfile.h \
584.1.13 by Monty Taylor
Split out a little more code. Removed table_list.h from common_includes.
338
		tztime.h \
840.1.7 by Monty Taylor
Merged trunk
339
		unique.h \
722.2.4 by Monty Taylor
Fixed some distcheck build issues.
340
		unireg.h \
873.2.27 by Monty Taylor
Added in utf8cpp. We want this to be an external lib, but it needs packaged.
341
		utf8.h \
342
		utf8/checked.h \
343
		utf8/core.h \
344
		utf8/unchecked.h \
840.1.7 by Monty Taylor
Merged trunk
345
		user_var_entry.h \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
346
		xid.h
347
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
348
noinst_LTLIBRARIES = \
349
		libhandler.la \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
350
		libserialutil.la
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
351
971.3.14 by Eric Day
Created Protocol plugin interface and changed libdrizzleclient to be a plugin.
352
LDADD = $(top_builddir)/mysys/libmysys.la \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
353
	$(top_builddir)/mystrings/libmystrings.la \
971.1.34 by Monty Taylor
Changed to LT versions of libs.
354
	$(LTLIBDRIZZLE) $(LIBZ) $(LIBINTL) ${LIBC_P}
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
355
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
356
drizzled_LDADD = ${noinst_LTLIBRARIES} \
988.1.1 by Jay Pipes
Changes libserialize to libdrizzledmessage per ML discussion. All GPB messages are now in the drizzled::message namespace.
357
		 $(top_builddir)/drizzled/message/libdrizzledmessage.la \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
358
		 $(drizzled_plugin_libs) \
840.2.1 by Monty Taylor
Use LIB* instead of LTLIB*.
359
		 $(LDADD) $(LIBUUID) ${top_builddir}/gnulib/libgnu.la \
910.5.2 by Monty Taylor
Applied atomic patch to current tree.
360
		 $(LIBDL_LIBS) $(LIBPROTOBUF) $(LIBPCRE) $(LIBTBB) \
722.2.7 by Monty Taylor
Fixed the stupid build problem
361
		 $(DRIZZLED_PLUGIN_DEP_LIBS)
997.2.20 by Monty Taylor
Removed deps that weren't needed.
362
drizzled_DEPENDENCIES= ${noinst_LTLIBRARIES}
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
363
364
drizzled_LDFLAGS =
365
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
366
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
367
noinst_HEADERS = \
368
		gettext.h \
369
		global.h \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
370
		server_includes.h \
371
		util/convert.h \
372
		util/test.h
187 by Brian Aker
Fixed tab issue
373
319 by Brian Aker
Fix (yuck!) for OSX/Google bug.
374
drizzled_SOURCES = \
539 by Monty Taylor
Sorted file lists for headers and sources.
375
		authentication.cc \
584.4.10 by Monty Taylor
Broke out cached_item.
376
		cached_item.cc \
813.1.2 by Jay Pipes
First function cleanup for temporal handling: YEAR()
377
		calendar.cc \
670.2.4 by Monty Taylor
Removed more stuff from the headers.
378
		check_stack_overrun.cc \
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
379
		comp_creator.cc \
670.2.1 by Monty Taylor
Moved pthread keys
380
		current_session.cc \
934.2.12 by Jay Pipes
Pulled implementation of Diagnostics_area out into it's own implementation file.
381
		diagnostics_area.cc \
539 by Monty Taylor
Sorted file lists for headers and sources.
382
		drizzled.cc \
584.4.1 by Monty Taylor
Split out DTCollation.
383
		dtcollation.cc \
539 by Monty Taylor
Sorted file lists for headers and sources.
384
		errmsg.cc \
549 by Monty Taylor
Took gettext.h out of header files.
385
		error.cc \
722.4.1 by Mark Atwood
integrate errmsg plugin into sql_print_* functions
386
		errmsg_print.cc \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
387
		field/blob.cc \
388
		field/date.cc \
389
		field/datetime.cc \
390
		field/enum.cc \
391
		field/decimal.cc \
392
		field/double.cc \
393
		field/int64_t.cc \
394
		field/long.cc \
395
		field/longstr.cc \
396
		field/null.cc \
397
		field/num.cc \
398
		field/real.cc \
399
		field/str.cc \
400
		field/timestamp.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
401
		field/varstring.cc \
402
		field.cc \
403
		field_conv.cc \
404
		field_iterator.cc \
405
		filesort.cc \
934.2.20 by Jay Pipes
Move Foreign_key implementation into its own implementation file and out of session.cc
406
		foreign_key.cc \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
407
		function/ascii.cc \
408
		function/additive_op.cc \
409
		function/benchmark.cc \
410
		function/bit.cc \
411
		function/bit_count.cc \
412
		function/char_length.cc \
413
		function/check_reserved_words.cc \
414
		function/connection_id.cc \
415
		function/coercibility.cc \
416
		function/field.cc \
417
		function/find_in_set.cc \
418
		function/found_rows.cc \
419
		function/func.cc \
420
		function/get_system_var.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
421
		function/get_user_var.cc \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
422
		function/last_insert.cc \
423
		function/length.cc \
424
		function/locate.cc \
425
		function/min_max.cc \
426
		function/num1.cc \
427
		function/numhybrid.cc \
428
		function/num_op.cc \
429
		function/row_count.cc \
430
		function/set_user_var.cc \
431
		function/shift.cc \
432
		function/sign.cc \
433
		function/signed.cc \
434
		function/update_hash.cc \
435
		function/units.cc \
436
		function/unsigned.cc \
437
		function/user_var_as_out_param.cc \
438
		function/user_var_entry.cc \
642.1.30 by Lee
move math functions to drizzled/function/math directory
439
		function/math/abs.cc \
440
		function/math/acos.cc \
441
		function/math/asin.cc \
442
		function/math/atan.cc \
443
		function/math/ceiling.cc \
444
		function/math/cos.cc \
445
		function/math/decimal_typecast.cc \
446
		function/math/divide.cc \
447
		function/math/exp.cc \
448
		function/math/floor.cc \
449
		function/math/int_divide.cc \
450
		function/math/integer.cc \
451
		function/math/int.cc \
452
		function/math/int_val.cc \
453
		function/math/ln.cc \
454
		function/math/log.cc \
455
		function/math/minus.cc \
456
		function/math/mod.cc \
457
		function/math/multiply.cc \
458
		function/math/neg.cc \
459
		function/math/ord.cc \
460
		function/math/plus.cc \
461
		function/math/pow.cc \
462
		function/math/rand.cc \
463
		function/math/real.cc \
464
		function/math/round.cc \
465
		function/math/sin.cc \
466
		function/math/sqrt.cc \
467
		function/math/tan.cc \
670.1.20 by Monty Taylor
Renamed functions to function... everything else is singular.
468
		function/str/alloc_buffer.cc \
469
		function/str/binary.cc \
470
		function/str/char.cc \
471
		function/str/charset.cc \
472
		function/str/collation.cc \
473
		function/str/concat.cc \
474
		function/str/conv.cc \
475
		function/str/conv_charset.cc \
476
		function/str/database.cc \
477
		function/str/elt.cc \
478
		function/str/export_set.cc \
479
		function/str/format.cc \
480
		function/str/hex.cc \
481
		function/str/insert.cc \
482
		function/str/left.cc \
483
		function/str/load_file.cc \
484
		function/str/make_set.cc \
485
		function/str/pad.cc \
486
		function/str/quote.cc \
487
		function/str/repeat.cc \
488
		function/str/replace.cc \
489
		function/str/reverse.cc \
490
		function/str/right.cc \
491
		function/str/set_collation.cc \
492
		function/str/str_conv.cc \
493
		function/str/strfunc.cc \
494
		function/str/substr.cc \
495
		function/str/sysconst.cc \
496
		function/str/trim.cc \
497
		function/str/user.cc \
498
		function/str/uuid.cc \
499
		function/str/weight_string.cc \
500
		function/time/curdate.cc \
501
		function/time/date.cc \
502
		function/time/date_add_interval.cc \
503
		function/time/date_format.cc \
504
		function/time/dayname.cc \
505
		function/time/dayofmonth.cc \
506
		function/time/extract.cc \
507
		function/time/dayofyear.cc \
508
		function/time/from_days.cc \
509
		function/time/from_unixtime.cc \
510
		function/time/get_interval_value.cc \
511
		function/time/hour.cc \
512
		function/time/last_day.cc \
513
		function/time/makedate.cc \
514
		function/time/microsecond.cc \
515
		function/time/minute.cc \
516
		function/time/month.cc \
517
		function/time/now.cc \
518
		function/time/quarter.cc \
519
		function/time/period_add.cc \
520
		function/time/period_diff.cc \
521
		function/time/second.cc \
522
		function/time/sysdate_local.cc \
523
		function/time/timestamp_diff.cc \
524
		function/time/to_days.cc \
525
		function/time/typecast.cc \
526
		function/time/unix_timestamp.cc \
527
		function/time/weekday.cc \
528
		function/time/year.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
529
		ha_trx_info.cc \
530
		hybrid_type_traits.cc \
531
		hybrid_type_traits_decimal.cc \
532
		hybrid_type_traits_integer.cc \
934.2.1 by Jay Pipes
Split index hints out into their own file, removal from sql_lex.h and sql_select.cc
533
		index_hint.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
534
		item/bin_string.cc \
535
		item/cache.cc \
536
		item/cache_decimal.cc \
537
		item/cache_int.cc \
538
		item/cache_real.cc \
539
		item/cache_row.cc \
540
		item/cache_str.cc \
541
		item/cmpfunc.cc \
542
		item/copy_string.cc \
543
		item/create.cc \
544
		item/decimal.cc \
545
		item/direct_ref.cc \
546
		item/empty_string.cc \
547
		item/field.cc \
548
		item/float.cc \
549
		item/hex_string.cc \
550
		item/insert_value.cc \
551
		item/int_with_ref.cc \
552
		item/ident.cc \
553
		item/int.cc \
554
		item/null.cc \
555
		item/num.cc \
556
		item/outer_ref.cc \
557
		item/param.cc \
558
		item/ref.cc \
559
		item/ref_null_helper.cc \
560
		item/row.cc \
561
		item/string.cc \
562
		item/subselect.cc \
563
		item/sum.cc \
564
		item/type_holder.cc \
565
		item/uint.cc \
566
		item.cc \
567
		key.cc \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
568
		key_map.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
569
		lock.cc \
570
		logging.cc \
873.2.23 by Monty Taylor
Fixed a failure during gperf failure.
571
		lookup_symbol.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
572
		my_decimal.cc \
573
		name_resolution_context_state.cc \
574
		natural_join_column.cc \
575
		opt_range.cc \
576
		opt_sum.cc \
908.1.7 by Monty Taylor
Lowercased filenames.
577
		plugin_registry.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
578
		protocol.cc \
579
		qcache.cc \
580
		query_id.cc \
581
		records.cc \
582
		rename.cc \
988.1.4 by Jay Pipes
Removed binlog and correct sql_builtin generation.
583
		transaction_services.cc \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
584
		scheduling.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
585
		session.cc \
586
		set_var.cc \
587
		show.cc \
588
		sj_tmp_table.cc \
589
		sql_base.cc \
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
590
		sql_bitmap.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
591
		sql_connect.cc \
592
		sql_delete.cc \
593
		sql_derived.cc \
594
		sql_error.cc \
595
		sql_insert.cc \
596
		sql_lex.cc \
597
		sql_list.cc \
598
		sql_load.cc \
599
		sql_locale.cc \
600
		sql_parse.cc \
601
		sql_plugin.cc \
602
		sql_select.cc \
603
		sql_state.cc \
604
		sql_string.cc \
605
		sql_table.cc \
606
		sql_udf.cc \
607
		sql_union.cc \
608
		sql_update.cc \
609
		sql_yacc.yy \
610
		stacktrace.cc \
611
		strfunc.cc \
612
		table.cc \
613
                table_map_iterator.cc \
614
		temporal.cc \
615
		temporal_format.cc \
616
		thr_malloc.cc \
617
		time.cc \
618
		tztime.cc \
619
		uniques.cc \
971.3.9 by Eric Day
Removed dependency for hex convert, fixed a few Protocol class issues for Solaris.
620
		util/convert.cc \
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
621
		xid.cc
622
623
if BUILD_DTRACE
624
drizzled_SOURCES += probes.d
625
endif
626
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
627
libserialutil_la_SOURCES = db.cc table_proto_write.cc
919.2.7 by Monty Taylor
Added back PROTOSKIP_WARNINGS - we still need it on Solaris. But it's empty now for GCC.
628
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
629
960.2.23 by Monty Taylor
Moved handlerton to plugin/storage_engine.h.
630
libhandler_la_SOURCES = handler.cc plugin/storage_engine.cc
779.4.10 by Monty Taylor
Cleaned up a few build things. Thank me... builds should be quicker now. :)
631
632
AM_YFLAGS = -p DRIZZLE -d --verbose
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
633
634
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
635
if BUILD_GCC_PCH
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
636
PCHHEADERS = \
637
		definitions.h.gch \
960.2.23 by Monty Taylor
Moved handlerton to plugin/storage_engine.h.
638
		plugin/storage_engine.h.gch  \
575.4.7 by Monty Taylor
More header cleanup.
639
		sql_base.h.gch \
640
		sql_parse.h.gch \
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
641
		sql_plugin.h.gch \
642
		util/convert.h.gch \
643
		util/test.h.gch
492.1.7 by Monty Taylor
Moved test() to its own file.
644
else
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
645
PCHHEADERS = 
492.1.7 by Monty Taylor
Moved test() to its own file.
646
endif
647
187 by Brian Aker
Fixed tab issue
648
BUILT_MAINT_SRC = sql_yacc.cc \
649
		  sql_yacc.h
650
651
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
652
		symbol_hash.h \
653
		function_hash.h \
492.1.7 by Monty Taylor
Moved test() to its own file.
654
		$(PCHHEADERS)
187 by Brian Aker
Fixed tab issue
655
670.1.15 by Monty Taylor
Added configmake.h - possible step in removing -DEFS
656
EXTRA_DIST = \
657
		$(BUILT_MAINT_SRC) \
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
658
		symbol_hash.gperf \
659
		function_hash.gperf \
670.1.15 by Monty Taylor
Added configmake.h - possible step in removing -DEFS
660
		drizzledumpslow \
661
		message.mc \
662
		probes.d
187 by Brian Aker
Fixed tab issue
663
670.1.15 by Monty Taylor
Added configmake.h - possible step in removing -DEFS
664
CLEANFILES = \
665
		configmake.h \
779.7.10 by Monty Taylor
make distcheck cleanups.
666
		function_hash.h \
667
		function_hash.stamp-h \
670.1.15 by Monty Taylor
Added configmake.h - possible step in removing -DEFS
668
		sql_yacc.output \
779.7.10 by Monty Taylor
make distcheck cleanups.
669
		symbol_hash.h \
670
		symbol_hash.stamp-h \
670.1.15 by Monty Taylor
Added configmake.h - possible step in removing -DEFS
671
		$(PCHHEADERS) \
672
		$(nodist_drizzled_SOURCES)
187 by Brian Aker
Fixed tab issue
673
674
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
675
		 $(BUILT_MAINT_SRC)
676
677
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
678
679
probes.h: probes.d
680
	$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
681
	mv probes.h probes.h.bak
682
	sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
683
	rm probes.h.bak
684
670.1.15 by Monty Taylor
Added configmake.h - possible step in removing -DEFS
685
779.7.6 by Monty Taylor
Generalized gperf building. Feel free to just add .gperf files now.
686
SUFFIXES = .d .gch .gperf .stamp-h
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
687
997.2.19 by Monty Taylor
Reverted back to building drizzled in drizzled.
688
if BUILD_GCC_PCH
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
689
.h.gch:
670.4.1 by Monty Taylor
Removed recursive subdirs in drizzled/, which allowed the renaming of ifloat and istring. It's also faster.
690
	$(CXXCOMPILE) -include config.h ${NO_UNUSED_MACROS} -c $<
492.1.7 by Monty Taylor
Moved test() to its own file.
691
endif
692
187 by Brian Aker
Fixed tab issue
693
.d.o : $(DTRACEFILES)
694
	$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
695
779.7.6 by Monty Taylor
Generalized gperf building. Feel free to just add .gperf files now.
696
function_hash.h: function_hash.stamp-h
697
symbol_hash.h: symbol_hash.stamp-h
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
698
779.7.6 by Monty Taylor
Generalized gperf building. Feel free to just add .gperf files now.
699
.gperf.stamp-h:
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
700
	$(GPERF) --initializer-suffix=,0 --struct-type --enum \
701
		--omit-struct-type --readonly-tables --language=C++ \
779.7.6 by Monty Taylor
Generalized gperf building. Feel free to just add .gperf files now.
702
		--class-name=$* $<  > $@
873.2.23 by Monty Taylor
Fixed a failure during gperf failure.
703
	@if ! test $$? ; then rm $@ ; fi
704
	@if test -f $@ ; then \
705
		if ! diff $@ \
706
			   ${top_builddir}/drizzled/$*.h >/dev/null 2>&1 ; \
707
		then \
708
			cp $@ ${top_builddir}/drizzled/$*.h ; \
709
		fi \
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
710
	fi
711