diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-12-28 03:14:04 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-12-28 03:14:04 +0100 |
commit | b3874c6eb1e17c36d63c693f275f4d1d6ea8e8c1 (patch) | |
tree | 2df272538b0cdab3a118d5f0252742cd3bc5b85c /Algorithms/Part-II/4-Boggle/Makefile | |
parent | 19f6dfdb9f3c38e9af245131f1b0e8cffd18467b (diff) | |
download | coursera-b3874c6eb1e17c36d63c693f275f4d1d6ea8e8c1.zip coursera-b3874c6eb1e17c36d63c693f275f4d1d6ea8e8c1.tar.gz |
Algorithms-II : 4-Boggle add prototypes and data
Diffstat (limited to 'Algorithms/Part-II/4-Boggle/Makefile')
-rw-r--r-- | Algorithms/Part-II/4-Boggle/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Algorithms/Part-II/4-Boggle/Makefile b/Algorithms/Part-II/4-Boggle/Makefile new file mode 100644 index 0000000..0cd39c4 --- /dev/null +++ b/Algorithms/Part-II/4-Boggle/Makefile @@ -0,0 +1,35 @@ + +CC = javac +ALGS4 = ../../algs4 +BIN = BoggleSolver +SRCS = BoggleSolver.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) BoggleBoard.class BoggleGame.class + java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-points4.txt + java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-points5.txt + java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-points200.txt + +zip: $(BIN) + $(ALGS4)/bin/findbugs $(BIN).class + rm -f *.zip + zip boggle.zip $(SRCS) + +clean: + rm -f *.class *.zip check.sh $(BIN) |