source: other-projects/rsyntax-textarea/devel-packages/jflex-1.4.3/examples/java/Makefile@ 25584

Last change on this file since 25584 was 25584, checked in by davidb, 12 years ago

Initial cut an a text edit area for GLI that supports color syntax highlighting

File size: 967 bytes
Line 
1# You need CUP v0.10j (or newer) for this makefile to work (for java12.cup)
2#
3# CUP classes should be included in CLASSPATH
4
5CUP = java java_cup.Main -interface <
6JFLEX = jflex
7JAVA = java
8JAVAC = javac
9#JAVAC = jikes
10JAVACFLAGS =
11
12# --------------------------------------------------
13
14all: test
15
16test: lexer-output.txt
17 @(diff lexer-output.txt lexer-output.good && echo "Test OK!") || echo "Test failed!"
18
19lexer-output.txt: compile
20 $(JAVA) TestLexer TestLexer.java > lexer-output.txt
21
22
23compile: scanner parser unicode
24 $(JAVAC) $(JAVACFLAGS) JavaParser.java TestLexer.java
25
26parser: parser.java
27
28parser.java: java12.cup
29 $(CUP) java12.cup
30
31scanner: Scanner.java
32
33Scanner.java: java.flex
34 $(JFLEX) java.flex
35
36unicode: UnicodeEscapes.java
37
38UnicodeEscapes.java: unicode.flex
39 $(JFLEX) unicode.flex
40
41clean:
42 rm -f *.class
43 rm -f *~
44 rm -f Scanner.java
45 rm -f parser.java
46 rm -f sym.java
47 rm -f UnicodeEscapes.java
48 rm -f lexer-output.txt
Note: See TracBrowser for help on using the repository browser.