view Makefile @ 138:9eb791e2fa17

Optimize board updating logic, so that the old placed tiles need not to be redrawn from scratch on each screen update, as they do not change usually.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Nov 2011 11:04:09 +0200
parents 881deac2daf8
children b0c05b8b59ca
line wrap: on
line source

# Settings, directories
RUN=Ristipolku.class

RESOURCES=graphics/*.png graphics/*.jpg graphics/font.ttf sounds/*.wav

CLASSES=game/G.class \
	game/Piece.class game/PieceType.class \
	game/Engine.class game/Interpolate.class \
	game/ResourceLoader.class \
	game/Sound.class game/SoundManager.class \
	game/IDMPoint.class game/IDMWidget.class \
	game/IDMButton.class game/IDMContainer.class \
	game/AnimatedPointElement.class

# Utils
JAVAC=javac -g -Xlint:unchecked
APPLETVIEWER=aoss appletviewer

###
### Targets
###
TARGETS=$(RUN)

all: $(TARGETS)

game/%.class: game/%.java
	$(JAVAC) $<

Ristipolku.class: Ristipolku.java $(CLASSES)
	$(JAVAC) $<


run: $(RUN)
	$(APPLETVIEWER) $(patsubst %.class,%.html,$<)


###
### Package
###
Ristipolku.jar: $(RUN) $(RESOURCES)
	jar cvfm $@ manifest.txt $+ game/*.class


upload: Ristipolku.jar
	@scp $+ ccr@tnsp.org:public_html/ristipolku/
	$(RM) $<


###
### Cleanup
###
clean:
	$(RM) $(TARGETS) *.class game/*.class


srcclean: clean
	$(RM) *~ game/*~ graphics/*~

# dummy