added support for (normal and adaptive) vertical sync (vsync)
[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         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         overlay/VirtualButtons.$(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.ilbm: RocksCE-template.ilbm
61         $(RND) -e "create CE image ."
62         bmptoppm RocksCE.bmp | ppmtoilbm > RocksCE.ilbm
63         $(RM) RocksCE.bmp
64
65 clean:
66         @for i in $(FILES); do                  \
67                 echo "$(RM) $$i";               \
68                 $(RM) $$i;                      \
69         done
70         $(RM) RocksCE.ilbm