-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
29 lines (29 loc) · 952 Bytes
/
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
#Mark Klara
#CS1622 - Project 3
#Makefile
all:
java -jar tools/jflex-1.6.0.jar Lexer.flex
java -jar tools/java-cup-11a.jar -interface -parser Parser Parser.cup
javac -cp tools/java-cup-11a.jar *.java sym.java visitor/*.java syntaxtree/*.java symboltable/*.java helper/*.java IR/*.java linker/*.java codegen/*.java regalloc/*.java regalloc/flowgraph/*.java regalloc/graph/*.java backpatching/*.java
clean:
rm -rf *.class Lexer.java Parser.java sym.java Lexer.java~
rm -rf visitor/*.class
rm -rf syntaxtree/*.class
rm -rf symboltable/*.class
rm -rf helper/*.class
rm -rf IR/*.class
rm -rf linker/*.class
rm -rf codegen/*.class
rm -rf regalloc/*.class
rm -rf regalloc/flowgraph/*.class
rm -rf regalloc/graph/*.class
rm -rf backpatching/*.class
cleanOutput:
rm -rf samples/*.asm
clear:
clear
run:
java -cp ./tools/java-cup-11a.jar:. MiniJavaCompiler samples/$(file)
runMars:
java -jar tools/Mars4_5.jar samples/$(file)