summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/2-SeamCarving/Makefile
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-12-12 15:40:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-12-12 15:40:02 +0100
commite1ec44b3078a20c4e7ab85e30083063205159761 (patch)
tree195bad21bd885dc6a1f78ba741b16a1355ef4d92 /Algorithms/Part-II/2-SeamCarving/Makefile
parenta60ba769f451259caba14886fdb206593b92df76 (diff)
downloadcoursera-e1ec44b3078a20c4e7ab85e30083063205159761.zip
coursera-e1ec44b3078a20c4e7ab85e30083063205159761.tar.gz
Algorithms-II : 2-SeamCarving: add prototypes and data
Diffstat (limited to 'Algorithms/Part-II/2-SeamCarving/Makefile')
-rw-r--r--Algorithms/Part-II/2-SeamCarving/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Algorithms/Part-II/2-SeamCarving/Makefile b/Algorithms/Part-II/2-SeamCarving/Makefile
new file mode 100644
index 0000000..8a7d1c1
--- /dev/null
+++ b/Algorithms/Part-II/2-SeamCarving/Makefile
@@ -0,0 +1,28 @@
+
+CC = javac
+ALGS4 = $(HOME)/algs4
+BIN = SeamCarver
+SRCS = SeamCarver.java
+CLASSES = PrintEnergy.class PrintSeams.class ResizeDemo.class SCUtility.class ShowEnergy.class ShowSeams.class
+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
+
+run: $(BIN) $(CLASSES)
+ java $(CLASSPATH) PrintEnergy ./data/6x5.png
+ java $(CLASSPATH) PrintSeams ./data/6x5.png
+
+zip: $(BIN)
+ $(ALGS4)/bin/findbugs $(BIN).class
+ zip $(BIN).zip $(SRCS)
+
+clean:
+ rm -f *.class *.zip $(BIN)