13f9818d5c21bd404835a092d35483be4ec4bd21
[external/ragel.git] / examples / gotocallret / Makefile
1 RAGEL = ../../ragel/ragel
2 RLCODEGEN = ../../rlcodegen/rlcodegen
3
4 all: gotocallret
5
6 ps: gotocallret.ps
7
8 gotocallret: gotocallret.o
9         g++ -g -o gotocallret gotocallret.o 
10
11 gotocallret.cpp: gotocallret.rl $(RAGEL) $(RLCODEGEN)
12         $(RAGEL) gotocallret.rl | $(RLCODEGEN) -G2 -o gotocallret.cpp
13
14 gotocallret.o: gotocallret.cpp
15         g++ -Wall -g -c -O3 -o $@ $<
16
17 gotocallret.ps: gotocallret.rl $(RAGEL) $(RLCODEGEN)
18         $(RAGEL) gotocallret.rl | $(RLCODEGEN) -V | dot -Tps > gotocallret.ps
19
20 distclean clean:
21         rm -Rf *.o gotocallret.cpp gotocallret gotocallret.ps