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