-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (32 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
all: compile
compile: clean
mkdir -p int/ast_classes bin src/java_cup/anttask src/java_cup/runtime
cp src/ast_classes/src/*.java int/ast_classes/
rm int/ast_classes/Main.java
cp src/*.d bin/
cp src/NSScanner.flex int/
cp src/NSParser.cup int/
cp src/java_cup.jar int/
cp src/ast_classes/src/Main.java int/
java -jar src/java_cup.jar -parser NSParser -destdir int/ int/NSParser.cup
java -jar src/jflex.jar int/NSScanner.flex -d int/
javac int/sym.java
javac int/ast_classes/*.java
javac -classpath ./int/java_cup.jar:./int:./int/ast_classes int/NSParser.java
javac -classpath ./int/java_cup.jar:./int:./int/ast_classes int/NSScanner.java
javac -classpath ./int/java_cup.jar:./int:./int/ast_classes int/Main.java
cp src/jar_manifest .
cp -R src/java_cup .
cp int/*.class .
cp int/ast_classes/*.class .
jar cmf jar_manifest nated.jar *.class java_cup
mv nated.jar bin/
rm -f *.class
rm -rf java_cup
rm -f jar_manifest
clean:
rm -fr int
rm -fr bin
rm -f *.class
rm -fr java_cup
rm -f jar_manifest