~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/Makefile.am

  • Committer: Monty Taylor
  • Date: 2009-04-27 06:12:54 UTC
  • mto: (997.2.25 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090427061254-4ij7j6spi4fv2yb8
Reverted back to building drizzled in drizzled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
15
 
 
16
 
 
17
sbin_PROGRAMS= drizzled
 
18
 
 
19
bin_SCRIPTS =   drizzledumpslow \
 
20
                drizzled_safe 
 
21
 
 
22
DTRACEFILES = handler.o \
 
23
              filesort.o \
 
24
              sql_delete.o \
 
25
              sql_insert.o \
 
26
              sql_select.o \
 
27
              sql_update.o
 
28
 
 
29
drizzledincludedir = ${includedir}/drizzled
 
30
nobase_dist_drizzledinclude_HEADERS = \
 
31
                alter_column.h \
 
32
                alter_drop.h \
 
33
                atomic/gcc_traits.h \
 
34
                atomic/pthread_traits.h \
 
35
                atomic/sun_studio.h \
 
36
                atomics.h \
 
37
                authentication.h \
 
38
                base.h \
 
39
                cached_item.h \
 
40
                calendar.h \
 
41
                check_stack_overrun.h \
 
42
                common.h \
 
43
                comp_creator.h \
 
44
                connect.h \
 
45
                cost_vect.h \
 
46
                current_session.h \
 
47
                data_home.h \
 
48
                db.h \
 
49
                definitions.h \
 
50
                diagnostics_area.h \
 
51
                discrete_interval.h \
 
52
                dtcollation.h \
 
53
                errmsg.h \
 
54
                errmsg_print.h \
 
55
                error.h \
 
56
                error_injection.h \
 
57
                field.h \
 
58
                field/blob.h \
 
59
                field/date.h \
 
60
                field/datetime.h \
 
61
                field/decimal.h \
 
62
                field/double.h \
 
63
                field/enum.h \
 
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 \
 
73
                field_iterator.h \
 
74
                file_exchange.h \
 
75
                filesort_info.h \
 
76
                foreign_key.h \
 
77
                function/additive_op.h \
 
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 \
 
86
                function/create.h \
 
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 \
 
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 \
 
107
                function/math/int.h \
 
108
                function/math/int_divide.h \
 
109
                function/math/int_val.h \
 
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 \
 
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 \
 
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 \
 
166
                function/str/weight_string.h \
 
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 \
 
187
                function/time/quarter.h \
 
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  \
 
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 \
 
202
                ha_trx_info.h \
 
203
                handler.h \
 
204
                handler_structs.h \
 
205
                hybrid_type.h \
 
206
                hybrid_type_traits.h \
 
207
                hybrid_type_traits_decimal.h \
 
208
                hybrid_type_traits_integer.h \
 
209
                index_hint.h \
 
210
                internal_error_handler.h \
 
211
                item.h \
 
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 \
 
229
                item/func.h \
 
230
                item/hex_string.h \
 
231
                item/ident.h \
 
232
                item/insert_value.h \
 
233
                item/int.h \
 
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 \
 
249
                key.h \
 
250
                key_map.h \
 
251
                key_part_spec.h \
 
252
                korr.h \
 
253
                lex_column.h \
 
254
                lex_string.h \
 
255
                lex_symbol.h \
 
256
                lock.h \
 
257
                logging.h \
 
258
                lookup_symbol.h \
 
259
                multi_delete.h \
 
260
                multi_update.h \
 
261
                my_decimal.h\
 
262
                my_var.h \
 
263
                name_resolution_context.h \
 
264
                name_resolution_context_state.h \
 
265
                natural_join_column.h \
 
266
                nested_join.h \
 
267
                open_tables_state.h \
 
268
                opt_range.h \
 
269
                order.h \
 
270
                plugin.h \
 
271
                plugin_registry.h \
 
272
                plugin/applier.h \
 
273
                plugin/authentication.h \
 
274
                plugin/error_message_handler.h \
 
275
                plugin/logging_handler.h \
 
276
                plugin/protocol.h \
 
277
                plugin/qcache.h \
 
278
                plugin/replicator.h \
 
279
                plugin/scheduler.h \
 
280
                plugin/storage_engine.h \
 
281
                probes.h \
 
282
                protocol.h \
 
283
                qcache.h \
 
284
                query_arena.h \
 
285
                query_id.h \
 
286
                registry.h \
 
287
                rename.h \
 
288
                transaction_services.h \
 
289
                scheduling.h \
 
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 \
 
298
                select_result.h \
 
299
                select_result_interceptor.h \
 
300
                select_send.h \
 
301
                select_singlerow_subselect.h \
 
302
                select_subselect.h \
 
303
                select_to_file.h \
 
304
                select_union.h \
 
305
                session.h \
 
306
                set_var.h \
 
307
                show.h \
 
308
                sj_tmp_table.h \
 
309
                sql_alloc.h \
 
310
                sql_array.h \
 
311
                sql_base.h \
 
312
                sql_bitmap.h \
 
313
                sql_error.h \
 
314
                sql_lex.h \
 
315
                sql_list.h \
 
316
                sql_load.h \
 
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 \
 
328
                symbol_hash.h \
 
329
                table.h \
 
330
                table_ident.h \
 
331
                table_list.h \
 
332
                table_map_iterator.h \
 
333
                table_share.h \
 
334
                temporal.h \
 
335
                temporal_format.h \
 
336
                tmp_table_param.h \
 
337
                tzfile.h \
 
338
                tztime.h \
 
339
                unique.h \
 
340
                unireg.h \
 
341
                utf8.h \
 
342
                utf8/checked.h \
 
343
                utf8/core.h \
 
344
                utf8/unchecked.h \
 
345
                user_var_entry.h \
 
346
                virtual_column_info.h \
 
347
                xid.h
 
348
 
 
349
noinst_LTLIBRARIES = \
 
350
                libhandler.la \
 
351
                libserialutil.la
 
352
 
 
353
LDADD = $(top_builddir)/mysys/libmysys.la \
 
354
        $(top_builddir)/mystrings/libmystrings.la \
 
355
        $(LTLIBDRIZZLE) $(LIBZ) $(LIBINTL) ${LIBC_P}
 
356
 
 
357
drizzled_LDADD = ${noinst_LTLIBRARIES} \
 
358
                 $(top_builddir)/drizzled/message/libdrizzledmessage.la \
 
359
                 $(drizzled_plugin_libs) \
 
360
                 $(LDADD) $(LIBUUID) ${top_builddir}/gnulib/libgnu.la \
 
361
                 $(LIBDL_LIBS) $(LIBPROTOBUF) $(LIBPCRE) $(LIBTBB) \
 
362
                 $(DRIZZLED_PLUGIN_DEP_LIBS)
 
363
drizzled_DEPENDENCIES= ${noinst_LTLIBRARIES} $(DRIZZLED_PLUGIN_DEP_LIBS)
 
364
 
 
365
drizzled_LDFLAGS =
 
366
 
 
367
 
 
368
noinst_HEADERS = \
 
369
                gettext.h \
 
370
                global.h \
 
371
                server_includes.h \
 
372
                util/convert.h \
 
373
                util/test.h
 
374
 
 
375
drizzled_SOURCES = \
 
376
                authentication.cc \
 
377
                cached_item.cc \
 
378
                calendar.cc \
 
379
                check_stack_overrun.cc \
 
380
                comp_creator.cc \
 
381
                current_session.cc \
 
382
                diagnostics_area.cc \
 
383
                drizzled.cc \
 
384
                dtcollation.cc \
 
385
                errmsg.cc \
 
386
                error.cc \
 
387
                errmsg_print.cc \
 
388
                field/blob.cc \
 
389
                field/date.cc \
 
390
                field/datetime.cc \
 
391
                field/enum.cc \
 
392
                field/decimal.cc \
 
393
                field/double.cc \
 
394
                field/int64_t.cc \
 
395
                field/long.cc \
 
396
                field/longstr.cc \
 
397
                field/null.cc \
 
398
                field/num.cc \
 
399
                field/real.cc \
 
400
                field/str.cc \
 
401
                field/timestamp.cc \
 
402
                field/varstring.cc \
 
403
                field.cc \
 
404
                field_conv.cc \
 
405
                field_iterator.cc \
 
406
                filesort.cc \
 
407
                foreign_key.cc \
 
408
                function/ascii.cc \
 
409
                function/additive_op.cc \
 
410
                function/benchmark.cc \
 
411
                function/bit.cc \
 
412
                function/bit_count.cc \
 
413
                function/char_length.cc \
 
414
                function/check_reserved_words.cc \
 
415
                function/connection_id.cc \
 
416
                function/coercibility.cc \
 
417
                function/field.cc \
 
418
                function/find_in_set.cc \
 
419
                function/found_rows.cc \
 
420
                function/func.cc \
 
421
                function/get_system_var.cc \
 
422
                function/get_user_var.cc \
 
423
                function/last_insert.cc \
 
424
                function/length.cc \
 
425
                function/locate.cc \
 
426
                function/min_max.cc \
 
427
                function/num1.cc \
 
428
                function/numhybrid.cc \
 
429
                function/num_op.cc \
 
430
                function/row_count.cc \
 
431
                function/set_user_var.cc \
 
432
                function/shift.cc \
 
433
                function/sign.cc \
 
434
                function/signed.cc \
 
435
                function/update_hash.cc \
 
436
                function/units.cc \
 
437
                function/unsigned.cc \
 
438
                function/user_var_as_out_param.cc \
 
439
                function/user_var_entry.cc \
 
440
                function/math/abs.cc \
 
441
                function/math/acos.cc \
 
442
                function/math/asin.cc \
 
443
                function/math/atan.cc \
 
444
                function/math/ceiling.cc \
 
445
                function/math/cos.cc \
 
446
                function/math/decimal_typecast.cc \
 
447
                function/math/divide.cc \
 
448
                function/math/exp.cc \
 
449
                function/math/floor.cc \
 
450
                function/math/int_divide.cc \
 
451
                function/math/integer.cc \
 
452
                function/math/int.cc \
 
453
                function/math/int_val.cc \
 
454
                function/math/ln.cc \
 
455
                function/math/log.cc \
 
456
                function/math/minus.cc \
 
457
                function/math/mod.cc \
 
458
                function/math/multiply.cc \
 
459
                function/math/neg.cc \
 
460
                function/math/ord.cc \
 
461
                function/math/plus.cc \
 
462
                function/math/pow.cc \
 
463
                function/math/rand.cc \
 
464
                function/math/real.cc \
 
465
                function/math/round.cc \
 
466
                function/math/sin.cc \
 
467
                function/math/sqrt.cc \
 
468
                function/math/tan.cc \
 
469
                function/str/alloc_buffer.cc \
 
470
                function/str/binary.cc \
 
471
                function/str/char.cc \
 
472
                function/str/charset.cc \
 
473
                function/str/collation.cc \
 
474
                function/str/concat.cc \
 
475
                function/str/conv.cc \
 
476
                function/str/conv_charset.cc \
 
477
                function/str/database.cc \
 
478
                function/str/elt.cc \
 
479
                function/str/export_set.cc \
 
480
                function/str/format.cc \
 
481
                function/str/hex.cc \
 
482
                function/str/insert.cc \
 
483
                function/str/left.cc \
 
484
                function/str/load_file.cc \
 
485
                function/str/make_set.cc \
 
486
                function/str/pad.cc \
 
487
                function/str/quote.cc \
 
488
                function/str/repeat.cc \
 
489
                function/str/replace.cc \
 
490
                function/str/reverse.cc \
 
491
                function/str/right.cc \
 
492
                function/str/set_collation.cc \
 
493
                function/str/str_conv.cc \
 
494
                function/str/strfunc.cc \
 
495
                function/str/substr.cc \
 
496
                function/str/sysconst.cc \
 
497
                function/str/trim.cc \
 
498
                function/str/user.cc \
 
499
                function/str/uuid.cc \
 
500
                function/str/weight_string.cc \
 
501
                function/time/curdate.cc \
 
502
                function/time/date.cc \
 
503
                function/time/date_add_interval.cc \
 
504
                function/time/date_format.cc \
 
505
                function/time/dayname.cc \
 
506
                function/time/dayofmonth.cc \
 
507
                function/time/extract.cc \
 
508
                function/time/dayofyear.cc \
 
509
                function/time/from_days.cc \
 
510
                function/time/from_unixtime.cc \
 
511
                function/time/get_interval_value.cc \
 
512
                function/time/hour.cc \
 
513
                function/time/last_day.cc \
 
514
                function/time/makedate.cc \
 
515
                function/time/microsecond.cc \
 
516
                function/time/minute.cc \
 
517
                function/time/month.cc \
 
518
                function/time/now.cc \
 
519
                function/time/quarter.cc \
 
520
                function/time/period_add.cc \
 
521
                function/time/period_diff.cc \
 
522
                function/time/second.cc \
 
523
                function/time/sysdate_local.cc \
 
524
                function/time/timestamp_diff.cc \
 
525
                function/time/to_days.cc \
 
526
                function/time/typecast.cc \
 
527
                function/time/unix_timestamp.cc \
 
528
                function/time/weekday.cc \
 
529
                function/time/year.cc \
 
530
                ha_trx_info.cc \
 
531
                hybrid_type_traits.cc \
 
532
                hybrid_type_traits_decimal.cc \
 
533
                hybrid_type_traits_integer.cc \
 
534
                index_hint.cc \
 
535
                item/bin_string.cc \
 
536
                item/cache.cc \
 
537
                item/cache_decimal.cc \
 
538
                item/cache_int.cc \
 
539
                item/cache_real.cc \
 
540
                item/cache_row.cc \
 
541
                item/cache_str.cc \
 
542
                item/cmpfunc.cc \
 
543
                item/copy_string.cc \
 
544
                item/create.cc \
 
545
                item/decimal.cc \
 
546
                item/direct_ref.cc \
 
547
                item/empty_string.cc \
 
548
                item/field.cc \
 
549
                item/float.cc \
 
550
                item/hex_string.cc \
 
551
                item/insert_value.cc \
 
552
                item/int_with_ref.cc \
 
553
                item/ident.cc \
 
554
                item/int.cc \
 
555
                item/null.cc \
 
556
                item/num.cc \
 
557
                item/outer_ref.cc \
 
558
                item/param.cc \
 
559
                item/ref.cc \
 
560
                item/ref_null_helper.cc \
 
561
                item/row.cc \
 
562
                item/string.cc \
 
563
                item/subselect.cc \
 
564
                item/sum.cc \
 
565
                item/type_holder.cc \
 
566
                item/uint.cc \
 
567
                item.cc \
 
568
                key.cc \
 
569
                key_map.cc \
 
570
                lock.cc \
 
571
                logging.cc \
 
572
                lookup_symbol.cc \
 
573
                my_decimal.cc \
 
574
                name_resolution_context_state.cc \
 
575
                natural_join_column.cc \
 
576
                opt_range.cc \
 
577
                opt_sum.cc \
 
578
                plugin_registry.cc \
 
579
                protocol.cc \
 
580
                qcache.cc \
 
581
                query_id.cc \
 
582
                records.cc \
 
583
                rename.cc \
 
584
                transaction_services.cc \
 
585
                scheduling.cc \
 
586
                session.cc \
 
587
                set_var.cc \
 
588
                show.cc \
 
589
                sj_tmp_table.cc \
 
590
                sql_base.cc \
 
591
                sql_bitmap.cc \
 
592
                sql_connect.cc \
 
593
                sql_delete.cc \
 
594
                sql_derived.cc \
 
595
                sql_error.cc \
 
596
                sql_insert.cc \
 
597
                sql_lex.cc \
 
598
                sql_list.cc \
 
599
                sql_load.cc \
 
600
                sql_locale.cc \
 
601
                sql_olap.cc \
 
602
                sql_parse.cc \
 
603
                sql_plugin.cc \
 
604
                sql_select.cc \
 
605
                sql_state.cc \
 
606
                sql_string.cc \
 
607
                sql_table.cc \
 
608
                sql_udf.cc \
 
609
                sql_union.cc \
 
610
                sql_update.cc \
 
611
                sql_yacc.yy \
 
612
                stacktrace.cc \
 
613
                strfunc.cc \
 
614
                table.cc \
 
615
                table_map_iterator.cc \
 
616
                temporal.cc \
 
617
                temporal_format.cc \
 
618
                thr_malloc.cc \
 
619
                time.cc \
 
620
                tztime.cc \
 
621
                uniques.cc \
 
622
                util/convert.cc \
 
623
                virtual_column_info.cc \
 
624
                xid.cc
 
625
 
 
626
if BUILD_DTRACE
 
627
drizzled_SOURCES += probes.d
 
628
endif
 
629
 
 
630
libserialutil_la_SOURCES = db.cc table_proto_write.cc
 
631
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
 
632
 
 
633
libhandler_la_SOURCES = handler.cc plugin/storage_engine.cc
 
634
 
 
635
AM_YFLAGS = -p DRIZZLE -d --verbose
 
636
 
 
637
 
 
638
if BUILD_GCC_PCH
 
639
PCHHEADERS = \
 
640
                definitions.h.gch \
 
641
                plugin/storage_engine.h.gch  \
 
642
                sql_base.h.gch \
 
643
                sql_parse.h.gch \
 
644
                sql_plugin.h.gch \
 
645
                util/convert.h.gch \
 
646
                util/test.h.gch
 
647
else
 
648
PCHHEADERS = 
 
649
endif
 
650
 
 
651
BUILT_MAINT_SRC = sql_yacc.cc \
 
652
                  sql_yacc.h
 
653
 
 
654
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
 
655
                symbol_hash.h \
 
656
                function_hash.h \
 
657
                $(PCHHEADERS)
 
658
 
 
659
EXTRA_DIST = \
 
660
                $(BUILT_MAINT_SRC) \
 
661
                symbol_hash.gperf \
 
662
                function_hash.gperf \
 
663
                drizzledumpslow \
 
664
                message.mc \
 
665
                probes.d
 
666
 
 
667
CLEANFILES = \
 
668
                configmake.h \
 
669
                function_hash.h \
 
670
                function_hash.stamp-h \
 
671
                sql_yacc.output \
 
672
                symbol_hash.h \
 
673
                symbol_hash.stamp-h \
 
674
                $(PCHHEADERS) \
 
675
                $(nodist_drizzled_SOURCES)
 
676
 
 
677
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
 
678
                 $(BUILT_MAINT_SRC)
 
679
 
 
680
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
 
681
 
 
682
probes.h: probes.d
 
683
        $(DTRACE) $(DTRACEFLAGS) -h -s probes.d
 
684
        mv probes.h probes.h.bak
 
685
        sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
 
686
        rm probes.h.bak
 
687
 
 
688
 
 
689
SUFFIXES = .d .gch .gperf .stamp-h
 
690
 
 
691
if BUILD_GCC_PCH
 
692
.h.gch:
 
693
        $(CXXCOMPILE) -include config.h ${NO_UNUSED_MACROS} -c $<
 
694
endif
 
695
 
 
696
.d.o : $(DTRACEFILES)
 
697
        $(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
 
698
 
 
699
function_hash.h: function_hash.stamp-h
 
700
symbol_hash.h: symbol_hash.stamp-h
 
701
 
 
702
.gperf.stamp-h:
 
703
        $(GPERF) --initializer-suffix=,0 --struct-type --enum \
 
704
                --omit-struct-type --readonly-tables --language=C++ \
 
705
                --class-name=$* $<  > $@
 
706
        @if ! test $$? ; then rm $@ ; fi
 
707
        @if test -f $@ ; then \
 
708
                if ! diff $@ \
 
709
                           ${top_builddir}/drizzled/$*.h >/dev/null 2>&1 ; \
 
710
                then \
 
711
                        cp $@ ${top_builddir}/drizzled/$*.h ; \
 
712
                fi \
 
713
        fi
 
714