README.md edited online with Bitbucket
[gdash.git] / src / Makefile.am
blob5766fa9ec322b8f3995b1bf2c16fbae6ce2c9c46
1 ## Process this file with automake to produce Makefile.in
3 localedir = $(datadir)/locale
5 AUTOMAKE_OPTIONS = subdir-objects
7 DEFS = -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" @DEFS@
9 INCLUDES = -I$(top_srcdir)/include
11 bin_PROGRAMS = gdash
13 strip: $(bin_PROGRAMS)
14         strip $(bin_PROGRAMS)
16 # base sources and headers:
17 #   the gdash engine.
18 baseheaders = \
19         misc/printf.hpp \
20         misc/smartptr.hpp \
21         misc/autogfreeptr.hpp \
22         cave/cavetypes.hpp \
23         cave/elementproperties.hpp \
24         cave/helper/namevaluepair.hpp \
25         cave/helper/reflective.hpp \
26         cave/helper/adoptingcontainer.hpp \
27         cave/helper/cavemap.hpp \
28         cave/helper/cavehighscore.hpp \
29         cave/colors.hpp \
30         cave/cavebase.hpp \
31         cave/cavestored.hpp \
32         cave/helper/caverandom.hpp \
33         cave/helper/cavesound.hpp \
34         cave/object/caveobjectfill.hpp \
35         cave/object/caveobjectboundaryfill.hpp \
36         cave/object/caveobjectcopypaste.hpp \
37         cave/object/caveobjectfillrect.hpp \
38         cave/object/caveobjectfloodfill.hpp \
39         cave/object/caveobject.hpp \
40         cave/object/caveobjectrectangular.hpp \
41         cave/object/caveobjectjoin.hpp \
42         cave/object/caveobjectline.hpp \
43         cave/object/caveobjectmaze.hpp \
44         cave/object/caveobjectpoint.hpp \
45         cave/object/caveobjectrandomfill.hpp \
46         cave/object/caveobjectraster.hpp \
47         cave/object/caveobjectrectangle.hpp \
48         cave/caverendered.hpp \
49         cave/particle.hpp \
50         cave/helper/cavereplay.hpp \
51         cave/caveset.hpp \
52         fileops/bdcffhelper.hpp \
53         fileops/bdcffload.hpp \
54         fileops/bdcffsave.hpp \
55         fileops/c64import.hpp \
56         fileops/brcimport.hpp \
57         fileops/binaryimport.hpp \
58         fileops/loadfile.hpp \
59         fileops/highscore.hpp \
60         cave/gamecontrol.hpp \
61         settings.hpp \
62         misc/util.hpp \
63         misc/logger.hpp \
64         misc/about.hpp \
65         misc/helptext.hpp \
66         gfx/pixbuf.hpp \
67         gfx/pixmapstorage.hpp \
68         gfx/screen.hpp \
69         gfx/pixbuffactory.hpp \
70         gfx/pixbufmanip.hpp \
71         gfx/pixbufmanip_hqx.hpp \
72         gfx/cellrenderer.hpp \
73         gfx/fontmanager.hpp \
74         cave/gamerender.hpp \
75         cave/titleanimation.hpp \
76         framework/app.hpp \
77         framework/activity.hpp \
78         framework/titlescreenactivity.hpp \
79         framework/showtextactivity.hpp \
80         framework/messageactivity.hpp \
81         framework/gameactivity.hpp \
82         framework/selectfileactivity.hpp \
83         framework/inputtextactivity.hpp \
84         framework/askyesnoactivity.hpp \
85         framework/settingsactivity.hpp \
86         framework/thememanager.hpp \
87         framework/replaymenuactivity.hpp \
88         framework/replaysaveractivity.hpp \
89         framework/commands.hpp \
90         input/joystick.hpp \
91         input/gameinputhandler.hpp \
92         sound/sound.hpp
94 basesources = \
95         misc/printf.cpp \
96         cave/colors.cpp \
97         cave/cavetypes.cpp \
98         cave/elementproperties.cpp \
99         cave/helper/cavereplay.cpp \
100         cave/caverendered.cpp \
101         cave/particle.cpp \
102         cave/caverenderedengine.cpp \
103         cave/helper/caverandom.cpp \
104         cave/helper/cavesound.cpp \
105         cave/helper/cavehighscore.cpp \
106         cave/cavebase.cpp \
107         cave/cavestored.cpp \
108         cave/object/caveobject.cpp \
109         cave/object/caveobjectrectangular.cpp \
110         cave/object/caveobjectfill.cpp \
111         cave/object/caveobjectboundaryfill.cpp \
112         cave/object/caveobjectcopypaste.cpp \
113         cave/object/caveobjectfillrect.cpp \
114         cave/object/caveobjectfloodfill.cpp \
115         cave/object/caveobjectjoin.cpp \
116         cave/object/caveobjectline.cpp \
117         cave/object/caveobjectmaze.cpp \
118         cave/object/caveobjectpoint.cpp \
119         cave/object/caveobjectrandomfill.cpp \
120         cave/object/caveobjectraster.cpp \
121         cave/object/caveobjectrectangle.cpp \
122         cave/caveset.cpp \
123         fileops/bdcffhelper.cpp \
124         fileops/bdcffload.cpp \
125         fileops/bdcffsave.cpp \
126         fileops/c64import.cpp \
127         fileops/brcimport.cpp \
128         fileops/binaryimport.cpp \
129         fileops/loadfile.cpp \
130         fileops/highscore.cpp \
131         cave/gamecontrol.cpp \
132         settings.cpp \
133         misc/util.cpp \
134         misc/logger.cpp \
135         misc/about.cpp \
136         misc/helptext.cpp \
137         gfx/pixbuf.cpp \
138         gfx/screen.cpp \
139         gfx/pixbuffactory.cpp \
140         gfx/pixbufmanip.cpp \
141         gfx/pixbufmanip_hq2x.cpp \
142         gfx/pixbufmanip_hq3x.cpp \
143         gfx/pixbufmanip_hq4x.cpp \
144         gfx/cellrenderer.cpp \
145         gfx/fontmanager.cpp \
146         cave/gamerender.cpp \
147         cave/titleanimation.cpp \
148         framework/app.cpp \
149         framework/activity.cpp \
150         framework/titlescreenactivity.cpp \
151         framework/showtextactivity.cpp \
152         framework/messageactivity.cpp \
153         framework/gameactivity.cpp \
154         framework/selectfileactivity.cpp \
155         framework/inputtextactivity.cpp \
156         framework/askyesnoactivity.cpp \
157         framework/settingsactivity.cpp \
158         framework/thememanager.cpp \
159         framework/replaymenuactivity.cpp \
160         framework/replaysaveractivity.cpp \
161         framework/commands.cpp \
162         input/joystick.cpp \
163         input/gameinputhandler.cpp \
164         sound/sound.cpp \
165         mainwindow.cpp \
166         main.cpp
168 # gtk sources and headers:
169 #   the gdash gtk ui, with editor.
170 gtksources = \
171         gtk/gtkpixbuf.cpp \
172         gtk/gtkpixbuffactory.cpp \
173         gtk/gtkscreen.cpp \
174         gtk/gtkui.cpp \
175         gtk/gtkuisettings.cpp \
176         gtk/gtkgameinputhandler.cpp \
177         misc/helphtml.cpp \
178         editor/editorwidgets.cpp \
179         editor/editorautowidgets.cpp \
180         editor/editorcellrenderer.cpp \
181         editor/exporthtml.cpp \
182         editor/exportcrli.cpp \
183         editor/editor.cpp \
184         gtk/gtkapp.cpp \
185         gtk/gtkmainwindow.cpp
187 gtkheaders = \
188         gtk/gtkpixbuf.hpp \
189         gtk/gtkpixbuffactory.hpp \
190         gtk/gtkscreen.hpp \
191         gtk/gtkui.hpp \
192         gtk/gtkuisettings.hpp \
193         gtk/gtkgameinputhandler.hpp \
194         misc/helphtml.hpp \
195         editor/editorwidgets.hpp \
196         editor/editorautowidgets.hpp \
197         editor/editorcellrenderer.hpp \
198         editor/exporthtml.hpp \
199         editor/exportcrli.hpp \
200         editor/editor.hpp \
201         gtk/gtkapp.hpp \
202         gtk/gtkmainwindow.hpp \
203         mainwindow.hpp
205 # sdl sources and headers:
206 #   the sdl and the opengl engine.
207 sdlsources = \
208         framework/shadermanager.cpp \
209         framework/volumeactivity.cpp \
210         sdl/sdlpixbuf.cpp \
211         sdl/sdlabstractscreen.cpp \
212         sdl/sdlscreen.cpp \
213         sdl/sdlpixbuffactory.cpp \
214         sdl/ogl.cpp \
215         sdl/sdlgameinputhandler.cpp \
216         sdl/sdlmainwindow.cpp \
217         sdl/IMG_savepng.c
219 sdlheaders = \
220         framework/shadermanager.hpp \
221         framework/volumeactivity.hpp \
222         sdl/sdlpixbuf.hpp \
223         sdl/sdlabstractscreen.hpp \
224         sdl/sdlscreen.hpp \
225         sdl/sdlpixbuffactory.hpp \
226         sdl/ogl.hpp \
227         sdl/sdlgameinputhandler.hpp \
228         sdl/sdlmainwindow.hpp \
229         sdl/IMG_savepng.h
233 noinst_HEADERS = \
234         $(baseheaders) \
235         $(gtkheaders) \
236         $(sdlheaders)
240 programheaders=$(baseheaders)
241 programsources=$(basesources)
242 if GTK
243   programheaders+=$(gtkheaders)
244   programsources+=$(gtksources)
245 endif
246 if SDL
247   programheaders+=$(sdlheaders)
248   programsources+=$(sdlsources)
249 endif
254 gdash_CPPFLAGS = -g -Wall @GTK_CFLAGS@ @GLIB_CFLAGS@ @SDL_CFLAGS@ @GL_CFLAGS@ @LIBPNG_CFLAGS@
255 gdash_LDFLAGS = -g -Wall
256 gdash_LDADD = @GTK_LIBS@ @GLIB_LIBS@ @LIBINTL@ @SDL_LIBS@ @GL_LIBS@ @LIBPNG_LIBS@
257 gdash_SOURCES = $(programsources)