54d446a10093a754a59667df5e90ce2431c3ee99
[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 = png
21
22 FILES = RocksBusy.$(EXT)        \
23         RocksCE.$(EXT)          \
24         RocksDC.$(EXT)          \
25         RocksDC2.$(EXT)         \
26         RocksDoor.$(EXT)        \
27         RocksEMC.$(EXT)         \
28         RocksElements.$(EXT)    \
29         RocksFontBig.$(EXT)     \
30         RocksFontDC.$(EXT)      \
31         RocksFontEM.$(EXT)      \
32         RocksFontMedium.$(EXT)  \
33         RocksFontSmall.$(EXT)   \
34         RocksHeroes.$(EXT)      \
35         RocksMore.$(EXT)        \
36         RocksSP.$(EXT)          \
37         RocksScreen.$(EXT)      \
38         RocksToons.$(EXT)
39
40
41 # -----------------------------------------------------------------------------
42 # build targets
43 # -----------------------------------------------------------------------------
44
45 all: $(FILES)
46
47 %.pcx: %.ilbm
48         ilbmtoppm $< | ppmtopcx > $@
49
50 %.png: %.ilbm
51         ilbmtoppm $< | pnmtopng > $@
52
53 RocksCE.ilbm: RocksCE-template.ilbm
54         $(RND) -e "create CE image RocksCE.bmp"
55         bmptoppm RocksCE.bmp | ppmtoilbm > RocksCE.ilbm
56         $(RM) RocksCE.bmp
57
58 clean:
59         @for i in $(FILES); do                  \
60                 echo "$(RM) $$i";               \
61                 $(RM) $$i;                      \
62         done