~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/Makefile.am

  • Committer: Monty Taylor
  • Date: 2009-01-30 04:45:55 UTC
  • mfrom: (779.4.10 devel)
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090130044555-ntb3509c8o6e3sb5
MergedĀ fromĀ me.

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