~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/Makefile.am

  • Committer: Jay Pipes
  • Date: 2009-02-04 15:44:25 UTC
  • mfrom: (829 drizzle)
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090204154425-th8xfk2ujz2y8xwg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
sbin_PROGRAMS= drizzled
18
18
 
19
 
EXTRA_PROGRAMS= gen_lex_hash
20
 
 
21
 
bin_PROGRAMS =
22
 
 
23
19
bin_SCRIPTS =   drizzledumpslow \
24
20
                drizzled_safe 
25
21
 
26
 
DTRACE = @DTRACE@
27
 
 
28
 
DTRACEFLAGS = @DTRACEFLAGS@
29
 
 
30
22
DTRACEFILES = handler.o \
31
23
              filesort.o \
32
24
              sql_delete.o \
263
255
                key_map.h \
264
256
                key_part_spec.h \
265
257
                korr.h \
266
 
                lex.h \
267
258
                lex_string.h \
268
259
                lex_symbol.h \
269
260
                lock.h \
332
323
 
333
324
noinst_LTLIBRARIES = \
334
325
                libhandler.la \
335
 
                libserialutil.la \
336
 
                libitem.la \
337
 
                libutil.la \
338
 
                libfield.la \
339
 
                libfunction.la
 
326
                libserialutil.la
340
327
 
341
 
LDADD = $(top_builddir)/libdrizzle/libdrizzle.la \
 
328
LDADD = $(top_builddir)/libdrizzleclient/libdrizzleclient.la \
342
329
        $(top_builddir)/mysys/libmysys.la \
343
330
        $(top_builddir)/mystrings/libmystrings.la \
344
331
        $(LTLIBZ) $(LIBINTL)
345
332
 
346
333
drizzled_LDADD = ${noinst_LTLIBRARIES} \
347
 
                 $(top_builddir)/libdrizzle/libdrizzle.la \
348
334
                 $(top_builddir)/drizzled/serialize/libserialize.la \
349
335
                 @mysql_plugin_libs@ \
350
 
                 $(LDADD) $(LTLIBUUID) \
 
336
                 $(LDADD) $(LTLIBUUID) ${top_builddir}/gnulib/libgnu.la \
351
337
                 $(LIBDL_LIBS) $(LTLIBEVENT) $(LTLIBPROTOBUF) $(PCRE_LIBS) \
352
338
                 $(DRIZZLED_PLUGIN_DEP_LIBS)
353
339
drizzled_DEPENDENCIES = @mysql_plugin_libs@ ${noinst_LTLIBRARIES}
377
363
                errmsg.cc \
378
364
                error.cc \
379
365
                errmsg_print.cc \
380
 
                field.cc \
381
 
                field_conv.cc \
382
 
                field_iterator.cc \
383
 
                filesort.cc \
384
 
                ha_trx_info.cc \
385
 
                hybrid_type_traits.cc \
386
 
                hybrid_type_traits_decimal.cc \
387
 
                hybrid_type_traits_integer.cc \
388
 
                item.cc \
389
 
                key.cc \
390
 
                key_map.cc \
391
 
                lock.cc \
392
 
                log.cc \
393
 
                logging.cc \
394
 
                mf_iocache.cc \
395
 
                my_decimal.cc \
396
 
                name_resolution_context_state.cc \
397
 
                natural_join_column.cc \
398
 
                opt_range.cc \
399
 
                opt_sum.cc \
400
 
                parser.cc \
401
 
                protocol.cc \
402
 
                qcache.cc \
403
 
                query_id.cc \
404
 
                records.cc \
405
 
                rename.cc \
406
 
                replicator.cc \
407
 
                scheduling.cc \
408
 
                session.cc \
409
 
                set_var.cc \
410
 
                show.cc \
411
 
                sj_tmp_table.cc \
412
 
                sql_base.cc \
413
 
                sql_builtin.cc \
414
 
                sql_client.cc \
415
 
                sql_connect.cc \
