comparison Makefile @ 26:3d4cc47df31a

Cleanups, fix piece rendering and rotation.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 01 Feb 2011 19:18:25 +0200
parents bbac3e4a4b9b
children 26adc2827983
comparison
equal deleted inserted replaced
25:bbac3e4a4b9b 26:3d4cc47df31a
1 # Settings, directories 1 # Settings, directories
2 RUN=Ristipolku.class 2 RUN=Ristipolku.class
3 3
4 RESOURCES=graphics/*.png graphics/*.jpg graphics/font.ttf sounds/*.wav 4 RESOURCES=graphics/*.png graphics/*.jpg graphics/font.ttf sounds/*.wav
5 5
6 CLASSES=game/Piece.java game/PieceType.java game/Engine.java game/Interpolate.java game/ResourceLoader.java 6 CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class game/ResourceLoader.class
7 7
8 # Utils 8 # Utils
9 JAVAC=javac -g 9 JAVAC=javac -g
10 APPLETVIEWER=appletviewer 10 APPLETVIEWER=appletviewer
11 11
14 ### 14 ###
15 TARGETS=$(RUN) 15 TARGETS=$(RUN)
16 16
17 all: $(TARGETS) 17 all: $(TARGETS)
18 18
19 game/%.class: game/%.java
20 $(JAVAC) $<
19 21
20 Ristipolku.class: Ristipolku.java $(CLASSES) 22 Ristipolku.class: Ristipolku.java $(CLASSES)
21 $(JAVAC) $< 23 $(JAVAC) $<
22 24
23 25
27 29
28 ### 30 ###
29 ### Package 31 ### Package
30 ### 32 ###
31 Ristipolku.jar: $(RUN) $(CLASSES) $(RESOURCES) 33 Ristipolku.jar: $(RUN) $(CLASSES) $(RESOURCES)
32 jar cvfm $@ manifest.txt $(RUN) game/*.class $(RESOURCES) 34 jar cvfm $@ manifest.txt $+
33 35
34 36
35 upload: Ristipolku.jar 37 upload: Ristipolku.jar
36 @scp $+ ccr@tnsp.org:public_html/ristipolku/ 38 @scp $+ ccr@tnsp.org:public_html/ristipolku/
37 $(RM) $< 39 $(RM) $<