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