summaryrefslogtreecommitdiffstats
path: root/ksokoban/images/Makefile.am
blob: f2af8b9f5d70eeba1658881b9b1075229ef54875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

noinst_DATA = data.c
bin2c_SOURCES = bin2c.c
bin2c_LDFLAGS = $(all_libraries)
bin2c_LDADD   = $(LIBZ)

noinst_PROGRAMS = bin2c

test:
	x-povray +W200 +H200 [email protected] [email protected] +p +d
	rm -f [email protected]

POVFILES=floor_common.inc goal.pov halfstone_1.pov halfstone_2.pov halfstone_3.pov halfstone_4.pov man.pov man_common.inc object.pov saveman.pov stone_1.pov stone_2.pov stone_3.pov stone_4.pov stone_5.pov stone_6.pov stone_common.inc treasure.pov

IMAGES=goal.png halfstone_1.png halfstone_2.png halfstone_3.png halfstone_4.png man.png object.png saveman.png stone_1.png stone_2.png stone_3.png stone_4.png stone_5.png stone_6.png treasure.png starfield.png

EXTRA_DIST = $(POVFILES) $(IMAGES)
CLEANFILES = data.c

RESOLUTION=+W96 +H96
STONE_RESOLUTION=+W96 +H48
HALFSTONE_RESOLUTION=+W48 +H48

# no antialias
#ANTIALIAS=

# normal antialias
#ANTIALIAS=+A

# slow antialias
ANTIALIAS=+A0 +R9

POVRAY=povray $(ANTIALIAS)

data.c: $(IMAGES) bin2c
	list=""; for i in $(IMAGES); do list="$$list $(srcdir)/$$i"; done; \
	./bin2c "" $$list

############################################################################
# Povray rules to generate images
#
#halfstone_1.png: halfstone_1.pov stone_common.inc
#	$(POVRAY) $(HALFSTONE_RESOLUTION) +I$< +O$@
#
#halfstone_2.png: halfstone_2.pov stone_common.inc
#	$(POVRAY) $(HALFSTONE_RESOLUTION) +I$< +O$@
#
#halfstone_3.png: halfstone_3.pov stone_common.inc
#	$(POVRAY) $(HALFSTONE_RESOLUTION) +I$< +O$@
#
#halfstone_4.png: halfstone_4.pov stone_common.inc
#	$(POVRAY) $(HALFSTONE_RESOLUTION) +I$< +O$@
#
#
#stone_1.png: stone_1.pov stone_common.inc
#	$(POVRAY) $(STONE_RESOLUTION) +I$< +O$@
#
#stone_2.png: stone_2.pov stone_common.inc
#	$(POVRAY) $(STONE_RESOLUTION) +I$< +O$@
#
#stone_3.png: stone_3.pov stone_common.inc
#	$(POVRAY) $(STONE_RESOLUTION) +I$< +O$@
#
#stone_4.png: stone_4.pov stone_common.inc
#	$(POVRAY) $(STONE_RESOLUTION) +I$< +O$@
#
#stone_5.png: stone_5.pov stone_common.inc
#	$(POVRAY) $(STONE_RESOLUTION) +I$< +O$@
#
#stone_6.png: stone_6.pov stone_common.inc
#	$(POVRAY) $(STONE_RESOLUTION) +I$< +O$@
#
#
#treasure.png: treasure.pov goal.pov floor_common.inc
#	$(POVRAY) $(RESOLUTION) +I$< +O$@
#
#object.png: object.pov floor_common.inc
#	$(POVRAY) $(RESOLUTION) +I$< +O$@
#
#man.png: man.pov man_common.inc floor_common.inc
#	$(POVRAY) $(RESOLUTION) +I$< +O$@
#
#saveman.png: saveman.pov man_common.inc goal.pov floor_common.inc
#	$(POVRAY) $(RESOLUTION) +I$< +O$@
#
#goal.png: goal.pov floor_common.inc
#	$(POVRAY) $(RESOLUTION) +I$< +O$@