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