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:
466 bytes
|
Line | |
---|
1 | JAVA=java
|
---|
2 | JAVAC=javac
|
---|
3 | JFLEX=jflex
|
---|
4 | CUP=$(JAVA) java_cup.Main <
|
---|
5 |
|
---|
6 | all: test
|
---|
7 |
|
---|
8 | test: output.txt
|
---|
9 | @(diff output.txt output.good && echo "Test OK!") || echo "Test failed!"
|
---|
10 |
|
---|
11 | output.txt: Main.class test.txt
|
---|
12 | $(JAVA) Main test.txt > output.txt
|
---|
13 |
|
---|
14 | Main.class: Main.java Lexer.java parser.java
|
---|
15 |
|
---|
16 | %.class: %.java
|
---|
17 | $(JAVAC) $^
|
---|
18 |
|
---|
19 | Lexer.java: lcalc.flex
|
---|
20 | $(JFLEX) lcalc.flex
|
---|
21 |
|
---|
22 | parser.java: ycalc.cup
|
---|
23 | $(CUP) ycalc.cup
|
---|
24 |
|
---|
25 | clean:
|
---|
26 | rm -f parser.java Lexer.java sym.java output.txt *.class *~
|
---|
Note:
See
TracBrowser
for help on using the repository browser.