416
 
                sql_delete.cc \
417
 
                sql_derived.cc \
418
 
                sql_error.cc \
419
 
                sql_handler.cc \
420
 
                sql_insert.cc \
421
 
                sql_lex.cc \
422
 
                sql_list.cc \
423
 
                sql_load.cc \
424
 
                sql_locale.cc \
425
 
                sql_olap.cc \
426
 
                sql_parse.cc \
427
 
                sql_plugin.cc \
428
 
                sql_select.cc \
429
 
                sql_state.cc \
430
 
                sql_string.cc \
431
 
                sql_table.cc \
432
 
                sql_udf.cc \
433
 
                sql_union.cc \
434
 
                sql_update.cc \
435
 
                sql_yacc.yy \
436
 
                stacktrace.cc \
437
 
                strfunc.cc \
438
 
                table.cc \
439
 
                table_map_iterator.cc \
440
 
                tableop_hooks.cc \
441
 
                temporal.cc \
442
 
                temporal_format.cc \
443
 
                thr_malloc.cc \
444
 
                time.cc \
445
 
                tmp_table.cc \
446
 
                tztime.cc \
447
 
                uniques.cc \
448
 
                virtual_column_info.cc \
449
 
                xid.cc
450
 
 
451
 
if BUILD_DTRACE
452
 
drizzled_SOURCES += probes.d
453
 
endif
454
 
 
455
 
gen_lex_hash_SOURCES= gen_lex_hash.cc
456
 
 
457
 
gen_lex_hash_LDFLAGS= 
458
 
 
459
 
 
460
 
libserialutil_la_SOURCES = db.cc unireg.cc
461
 
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${NO_SHADOW}
462
 
 
463
 
libhandler_la_SOURCES = handler.cc handlerton.cc
464
 
 
465
 
AM_YFLAGS = -p DRIZZLE -d --verbose
466
 
 
467
 
# This may seem silly, but it's required to get the object files prefixed
468
 
# with libitem_ so that item/field.cc and field.cc don't conflict.
469
 
libitem_la_CXXFLAGS = ${AM_CXXFLAGS}
470
 
libitem_la_SOURCES= \
471
 
                item/bin_string.cc \
472
 
                item/cache.cc \
473
 
                item/cache_decimal.cc \
474
 
                item/cache_int.cc \
475
 
                item/cache_real.cc \
476
 
                item/cache_row.cc \
477
 
                item/cache_str.cc \
478
 
                item/cmpfunc.cc \
479
 
                item/copy_string.cc \
480
 
                item/create.cc \
481
 
                item/decimal.cc \
482
 
                item/direct_ref.cc \
483
 
                item/empty_string.cc \
484
 
                item/field.cc \
485
 
                item/float.cc \
486
 
                item/hex_string.cc \
487
 
                item/insert_value.cc \
488
 
                item/int_with_ref.cc \
489
 
                item/ident.cc \
490
 
                item/int.cc \
491
 
                item/null.cc \
492
 
                item/num.cc \
493
 
                item/outer_ref.cc \
494
 
                item/param.cc \
495
 
                item/ref.cc \
496
 
                item/ref_null_helper.cc \
497
 
                item/row.cc \
498
 
                item/string.cc \
499
 
                item/subselect.cc \
500
 
                item/sum.cc \
501
 
                item/type_holder.cc \
502
 
                item/uint.cc
503
 
 
504
 
 
505
 
libutil_la_CXXFLAGS = ${AM_CXXFLAGS}
506
 
libutil_la_SOURCES = \
507
 
                util/math.cc
508
 
 
509
 
 
510
 
libfield_la_CXXFLAGS = ${AM_CXXFLAGS}
511
 
libfield_la_LIBADD= libutil.la
512
 
libfield_la_SOURCES = \
513
366
                field/blob.cc \
514
367
                field/date.cc \
515
368
                field/datetime.cc \
525
378
                field/str.cc \
526
379
                field/timestamp.cc \
527
380
                field/timetype.cc \
