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