1 RAGEL = ../../ragel/ragel
2 RLCODEGEN = ../../rlcodegen/rlcodegen
8 statechart: statechart.o
9 g++ -g -o statechart statechart.o
11 statechart.cpp: statechart.rl $(RAGEL) $(RLCODEGEN)
12 $(RAGEL) statechart.rl | $(RLCODEGEN) -G2 -o statechart.cpp
14 statechart.o: statechart.cpp
15 g++ -Wall -g -c -O3 -o $@ $<
17 statechart.ps: statechart.rl $(RAGEL) $(RLCODEGEN)
18 $(RAGEL) statechart.rl | $(RLCODEGEN) -V | dot -Tps > statechart.ps
21 rm -Rf *.o statechart.cpp statechart statechart.ps