~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/Makefile.am

  • Committer: Monty Taylor
  • Date: 2009-01-30 00:53:14 UTC
  • mto: (779.3.19 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090130005314-3ufwrbqxnxu2aevi
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!

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
19
bin_PROGRAMS =
22
20
 
23
21
bin_SCRIPTS =   drizzledumpslow \
266
264
                key_map.h \
267
265
                key_part_spec.h \
268
266
                korr.h \
269
 
                lex.h \
270
267
                lex_string.h \
271
268
                lex_symbol.h \
272
269
                lock.h \
455
452
drizzled_SOURCES += probes.d
456
453
endif
457
454
 
458
 
gen_lex_hash_SOURCES= gen_lex_hash.cc
459
 
 
460
 
gen_lex_hash_LDFLAGS= 
461
 
 
462
 
 
463
455
libserialutil_la_SOURCES = db.cc unireg.cc
464
456
libserialutil_la_CXXFLAGS= ${AM_CXXFLAGS} ${NO_SHADOW}
465
457
 
691
683
                  sql_yacc.h
692
684
 
693
685
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
694
 
                lex_hash.h \
 
686
                symbol_hash.h \
 
687
                function_hash.h \
695
688
                $(PCHHEADERS)
696
689
 
697
690
EXTRA_DIST = \
698
691
                $(BUILT_MAINT_SRC) \
 
692
                symbol_hash.gperf \
 
693
                function_hash.gperf \
699
694
                drizzledumpslow \
700
695
                message.mc \
701
696
                probes.d
712
707
 
713
708
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
714
709
 
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
710
probes.h: probes.d
723
711
        $(DTRACE) $(DTRACEFLAGS) -h -s probes.d
724
712
        mv probes.h probes.h.bak
726
714
        rm probes.h.bak
727
715
 
728
716
 
729
 
SUFFIXES = .d .gch
 
717
SUFFIXES = .d .gch .gperf
730
718
 
731
719
if BUILD_GCC_PCH
732
720
.h.gch:
735
723
 
736
724
.d.o : $(DTRACEFILES)
737
725
        $(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
 
726
 
 
727
function_hash.h: function_hash.gperf
 
728
        $(GPERF) --initializer-suffix=,0 --struct-type --enum \
 
729
                --omit-struct-type --readonly-tables --language=C++ \
 
730
                --class-name=Function_hash \
 
731
                function_hash.gperf  > function_hash.h-t
 
732
        @if ! diff function_hash.h-t function_hash.h >/dev/null 2>&1  ; then \
 
733
                mv function_hash.h-t function_hash.h ; \
 
734
        fi
 
735
 
 
736
symbol_hash.h: symbol_hash.gperf
 
737
        $(GPERF) --initializer-suffix=,0 --struct-type --enum \
 
738
                --omit-struct-type --readonly-tables --language=C++ \
 
739
                --class-name=Symbol_hash \
 
740
                symbol_hash.gperf > symbol_hash.h-t
 
741
        @if ! diff symbol_hash.h-t symbol_hash.h >/dev/null 2>&1  ; then \
 
742
                mv symbol_hash.h-t symbol_hash.h ; \
 
743
        fi
 
744