Mercurial > hg > ristipolku
annotate Makefile @ 182:88b364dfd501
Rememeber to add the new class to build system ..
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Mar 2017 12:23:17 +0200 |
parents | 0303db4df28f |
children | 189cd8fe2304 |
rev | line source |
---|---|
1 | 1 # Settings, directories |
12 | 2 RUN=Ristipolku.class |
165 | 3 JARFILE=Ristipolku.jar |
13 | 4 |
165 | 5 SRC=game |
6 RESOURCES=\ | |
7 graphics/*.png \ | |
8 graphics/*.jpg \ | |
9 graphics/font.ttf \ | |
10 sounds/*.wav | |
13 | 11 |
165 | 12 CLASSES=G.class \ |
13 Piece.class PieceType.class \ | |
14 Engine.class Interpolate.class \ | |
15 ResourceLoader.class \ | |
16 Sound.class SoundManager.class \ | |
17 IDMPoint.class IDMWidget.class \ | |
18 IDMButton.class IDMContainer.class \ | |
182
88b364dfd501
Rememeber to add the new class to build system ..
Matti Hamalainen <ccr@tnsp.org>
parents:
165
diff
changeset
|
19 IDMWindow.class \ |
165 | 20 AnimatedPointElement.class |
1 | 21 |
22 # Utils | |
165 | 23 JAVAC=javac |
24 JAVAC_FLAGS=-g -Xlint:unchecked | |
133
881deac2daf8
Some more work on scaling widgets, etc.
Matti Hamalainen <ccr@tnsp.org>
parents:
128
diff
changeset
|
25 APPLETVIEWER=aoss appletviewer |
1 | 26 |
165 | 27 |
1 | 28 ### |
29 ### Targets | |
30 ### | |
18 | 31 TARGETS=$(RUN) |
13 | 32 |
1 | 33 all: $(TARGETS) |
34 | |
165 | 35 $(SRC)/%.class: $(SRC)/%.java |
36 $(JAVAC) $(JAVAC_FLAGS) $< | |
1 | 37 |
165 | 38 Ristipolku.class: Ristipolku.java $(addprefix $(SRC)/,$(CLASSES)) |
39 $(JAVAC) $(JAVAC_FLAGS) $< | |
9 | 40 |
1 | 41 |
42 run: $(RUN) | |
43 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | |
44 | |
45 | |
12 | 46 ### |
47 ### Package | |
48 ### | |
165 | 49 $(JARFILE): $(RUN) $(RESOURCES) |
50 jar cvfm $@ manifest.txt $+ $(SRC)/*.class | |
13 | 51 |
12 | 52 |
165 | 53 upload: $(JARFILE) |
150 | 54 @scp $+ ccr@tnsp.org:tnsp/ristipolku/ |
18 | 55 $(RM) $< |
12 | 56 |
57 | |
58 ### | |
59 ### Cleanup | |
60 ### | |
1 | 61 clean: |
165 | 62 $(RM) $(TARGETS) *.class $(SRC)/*.class |
1 | 63 |
64 | |
65 srcclean: clean | |
162
e8eeac403e5f
Backed out changeset fb33d3796942
Matti Hamalainen <ccr@tnsp.org>
parents:
161
diff
changeset
|
66 $(RM) *~ game/*~ graphics/*~ |
12 | 67 |
1 | 68 # dummy |