added level editor option to sort high scores by playing time (or steps)
[rocksndiamonds.git] / graphics / gfx_classic / Makefile
1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2015 by Artsoft Entertainment
5 #                  Holger Schemel
6 #                  info@artsoft.org
7 #                  https://www.artsoft.org/
8 # -----------------------------------------------------------------------------
9 # graphics/gfx_classic/Makefile
10 # =============================================================================
11
12 # -----------------------------------------------------------------------------
13 # configuration
14 # -----------------------------------------------------------------------------
15
16 RND = ../../rocksndiamonds
17
18 RM = rm -f
19
20 # EXT = pcx
21 EXT = png
22
23 FILES = RocksBusy.$(EXT)                \
24         RocksDC.$(EXT)                  \
25         RocksDC2.$(EXT)                 \
26         RocksDF.$(EXT)                  \
27         RocksDoor.$(EXT)                \
28         RocksDoor2.$(EXT)               \
29         RocksDoorMM.$(EXT)              \
30         RocksEMC.$(EXT)                 \
31         RocksElements.$(EXT)            \
32         RocksFontBig.$(EXT)             \
33         RocksFontDC.$(EXT)              \
34         RocksFontEM.$(EXT)              \
35         RocksFontMedium.$(EXT)          \
36         RocksFontSmall.$(EXT)           \
37         RocksHeroes.$(EXT)              \
38         RocksMM.$(EXT)                  \
39         RocksMore.$(EXT)                \
40         RocksSP.$(EXT)                  \
41         RocksScreen.$(EXT)              \
42         RocksToons.$(EXT)               \
43         RocksTouch.$(EXT)               \
44                                         \
45         RocksCE.$(EXT)                  # dynamically generated from template
46
47
48 # -----------------------------------------------------------------------------
49 # build targets
50 # -----------------------------------------------------------------------------
51
52 all: $(FILES)
53
54 %.pcx: %.ilbm
55         ilbmtoppm $< | ppmtopcx > $@
56
57 %.png: %.ilbm
58         ilbmtoppm $< | pnmtopng > $@
59
60 RocksCE.png: RocksCE-template.ilbm
61 ifneq ("$(wildcard RocksCE-template.ilbm)","")
62         $(RND) -e "create CE image ."
63         bmptoppm RocksCE.bmp | pnmtopng > $@
64         $(RM) RocksCE.bmp
65 endif
66
67 RocksCE-template.ilbm:
68
69 clean:
70         @for i in $(FILES); do                  \
71                 echo "$(RM) $$i";               \
72                 $(RM) $$i;                      \
73         done
74         $(RM) RocksCE.ilbm