Makefile.am (ragel-7.0.0.10) | : | Makefile.am (ragel-7.0.0.11) | ||
---|---|---|---|---|
SUBDIRS = . host-ruby host-asm host-julia host-ocaml host-c \ | ||||
host-d host-csharp host-go host-java host-rust host-crack host-js | ||||
COLM = @COLM@ | COLM = @COLM@ | |||
COLM_LD = @COLM_LD@ | COLM_LD = @COLM_LD@ | |||
COLM_LIBDEP = @COLM_LIBDEP@ | COLM_LIBDEP = @COLM_LIBDEP@ | |||
COLM_BINDEP = @COLM_BINDEP@ | COLM_BINDEP = @COLM_BINDEP@ | |||
KELBT = @KELBT@ | KELBT = @KELBT@ | |||
RAGEL = @RAGEL@ | RAGEL = @RAGEL@ | |||
# 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 | # | |||
# libragel contains the parse tree and other parsing support code. Everything | ||||
# except the reducers, which are specific to the frontends. | ||||
lib_LTLIBRARIES = libfsm.la libragel.la | ||||
if BUILD_PROGRAM | if BUILD_PROGRAM | |||
bin_PROGRAMS = ragel | bin_PROGRAMS = ragel | |||
endif | endif | |||
include_HEADERS = \ | pkginclude_HEADERS = \ | |||
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_pkginclude_HEADERS = config.h | |||
data_DATA = ragel.lm | ||||
ragel_CPPFLAGS = -I$(top_srcdir)/aapl -DBINDIR='"@bindir@"' | # | |||
# libfsm: state machine construction and direct code generation. | ||||
# | ||||
libfsm_la_CPPFLAGS = -I$(top_srcdir)/aapl | ||||
LIBFSM_SRC = \ | dist_libfsm_la_SOURCES = \ | |||
buffer.h codegen.h binary.h binloop.h binexp.h \ | buffer.h codegen.h \ | |||
flat.h flatloop.h flatexp.h \ | actloop.h actexp.h \ | |||
tables.h \ | ||||
binary.h bingoto.h binvar.h \ | ||||
flat.h flatgoto.h flatvar.h \ | ||||
goto.h gotoloop.h gotoexp.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 binloop.cc binexp.cc \ | allocgen.cc codegen.cc \ | |||
flat.cc flatloop.cc flatexp.cc \ | actexp.cc binvar.cc \ | |||
goto.cc gotoloop.cc \ | tables.cc tabgoto.cc tabvar.cc \ | |||
gotoexp.cc ipgoto.cc dot.cc asm.cc | binary.cc bingoto.cc actloop.cc \ | |||
flat.cc flatgoto.cc flatvar.cc \ | ||||
goto.cc gotoloop.cc gotoexp.cc ipgoto.cc \ | ||||
dot.cc asm.cc | ||||
nodist_libfsm_la_SOURCES = \ | ||||
version.h | ||||
# | ||||
# libragel: ragel program minus host-specific code | ||||
# | ||||
libragel_la_CPPFLAGS = -I$(top_srcdir)/aapl -DBINDIR='"@bindir@"' | ||||
ragel_SOURCES = \ | dist_libragel_la_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 | parsetree.cc parsedata.cc inputdata.cc load.cc reducer.cc | |||
in.cc \ | ||||
$(LIBFSM_SRC) | ||||
nodist_ragel_SOURCES = version.h | # | |||
BUILT_SOURCES = version.h | # ragel program. | |||
# | ||||
ragel_CPPFLAGS = -I$(top_srcdir)/aapl | ||||
if WITH_RAGEL_KELBT | dist_ragel_SOURCES = \ | |||
nodist_ragel_SOURCES += rlscan.cc rlparse.cc rlparse.h | main.cc | |||
endif | ||||
nodist_ragel_SOURCES = \ | ||||
parse.c rlreduce.cc | ||||
ragel_LDADD = libragel.la libfsm.la $(COLM_LD) | ||||
ragel_DEPENDENCIES = libragel.la libfsm.la $(COLM_LIBDEP) | ||||
BUILT_SOURCES = \ | ||||
version.h \ | ||||
parse.c rlreduce.cc | ||||
if WITH_RAGEL_KELBT | ||||
nodist_ragel_SOURCES += \ | nodist_ragel_SOURCES += \ | |||
parse.c commit.cc | rlscan.cc rlparse.cc rlparse.h | |||
ragel_LDADD = $(COLM_LD) | BUILT_SOURCES += \ | |||
ragel_DEPENDENCIES = $(COLM_LIBDEP) | rlscan.cc rlparse.cc rlparse.h | |||
endif | ||||
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_libfsm_la_SOURCES = version.h | ||||
libfsm_la_SOURCES = $(LIBFSM_SRC) | ||||
libfsm_la_CPPFLAGS = -I$(top_srcdir)/aapl | ||||
EXTRA_DIST = \ | EXTRA_DIST = \ | |||
ragel.lm \ | $(RAGEL_LM) \ | |||
host.lm \ | ||||
rlparse.lm \ | ||||
reducer.lm \ | ||||
rlscan.rl \ | rlscan.rl \ | |||
rlparse.kh \ | rlparse.kh \ | |||
rlparse.kl | rlparse.kl | |||
CLEANFILES = parse.c 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 = \ | |||
rlparse.lm \ | ||||
ragel.lm \ | ragel.lm \ | |||
host.lm | reducer.lm | |||
parse.c: rlparse.lm reducer.lm $(RAGEL_LM) $(COLM_BINDEP) | ||||
$(COLM) -c -b rlparse_object -o $@ -m commit.cc $< | ||||
commit.cc: parse.c | parse.c: $(RAGEL_LM) $(COLM_BINDEP) | |||
$(COLM) -c -b rl_parse -o $@ -m rlreduce.cc $< | ||||
# These are necessary because we are not using built sources. They create the | rlreduce.cc: parse.c | |||
# dependency on the colm run for the objects that that require its output. Must | ||||
# create them for every target. | ||||
ragel-if.$(OBJEXT): parse.c | ||||
ragel-load.$(OBJEXT): parse.c | ||||
ragel-commit.$(OBJEXT): parse.c | ||||
ragel-reducer.$(OBJEXT): 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 \ | |||
End of changes. 21 change blocks. | ||||
44 lines changed or deleted | 66 lines changed or added |