2 # Copyright 2002-2009 Adrian Thurston <thurston@complang.org>
5 # This file is part of Ragel.
7 # Ragel is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # Ragel is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with Ragel; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 RAGEL = ../ragel/ragel
26 atoi awkemu clang concurrent cppscan format gotocallret mailbox params \
27 pullscan rlscan statechart
30 gotocallret.rl pullscan.rl concurrent.rl rlscan.rl statechart.rl \
31 params.rl clang.rl cppscan.rl format.rl awkemu.rl mailbox.rl atoi.rl
33 gotocallret_SOURCES = gotocallret.cpp
34 pullscan_SOURCES = pullscan.c
35 concurrent_SOURCES = concurrent.cpp
36 rlscan_SOURCES = rlscan.cpp
37 statechart_SOURCES = statechart.cpp
38 params_SOURCES = params.c
39 clang_SOURCES = clang.c
40 cppscan_SOURCES = cppscan.cpp
41 format_SOURCES = format.c
42 awkemu_SOURCES = awkemu.c
43 mailbox_SOURCES = mailbox.cpp
44 atoi_SOURCES = atoi.cpp
46 gotocallret.cpp: gotocallret.rl
47 $(RAGEL) -G2 -o gotocallret.cpp gotocallret.rl
49 pullscan.c: pullscan.rl $(RAGEL)
50 $(RAGEL) -G2 -o $@ pullscan.rl
52 concurrent.cpp: concurrent.rl $(RAGEL)
53 $(RAGEL) -G2 -o concurrent.cpp concurrent.rl
56 $(RAGEL) -G2 -o rlscan.cpp rlscan.rl
58 statechart.cpp: statechart.rl
59 $(RAGEL) -G2 -o statechart.cpp statechart.rl
62 $(RAGEL) -G2 -o params.c params.rl
65 $(RAGEL) -G2 -o clang.c clang.rl
67 cppscan.cpp: cppscan.rl
68 $(RAGEL) -G2 -o $@ cppscan.rl
71 $(RAGEL) -G2 -o format.c format.rl
74 $(RAGEL) -G2 -o awkemu.c awkemu.rl
76 mailbox.cpp: mailbox.rl
77 $(RAGEL) -G2 -o mailbox.cpp mailbox.rl
80 $(RAGEL) -G2 -o atoi.cpp atoi.rl
84 lex-cppscan.cpp: cppscan.lex
87 re2c-cppscan.cpp: cppscan.rec
90 example.cpp: example.rec