2009050
[gdash.git] / include / Makefile.am
blob83216193d3d6d5fcb0ca628e20c19cf55e84dd79
1 ## Process this file with automake to produce Makefile.in
2 CAVES = \
3         No_One_01.gds \
4         No_One_02.gds \
5         No_One_03.gds \
6         No_One_04.gds \
7         No_One_05.gds \
8         No_One_06.gds \
9         No_One_07.gds \
10         No_One_08.gds \
11         No_One_09.gds \
12         No_One_10.gds
14 ATARIPALETTES = \
15         BuiltIn.act \
16         BuiltIn_contrast.act \
17         Default.act \
18         Jakub.act \
19         Jakub_contrast.act \
20         Real.act \
21         Real_contrast.act \
22         XFormer.act
24 DTVPALETTES = \
25         Spiff.act \
26         Murray.act
28 ICONS = \
29         add_filled_rectangle.png \
30         add_freehand.png \
31         add_line.png \
32         add_join.png \
33         add_point.png \
34         add_raster.png \
35         add_rectangle.png \
36         add_fill_replace.png \
37         add_fill_border.png \
38         add_maze.png \
39         add_maze_uni.png \
40         add_maze_braid.png \
41         cave_editor.png \
42         move.png \
43         snapshot.png \
44         restart_level.png \
45         random_fill.png \
46         award.png \
47         to_top.png \
48         to_bottom.png \
49         object_on_all.png \
50         object_not_on_all.png \
51         object_not_on_current.png \
52         replay.png \
53         keyboard.png \
54         image.png
56 noinst_HEADERS = \
57         c64_png_colors.h \
58         icons.h \
59         c64_gfx.h \
60         c64_font.h \
61         title.h \
62         levels.h \
63         ataripal.h \
64         dtvpal.h
66 icondir = $(datadir)/pixmaps
67 icon_DATA = gdash.png
69 pkgdata_DATA = boulder_rush.png c64_gfx.png
71 EXTRA_DIST = $(ICONS) $(TITLE) $(icon_DATA) \
72         icons.list title.list \
73         files2c.sh \
74         c64_font.png \
75         $(pkgdata_DATA) \
76         $(CAVES) levels.h \
77         $(ATARIPALETTES) ataripal.h \
78         $(DTVPALETTES) dtvpal.h
81 # for included ICONS
82 icons.list: $(ICONS) Makefile.am
83         ( rm -f $@; \
84                 for image in $(ICONS); do \
85                         echo $$image | sed s/\.png$$// >> $@; \
86                         echo $$image >> $@; \
87                 done )
89 # the include files
90 icons.h: $(ICONS) icons.list
91         gdk-pixbuf-csource --raw --build-list `cat icons.list` > $@
93 #title.h: $(TITLE) title.list
94 #       gdk-pixbuf-csource --raw --build-list `cat title.list` > $@
96 if GTK
97   CELLS2C = cells2c
98 else
99   CELLS2C = 
100 endif
102 # own programs which generate include files
103 noinst_PROGRAMS = \
104         $(CELLS2C) \
105         file2c
107 # this one creates inlined original c64 graphics
108 cells2c_CFLAGS = @GTK_CFLAGS@
109 cells2c_LDADD =  @GTK_LIBS@
110 cells2c_SOURCES = \
111         cells2c.c
115 if GTK
116 c64_font.h: c64_font.png $(CELLS2C)
117         ./cells2c c64_font.png >$@
118 else
119 c64_font.h: c64_font.png $(CELLS2C)
120         echo; echo; echo "*** GTK+ is needed to regenerate $@"
121         false
122 endif
125 if GTK
126 c64_gfx.h: c64_gfx.png $(CELLS2C)
127         ./cells2c c64_gfx.png >$@
128 else
129 c64_gfx.h: c64_gfx.png $(CELLS2C)
130         echo; echo; echo "*** GTK+ is needed to regenerate $@"
131         false
132 endif
137 # this utility creates an include file for any datafile
138 file2c_SOURCES = \
139         file2c.c
141 levels.h: $(CAVES) file2c Makefile.am
142         sh files2c.sh $@ level $(CAVES)
144 ataripal.h: $(ATARIPALETTES) file2c Makefile.am
145         sh files2c.sh $@ atari_palettes $(ATARIPALETTES)
147 dtvpal.h: $(DTVPALETTES) file2c Makefile.am
148         sh files2c.sh $@ c64dtv_palettes $(DTVPALETTES)
150 TITLE = \
151         gdash_screen.png \
152         gdash_tile.png \
153         gdash.png \
154         gdash_32.png
156 # the empty string causes files2c.sh not to write the pointer arrays
157 title.h: $(TITLE) file2c Makefile.am
158         sh files2c.sh $@ "" $(TITLE)