528
 
                field/varstring.cc
529
 
 
530
 
 
531
 
libfunction_la_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${PROTOBUF_CFLAGS}
532
 
libfunction_la_LIBADD= libutil.la
533
 
libfunction_la_SOURCES = \
 
381
                field/varstring.cc \
 
382
                field.cc \
 
383
                field_conv.cc \
 
384
                field_iterator.cc \
 
385
                filesort.cc \
534
386
                function/ascii.cc \
535
387
                function/additive_op.cc \
536
388
                function/benchmark.cc \
540
392
                function/check_reserved_words.cc \
541
393
                function/connection_id.cc \
542
394
                function/coercibility.cc \
543
 
                function/get_user_var.cc \
544
 
                function/get_variable.cc \
545
395
                function/field.cc \
546
396
                function/find_in_set.cc \
547
397
                function/found_rows.cc \
548
398
                function/func.cc \
549
399
                function/get_system_var.cc \
 
400
                function/get_user_var.cc \
550
401
                function/get_variable.cc \
551
402
                function/last_insert.cc \
552
403
                function/length.cc \
665
516
                function/time/typecast.cc \
666
517
                function/time/unix_timestamp.cc \
667
518
                function/time/weekday.cc \
668
 
                function/time/year.cc
 
519
                function/time/year.cc \
 
520
                ha_trx_info.cc \
 
521
                hybrid_type_traits.cc \
 
522
                hybrid_type_traits_decimal.cc \
 
523
                hybrid_type_traits_integer.cc \
 
524
                item/bin_string.cc \
 
525
                item/cache.cc \
 
526
                item/cache_decimal.cc \
 
527
                item/cache_int.cc \
 
528
                item/cache_real.cc \
 
529
                item/cache_row.cc \
 
530
                item/cache_str.cc \
 
531
                item/cmpfunc.cc \
 
532
                item/copy_string.cc \
 
533
                item/create.cc \
 
534
                item/decimal.cc \
 
535
                item/direct_ref.cc \
 
536
                item/empty_string.cc \
 
537
                item/field.cc \
 
538
                item/float.cc \
 
539
                item/hex_string.cc \
 
540
                item/insert_value.cc \
 
541
                item/int_with_ref.cc \
 
542
                item/ident.cc \
 
543
                item/int.cc \
 
544
                item/null.cc \
 
545
                item/num.cc \
 
546
                item/outer_ref.cc \
 
547
                item/param.cc \
 
548
                item/ref.cc \
 
549
                item/ref_null_helper.cc \
 
550
                item/row.cc \
 
551
                item/string.cc \
 
552
                item/subselect.cc \
 
553
                item/sum.cc \
 
554
                item/type_holder.cc \
 
555
                item/uint.cc \
 
556
                item.cc \
 
557
                key.cc \
 
558
                key_map.cc \
 
559
                lock.cc \
 
560
                log.cc \
 
561
                logging.cc \
 
562
                mf_iocache.cc \
 
563
                my_decimal.cc \
 
564
                name_resolution_context_state.cc \
 
565
                natural_join_column.cc \
 
566
                opt_range.cc \
 
567
                opt_sum.cc \
 
568
                parser.cc \
 
569
                protocol.cc \
 
570
                qcache.cc \
 
571
                query_id.cc \
 
572
                records.cc \
 
573
                rename.cc \
 
574
                replicator.cc \
 
575
                scheduling.cc \
 
576
                session.cc \
 
577
                set_var.cc \
 
578
                show.cc \
 
579
                sj_tmp_table.cc \
 
580
                sql_base.cc \
 
581
                sql_builtin.cc \
 
582
                sql_client.cc \
 
583
                sql_connect.cc \
 
584
                sql_delete.cc \
 
585
                sql_derived.cc \
 
586
                sql_error.cc \
 
587
                sql_handler.cc \
 
588
                sql_insert.cc \
 
589
                sql_lex.cc \
 
590
                sql_list.cc \
 
