Initialize Tizen 2.3
[external/ragel.git] / examples / Makefile.am
1 #
2 #   Copyright 2002-2009 Adrian Thurston <thurston@complang.org>
3 #
4
5 #   This file is part of Ragel.
6 #
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.
11 #
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.
16 #
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 
20
21 RAGEL = ../ragel/ragel
22 FLEX = flex
23 RE2C = re2c
24
25 noinst_PROGRAMS = \
26         atoi awkemu clang concurrent cppscan format gotocallret mailbox params \
27         pullscan rlscan statechart 
28
29 EXTRA_DIST = \
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
32
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
45
46 gotocallret.cpp: gotocallret.rl
47         $(RAGEL) -G2 -o gotocallret.cpp gotocallret.rl 
48
49 pullscan.c: pullscan.rl $(RAGEL) 
50         $(RAGEL) -G2 -o $@ pullscan.rl
51
52 concurrent.cpp: concurrent.rl $(RAGEL)
53         $(RAGEL) -G2 -o concurrent.cpp concurrent.rl
54
55 rlscan.cpp: rlscan.rl 
56         $(RAGEL) -G2 -o rlscan.cpp rlscan.rl
57
58 statechart.cpp: statechart.rl 
59         $(RAGEL) -G2 -o statechart.cpp statechart.rl
60
61 params.c: params.rl
62         $(RAGEL) -G2 -o params.c params.rl
63
64 clang.c: clang.rl 
65         $(RAGEL) -G2 -o clang.c clang.rl
66
67 cppscan.cpp: cppscan.rl 
68         $(RAGEL) -G2 -o $@ cppscan.rl
69
70 format.c: format.rl
71         $(RAGEL) -G2 -o format.c format.rl
72
73 awkemu.c: awkemu.rl
74         $(RAGEL) -G2 -o awkemu.c awkemu.rl
75
76 mailbox.cpp: mailbox.rl
77         $(RAGEL) -G2 -o mailbox.cpp mailbox.rl
78
79 atoi.cpp: atoi.rl
80         $(RAGEL) -G2 -o atoi.cpp atoi.rl
81
82 ###
83
84 lex-cppscan.cpp: cppscan.lex
85         $(FLEX) -f -o $@ $<
86
87 re2c-cppscan.cpp: cppscan.rec
88         $(RE2C) -s $< > $@
89
90 example.cpp: example.rec
91         $(RE2C) -s $< > $@