diff options
Diffstat (limited to 'Algorithms/Part-II/3-BaseballElimination/Makefile')
-rw-r--r-- | Algorithms/Part-II/3-BaseballElimination/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Algorithms/Part-II/3-BaseballElimination/Makefile b/Algorithms/Part-II/3-BaseballElimination/Makefile new file mode 100644 index 0000000..cf2b9bb --- /dev/null +++ b/Algorithms/Part-II/3-BaseballElimination/Makefile @@ -0,0 +1,28 @@ + +CC = javac +ALGS4 = ../../algs4 +BIN = BaseballElimination +SRCS = BaseballElimination.java +CLASSPATH = -classpath '.:$(ALGS4)/algs4.jar:$(ALGS4)/stdlib.jar' + +.SUFFIXES: +.SUFFIXES: .java .class +.PHONY: clean $(BIN) + +.java.class: + $(CC) -Xlint $(CLASSPATH) $< + $(ALGS4)/bin/checkstyle $< + +$(BIN): $(BIN).class + +test: $(BIN) + java $(CLASSPATH) $(BIN) ./data/teams4.txt + java $(CLASSPATH) $(BIN) ./data/teams5.txt + +zip: $(BIN) + $(ALGS4)/bin/findbugs $(BIN).class + rm -f *.zip + zip seamCarving.zip $(SRCS) + +clean: + rm -f *.class *.zip check.sh $(BIN) |