591
                sql_load.cc \
 
592
                sql_locale.cc \
 
593
                sql_olap.cc \
 
594
                sql_parse.cc \
 
595
                sql_plugin.cc \
 
596
                sql_select.cc \
 
597
                sql_state.cc \
 
598
                sql_string.cc \
 
599
                sql_table.cc \
 
600
                sql_udf.cc \
 
601
                sql_union.cc \
 
602
                sql_update.cc \
 
603
                sql_yacc.yy \
 
604
                stacktrace.cc \
 
605
                strfunc.cc \
 
606
                table.cc \
 
607
                table_map_iterator.cc \
 
608
                tableop_hooks.cc \
 
609
                temporal.cc \
 
610
                temporal_format.cc \
 
611
                thr_malloc.cc \
 
612
                time.cc \
 
613
                tmp_table.cc \
 
614
                tztime.cc \
 
615
                uniques.cc \
 
616
                util/math.cc \
 
617
                virtual_column_info.cc \
 
618
                xid.cc
 
619
 
 
620
if BUILD_DTRACE
 
621
drizzled_SOURCES += probes.d
 
622
endif
 
623
 
 
624
libserialutil_la_SOURCES = db.cc unireg.cc
 
625
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
 
626
 
 
627
libhandler_la_SOURCES = handler.cc handlerton.cc
 
628
 
 
629
AM_YFLAGS = -p DRIZZLE -d --verbose
669
630
 
670
631
 
671
632
if BUILD_GCC_PCH
685
646
                  sql_yacc.h
686
647
 
687
648
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
688
 
                lex_hash.h \
 
649
                symbol_hash.h \
 
650
                function_hash.h \
689
651
                $(PCHHEADERS)
690
652
 
691
653
EXTRA_DIST = \
692
654
                $(BUILT_MAINT_SRC) \
 
655
                symbol_hash.gperf \
 
656
                function_hash.gperf \
693
657
                drizzledumpslow \
694
658
                message.mc \
695
659
                probes.d
706
670
 
707
671
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
708
672
 
709
 
# This generates lex_hash.h
710
 
# NOTE Built sources should depend on their sources not the tool
711
 
# this avoid the rebuild of the built files in a source dist
712
 
lex_hash.h: gen_lex_hash$(EXEEXT) \
713
 
        $(srcdir)/lex.h
714
 
        $(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
715
 
 
716
673
probes.h: probes.d
717
674
        $(DTRACE) $(DTRACEFLAGS) -h -s probes.d
718
675
        mv probes.h probes.h.bak
720
677
        rm probes.h.bak
721
678
 
722
679
 
723
 
SUFFIXES = .d .gch
 
680
SUFFIXES = .d .gch .gperf
724
681
 
725
682
if BUILD_GCC_PCH
726
683
.h.gch:
729
686
 
730
687
.d.o : $(DTRACEFILES)
731
688
        $(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
 
689
 
 
690
function_hash.h: function_hash.gperf
 
691
        $(GPERF) --initializer-suffix=,0 --struct-type --enum \
 
692
                --omit-struct-type --readonly-tables --language=C++ \
 
693
                --class-name=Function_hash \
 
694
                function_hash.gperf  > function_hash.h-t
 
695
        @if ! diff function_hash.h-t function_hash.h >/dev/null 2>&1  ; then \
 
696
                mv function_hash.h-t function_hash.h ; \
 
697
        fi
 
698
 
 
699
symbol_hash.h: symbol_hash.gperf
 
700
        $(GPERF) --initializer-suffix=,0 --struct-type --enum \
 
701
                --omit-struct-type --readonly-tables --language=C++ \
 
702
                --class-name=Symbol_hash \
 
703
                symbol_hash.gperf > symbol_hash.h-t
 
704
        @if ! diff symbol_hash.h-t symbol_hash.h >/dev/null 2>&1  ; then \
 
705
                mv symbol_hash.h-t symbol_hash.h ; \
 
706
        fi
 
707