Makefile.am (ragel-7.0.0.9) | : | Makefile.am (ragel-7.0.0.10) | ||
---|---|---|---|---|
skipping to change at line 17 | skipping to change at line 17 | |||
# Libfsm contains only the FSM construction code and the backend code | # Libfsm contains only the FSM construction code and the backend code | |||
# generators. It is useful for building code generators in programs not | # generators. It is useful for building code generators in programs not | |||
# connected to the ragel language. | # connected to the ragel language. | |||
lib_LTLIBRARIES = libfsm.la | lib_LTLIBRARIES = libfsm.la | |||
if BUILD_PROGRAM | if BUILD_PROGRAM | |||
bin_PROGRAMS = ragel | bin_PROGRAMS = ragel | |||
# Libragel includes the ragel parsers. It is the programm wrapped up with a | ||||
# libragel call in place of main. | ||||
lib_LTLIBRARIES += libragel.la | ||||
endif | endif | |||
include_HEADERS = \ | include_HEADERS = \ | |||
libragel.h action.h fsmgraph.h ragel.h common.h \ | action.h fsmgraph.h ragel.h common.h \ | |||
gendata.h redfsm.h dot.h | gendata.h redfsm.h dot.h | |||
nodist_include_HEADERS = config.h | nodist_include_HEADERS = config.h | |||
ragel_CPPFLAGS = -I$(top_srcdir)/aapl -DBINDIR='"@bindir@"' | ragel_CPPFLAGS = -I$(top_srcdir)/aapl -DBINDIR='"@bindir@"' | |||
LIBFSM_SRC = \ | LIBFSM_SRC = \ | |||
buffer.h codegen.h binary.h bingoto.h bingotoloop.h bingotoexp.h binvar.h | buffer.h codegen.h binary.h binloop.h binexp.h \ | |||
\ | flat.h flatloop.h flatexp.h \ | |||
binvarloop.h binvarexp.h flat.h flatgotoloop.h flatgotoexp.h flatvar.h \ | goto.h gotoloop.h gotoexp.h \ | |||
flatvarloop.h flatvarexp.h goto.h gotoloop.h gotoexp.h \ | ||||
ipgoto.h asm.h \ | ipgoto.h asm.h \ | |||
idbase.cc fsmstate.cc fsmbase.cc fsmattach.cc fsmmin.cc fsmgraph.cc \ | idbase.cc fsmstate.cc fsmbase.cc fsmattach.cc fsmmin.cc fsmgraph.cc \ | |||
fsmap.cc fsmcond.cc fsmnfa.cc common.cc redfsm.cc gendata.cc \ | fsmap.cc fsmcond.cc fsmnfa.cc common.cc redfsm.cc gendata.cc \ | |||
allocgen.cc codegen.cc binary.cc bingotoloop.cc bingotoexp.cc binvar.cc \ | allocgen.cc codegen.cc binary.cc binloop.cc binexp.cc \ | |||
binvarloop.cc binvarexp.cc flat.cc flatgotoloop.cc flatgotoexp.cc \ | flat.cc flatloop.cc flatexp.cc \ | |||
flatvar.cc flatvarloop.cc flatvarexp.cc goto.cc gotoloop.cc \ | goto.cc gotoloop.cc \ | |||
gotoexp.cc ipgoto.cc dot.cc asm.cc | gotoexp.cc ipgoto.cc dot.cc asm.cc | |||
ragel_SOURCES = \ | ragel_SOURCES = \ | |||
parsedata.h parsetree.h inputdata.h pcheck.h reducer.h rlscan.h load.h \ | parsedata.h parsetree.h inputdata.h pcheck.h reducer.h rlscan.h load.h \ | |||
parsetree.cc parsedata.cc inputdata.cc load.cc reducer.cc actparams.cc ma in.cc \ | parsetree.cc parsedata.cc inputdata.cc load.cc reducer.cc actparams.cc ma in.cc \ | |||
$(LIBFSM_SRC) | $(LIBFSM_SRC) | |||
nodist_ragel_SOURCES = version.h | nodist_ragel_SOURCES = version.h | |||
BUILT_SOURCES = version.h | BUILT_SOURCES = version.h | |||
if WITH_RAGEL_KELBT | if WITH_RAGEL_KELBT | |||
nodist_ragel_SOURCES += rlscan.cc rlparse.cc rlparse.h | nodist_ragel_SOURCES += rlscan.cc rlparse.cc rlparse.h | |||
endif | endif | |||
nodist_ragel_SOURCES += \ | nodist_ragel_SOURCES += \ | |||
parse.c if.h if.cc commit.cc \ | parse.c commit.cc | |||
rlhc.c | ||||
ragel_LDADD = $(COLM_LD) | ragel_LDADD = $(COLM_LD) | |||
ragel_DEPENDENCIES = $(COLM_LIBDEP) | ragel_DEPENDENCIES = $(COLM_LIBDEP) | |||
version.h: Makefile | version.h: Makefile | |||
echo '#define VERSION "$(PACKAGE_VERSION)"' > version.h | echo '#define VERSION "$(PACKAGE_VERSION)"' > version.h | |||
echo '#define PUBDATE "$(PUBDATE)"' >> version.h | echo '#define PUBDATE "$(PUBDATE)"' >> version.h | |||
nodist_libragel_la_SOURCES = $(nodist_ragel_SOURCES) | ||||
libragel_la_SOURCES = $(ragel_SOURCES) | ||||
libragel_la_CPPFLAGS = -Dmain=main_lib -I$(top_srcdir)/aapl -DBINDIR='"@bindir@" | ||||
' | ||||
nodist_libfsm_la_SOURCES = version.h | nodist_libfsm_la_SOURCES = version.h | |||
libfsm_la_SOURCES = $(LIBFSM_SRC) | libfsm_la_SOURCES = $(LIBFSM_SRC) | |||
libfsm_la_CPPFLAGS = -I$(top_srcdir)/aapl | libfsm_la_CPPFLAGS = -I$(top_srcdir)/aapl | |||
EXTRA_DIST = \ | EXTRA_DIST = \ | |||
ragel.lm \ | ragel.lm \ | |||
rlhc.lm \ | host.lm \ | |||
rlhc-host.lm \ | ||||
rlhc-c.lm \ | ||||
rlhc-d.lm \ | ||||
rlhc-csharp.lm \ | ||||
rlhc-go.lm \ | ||||
rlhc-ruby.lm \ | ||||
rlhc-java.lm \ | ||||
rlhc-rust.lm \ | ||||
rlhc-ocaml.lm \ | ||||
rlhc-crack.lm \ | ||||
rlhc-julia.lm \ | ||||
rlhc-js.lm \ | ||||
ragel-c.lm \ | ||||
ragel-crack.lm \ | ||||
ragel-ruby.lm \ | ||||
ragel-ocaml.lm \ | ||||
rlparse.lm \ | rlparse.lm \ | |||
reducer.lm \ | reducer.lm \ | |||
rlscan.rl \ | rlscan.rl \ | |||
rlparse.kh \ | rlparse.kh \ | |||
rlparse.kl | rlparse.kl | |||
CLEANFILES = parse.c if.h if.cc commit.cc rlhc.c | CLEANFILES = parse.c commit.cc rlhc.c | |||
if WITH_RAGEL_KELBT | if WITH_RAGEL_KELBT | |||
CLEANFILES += rlscan.cc rlparse.cc rlparse.h | CLEANFILES += rlscan.cc rlparse.cc rlparse.h | |||
endif | endif | |||
RAGEL_LM = \ | RAGEL_LM = \ | |||
ragel.lm \ | ragel.lm \ | |||
ragel-c.lm \ | host.lm | |||
ragel-ruby.lm \ | ||||
ragel-ocaml.lm \ | ||||
ragel-crack.lm | ||||
parse.c: rlparse.lm reducer.lm $(RAGEL_LM) $(COLM_BINDEP) | parse.c: rlparse.lm reducer.lm $(RAGEL_LM) $(COLM_BINDEP) | |||
$(COLM) -c -b rlparse_object -o $@ -e if.h -x if.cc -m commit.cc $< | $(COLM) -c -b rlparse_object -o $@ -m commit.cc $< | |||
if.cc: parse.c | ||||
if.h: parse.c | ||||
commit.cc: parse.c | commit.cc: parse.c | |||
# These are necessary because we are not using built sources. They create the | # These are necessary because we are not using built sources. They create the | |||
# dependency on the colm run for the objects that that require its output. Must | # dependency on the colm run for the objects that that require its output. Must | |||
# create them for every target. | # create them for every target. | |||
ragel-if.$(OBJEXT): parse.c | ragel-if.$(OBJEXT): parse.c | |||
ragel-load.$(OBJEXT): parse.c | ragel-load.$(OBJEXT): parse.c | |||
ragel-commit.$(OBJEXT): parse.c | ragel-commit.$(OBJEXT): parse.c | |||
ragel-reducer.$(OBJEXT): parse.c | ragel-reducer.$(OBJEXT): parse.c | |||
# Use a var for the LO extension otherwise automake will think that we are | ||||
# specifying the build rules for the files. This doesn't appear to be a problem | ||||
# for o files. | ||||
LOEXT = lo | ||||
libragel_la-if.$(LOEXT): parse.c | ||||
libragel_la-load.$(LOEXT): parse.c | ||||
libragel_la-commit.$(LOEXT): parse.c | ||||
libragel_la-reducer.$(LOEXT): parse.c | ||||
RLHC = \ | RLHC = \ | |||
rlhc-host.lm \ | rlhc-host.lm \ | |||
rlhc-c.lm \ | rlhc-c.lm \ | |||
rlhc-d.lm \ | rlhc-d.lm \ | |||
rlhc-go.lm \ | rlhc-go.lm \ | |||
rlhc-csharp.lm \ | rlhc-csharp.lm \ | |||
rlhc-java.lm \ | rlhc-java.lm \ | |||
rlhc-ruby.lm \ | rlhc-ruby.lm \ | |||
rlhc-rust.lm \ | rlhc-rust.lm \ | |||
rlhc-ocaml.lm \ | rlhc-ocaml.lm \ | |||
End of changes. 12 change blocks. | ||||
54 lines changed or deleted | 12 lines changed or added |