summaryrefslogtreecommitdiff
path: root/test/rlparse.d/Makefile.am
blob: fd4cdb9de1ae50a71a4efe11a823ef6997731a0e (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
COLM_BIN = ../../src/colm
COLM_xCPPFLAGS = -I../../src/include
COLM_xLDFLAGS = -L../../src

noinst_PROGRAMS = rlparse

rlparse_SOURCES = parse.c if.h if.cc commit.cc \
	actparams.cc parsetree.cc parsedata.cc \
	common.cc fsmap.cc fsmbase.cc idbase.cc \
	load.cc reducer.cc inputdata.cc fsmgraph.cc \
	main.cc dump.cc reducer.h vector.h inputdata.h \
	table.h gendata.h common.h ragel.h parsedata.h \
	action.h parsetree.h redfsm.h fsmgraph.h pcheck.h \
	load.h version.h config.h buffer.h \
	avlbasic.h avlcommon.h avlibasic.h avlikeyless.h \
	avlimap.h avlimel.h avlimelkey.h avliset.h avlitree.h \
	avlkeyless.h avlmap.h avlmel.h avlmelkey.h avlset.h \
	avltree.h compare.h bstcommon.h bstmap.h bstset.h \
	bsttable.h dlcommon.h dlist.h dlistmel.h dlistval.h \
	bubblesort.h mergesort.h sbstmap.h sbstset.h sbsttable.h \
	svector.h

rlparse_CPPFLAGS = $(COLM_xCPPFLAGS)
rlparse_LDADD = -lcolm
rlparse_LDFLAGS = $(COLM_xLDFLAGS)

EXTRA_DIST = \
	reducer.lm rlparse.lm ragel.lm \
	ragel-c.lm ragel-crack.lm ragel-ocaml.lm \
	ragel-ruby.lm gentests \
	case/rlparse.h case/rlscan.rl \
	case/rlscan--colm-frontend.exp case/rlscan--reduce-frontend.exp

BUILT_SOURCES = parse.c if.h if.cc commit.cc

parse.c: rlparse.lm reducer.lm $(RAGEL_LM) $(COLM_BIN)
	$(COLM_BIN) -c -b rlparse_object -o $@ -e if.h -x if.cc -m commit.cc $<

if.h: parse.c
if.cc: parse.c
commit.cc: parse.c