JAVA_HOME=/usr/csshare/pkgs/jdk1.5.0_05 JAVA=$(JAVA_HOME)/bin/java JAVAC=$(JAVA_HOME)/bin/javac JFLEX_HOME=/usr/csshare/pkgs/jflex-1.4.1 CLASSPATH=$(JFLEX_HOME)/lib/JFlex.jar:$(JAVA_HOME)/jre/lib/ext/java-cup-v11a.jar:./syntaxtree.jar:./visitor.jar:. all: parser scanner A3 A4 A3: Lexer.java Parser.java Sym.java $(JAVAC) -classpath $(CLASSPATH) Lexer.java Parser.java Sym.java A4: Main.java $(JAVAC) -classpath $(CLASSPATH) Main.java PrettyPrintVisitor.java parser: MiniJava.cup $(JAVA) -classpath $(CLASSPATH) java_cup.Main -parser Parser -symbols Sym MiniJava.cup scanner: MiniJava.jflex $(JAVA) -classpath $(CLASSPATH) JFlex.Main MiniJava.jflex clean: rm -f *~ *.class Lexer.java Parser.java Sym.java