summaryrefslogtreecommitdiff
path: root/ragel/Makefile.am
blob: 48999ad11772d31f30d3b033fc5908ba6d8d6266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

INCLUDES = -I$(top_srcdir)/aapl

bin_PROGRAMS = ragel

ragel_CXXFLAGS = -Wall

ragel_SOURCES = \
	buffer.h cdgoto.h cscodegen.h csipgoto.h inputdata.h rbxgoto.h \
	rubyflat.h cdcodegen.h cdipgoto.h csfflat.h cssplit.h javacodegen.h \
	redfsm.h rubyftable.h cdfflat.h cdsplit.h csfgoto.h cstable.h \
	parsedata.h rlparse.h rubytable.h cdfgoto.h cdtable.h csflat.h \
	dotcodegen.h parsetree.h rlscan.h version.h cdflat.h common.h \
	csftable.h fsmgraph.h pcheck.h rubycodegen.h xmlcodegen.h cdftable.h \
	csgoto.h gendata.h ragel.h rubyfflat.h \
	gocodegen.h gotable.h goftable.h goflat.h gofflat.h gogoto.h gofgoto.h \
	goipgoto.h gotablish.h \
	mlcodegen.h mltable.h mlftable.h mlflat.h mlfflat.h mlgoto.h mlfgoto.h \
	main.cpp parsetree.cpp parsedata.cpp fsmstate.cpp fsmbase.cpp \
	fsmattach.cpp fsmmin.cpp fsmgraph.cpp fsmap.cpp rlscan.cpp rlparse.cpp \
	inputdata.cpp common.cpp redfsm.cpp gendata.cpp cdcodegen.cpp \
	cdtable.cpp cdftable.cpp cdflat.cpp cdfflat.cpp cdgoto.cpp cdfgoto.cpp \
	cdipgoto.cpp cdsplit.cpp javacodegen.cpp rubycodegen.cpp rubytable.cpp \
	rubyftable.cpp rubyflat.cpp rubyfflat.cpp rbxgoto.cpp cscodegen.cpp \
	cstable.cpp csftable.cpp csflat.cpp csfflat.cpp csgoto.cpp csfgoto.cpp \
	csipgoto.cpp cssplit.cpp dotcodegen.cpp xmlcodegen.cpp \
	gocodegen.cpp gotable.cpp goftable.cpp goflat.cpp gofflat.cpp gogoto.cpp gofgoto.cpp \
	goipgoto.cpp gotablish.cpp \
	mlcodegen.cpp mltable.cpp mlftable.cpp mlflat.cpp mlfflat.cpp mlgoto.cpp mlfgoto.cpp

BUILT_SOURCES = \
	rlscan.cpp rlparse.h rlparse.cpp version.h

version.h: Makefile
	echo '#define VERSION "$(PACKAGE_VERSION)"' > version.h
	echo '#define PUBDATE "$(PUBDATE)"' >> version.h

EXTRA_DIST = rlscan.rl rlparse.kh rlparse.kl

if BUILD_PARSERS

CLEANFILES = \
	rlscan.cpp rlparse.h rlparse.cpp

rlparse.h: rlparse.kh
	kelbt -o $@ $<

rlparse.cpp: rlparse.kl rlparse.kh
	kelbt -o $@ $<

# This dependency comes from the import of the parser defines
# into the scanner.
rlscan.cpp: rlparse.h

rlscan.cpp: rlscan.rl
	ragel -G2 -I$(builddir) -o $@ $<

endif