summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/2-SeamCarving/Makefile
blob: 8a7d1c1664fd3ddcad913f657ce1686e7523c078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)