CC = javac ALGS4 = ../../algs4 BIN = BoggleSolver SRCS = BoggleSolver.java BoggleHybridTST.java CLASSPATH = -classpath '.:$(ALGS4)/algs4.jar:$(ALGS4)/stdlib.jar' .SUFFIXES: .SUFFIXES: .java .class .PHONY: clean $(BIN) .java.class: $(CC) -Xlint $(CLASSPATH) $< -$(ALGS4)/bin/checkstyle $< BoggleBoard.class: BoggleBoard.java $(CC) -Xlint $(CLASSPATH) $< BoggleGame.class: BoggleGame.java $(CC) -nowarn $(CLASSPATH) $< $(BIN): $(BIN).class test: $(BIN) BoggleHybridTST.class -@rm out java $(CLASSPATH) BoggleHybridTST ./data/dictionary-zingarelli2005.txt > out java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board4x4.txt >> out java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-q.txt >> out -@diff out ref && echo "SUCCESS" || echo "ERROR" timing: $(BIN) BoggleHybridTST.class BoggleSolverDicho.class java $(CLASSPATH) $(BIN) timing java $(CLASSPATH) BoggleSolverDicho timing game: $(BIN) BoggleBoard.class BoggleGame.class BoggleHybridTST.class java $(CLASSPATH) BoggleGame dicho: BoggleSolverDicho.class -@rm out java $(CLASSPATH) BoggleHybridTST ./data/dictionary-zingarelli2005.txt > out java $(CLASSPATH) BoggleSolverDicho ./data/dictionary-algs4.txt ./data/board4x4.txt >> out java $(CLASSPATH) BoggleSolverDicho ./data/dictionary-algs4.txt ./data/board-q.txt >> out -@diff out ref && echo "SUCCESS" || echo "ERROR" zip: $(BIN) $(ALGS4)/bin/findbugs $(BIN).class rm -f *.zip zip boggle.zip $(SRCS) clean: rm -f *.class *.zip check.sh $(BIN)