moved new graphics to new image file for backward compatibility
[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         RocksDoor.$(EXT)        \
27         RocksDoor2.$(EXT)       \
28         RocksEMC.$(EXT)         \
29         RocksElements.$(EXT)    \
30         RocksFontBig.$(EXT)     \
31         RocksFontDC.$(EXT)      \
32         RocksFontEM.$(EXT)      \
33         RocksFontMedium.$(EXT)  \
34         RocksFontSmall.$(EXT)   \
35         RocksHeroes.$(EXT)      \
36         RocksMore.$(EXT)        \
37         RocksSP.$(EXT)          \
38         RocksScreen.$(EXT)      \
39         RocksToons.$(EXT)       \
40                                 \
41         RocksCE.$(EXT)          # dynamically generated from template
42
43
44 # -----------------------------------------------------------------------------
45 # build targets
46 # -----------------------------------------------------------------------------
47
48 all: $(FILES)
49
50 %.pcx: %.ilbm
51         ilbmtoppm $< | ppmtopcx > $@
52
53 %.png: %.ilbm
54         ilbmtoppm $< | pnmtopng > $@
55
56 RocksCE.ilbm: RocksCE-template.ilbm
57         $(RND) -e "create CE image ."
58         bmptoppm RocksCE.bmp | ppmtoilbm > RocksCE.ilbm
59         $(RM) RocksCE.bmp
60
61 clean:
62         @for i in $(FILES); do                  \
63                 echo "$(RM) $$i";               \
64                 $(RM) $$i;                      \
65         done
66         $(RM) RocksCE.ilbm