added image files for Mirror Magic (and Deflektor) element graphics
[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 #                  http://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         RocksEMC.$(EXT)                 \
30         RocksElements.$(EXT)            \
31         RocksFontBig.$(EXT)             \
32         RocksFontDC.$(EXT)              \
33         RocksFontEM.$(EXT)              \
34         RocksFontMedium.$(EXT)          \
35         RocksFontSmall.$(EXT)           \
36         RocksHeroes.$(EXT)              \
37         RocksMM.$(EXT)                  \
38         RocksMore.$(EXT)                \
39         RocksSP.$(EXT)                  \
40         RocksScreen.$(EXT)              \
41         RocksToons.$(EXT)               \
42         overlay/VirtualButtons.$(EXT)   \
43                                         \
44         RocksCE.$(EXT)                  # dynamically generated from template
45
46
47 # -----------------------------------------------------------------------------
48 # build targets
49 # -----------------------------------------------------------------------------
50
51 all: $(FILES)
52
53 %.pcx: %.ilbm
54         ilbmtoppm $< | ppmtopcx > $@
55
56 %.png: %.ilbm
57         ilbmtoppm $< | pnmtopng > $@
58
59 RocksCE.ilbm: RocksCE-template.ilbm
60         $(RND) -e "create CE image ."
61         bmptoppm RocksCE.bmp | ppmtoilbm > RocksCE.ilbm
62         $(RM) RocksCE.bmp
63
64 clean:
65         @for i in $(FILES); do                  \
66                 echo "$(RM) $$i";               \
67                 $(RM) $$i;                      \
68         done
69         $(RM) RocksCE.ilbm