]> icculus.org git repositories - mikachu/openbox.git/blob - Makefile.am
use ob_debug for any debug printing and only display the output when its a debug...
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/openbox/themes
4 localedir       = $(datadir)/locale
5 rcdir           = $(datadir)/openbox
6 plugindir       = $(libdir)/openbox/plugins
7 desktopfilesdir = $(datadir)/gnome/wm-properties
8
9 theme = operation
10
11 AUTOMAKE_OPTIONS = subdir-objects
12 ACLOCAL_AMFLAGS = -I m4
13
14 INCLUDES = -I.
15
16 noinst_PROGRAMS = \
17         render/rendertest
18
19 lib_LTLIBRARIES = \
20         render/libobrender.la \
21         parser/libobparser.la
22
23 bin_PROGRAMS = \
24         kernel/openbox
25
26 plugin_LTLIBRARIES = \
27         plugins/resistance/resistance.la \
28         plugins/placement/placement.la \
29         plugins/mouse/mouse.la \
30         plugins/keyboard/keyboard.la \
31         plugins/menu/timed_menu.la \
32         plugins/menu/fifo_menu.la \
33         plugins/menu/client_menu.la \
34         plugins/menu/include_menu.la
35
36 if OBCONF
37 plugin_LTLIBRARIES += \
38         plugins/resistance/resistance-config.la
39 endif
40
41 ## render ##
42
43 render_rendertest_CPPFLAGS = \
44         $(XFT_CFLAGS) \
45         $(GLIB_CFLAGS) \
46         -DG_LOG_DOMAIN=\"RenderTest\"
47 render_rendertest_LDADD = render/libobrender.la
48 render_rendertest_SOURCES = render/test.c
49
50 render_libobrender_la_CPPFLAGS = \
51         $(X_CFLAGS) \
52         $(XFT_CFLAGS) \
53         $(GLIB_CFLAGS) \
54         -DG_LOG_DOMAIN=\"ObRender\" \
55         -DDEFAULT_THEME=\"$(theme)\" \
56         -DTHEMEDIR=\"$(themedir)\"
57 render_libobrender_la_LIBADD = \
58         $(X_LIBS) \
59         $(XFT_LIBS) \
60         $(GLIB_LIBS)
61 render_libobrender_la_SOURCES = \
62         gettext.h \
63         render/color.h \
64         render/color.c \
65         render/font.h \
66         render/font.c \
67         render/geom.h \
68         render/gradient.h \
69         render/gradient.c \
70         render/image.h \
71         render/image.c \
72         render/instance.h \
73         render/instance.c \
74         render/mask.h \
75         render/mask.c \
76         render/render.h \
77         render/render.c \
78         render/theme.h \
79         render/theme.c
80
81 ## parser ##
82
83 parser_libobparser_la_CPPFLAGS = \
84         $(GLIB_CFLAGS) \
85         $(XML_CFLAGS) \
86         -DG_LOG_DOMAIN=\"ObParser\" \
87         -DLOCALEDIR=\"$(localedir)\" \
88         -DRCDIR=\"$(rcdir)\"
89 parser_libobparser_la_LIBADD = \
90         $(GLIB_LIBS) \
91         $(XML_LIBS)
92 parser_libobparser_la_SOURCES = \
93         parser/parse.h \
94         parser/parse.c
95
96 ## kernel ##
97
98 kernel_openbox_CPPFLAGS = \
99         $(X_CFLAGS) \
100         $(SM_CFLAGS) \
101         $(XFT_CFLAGS) \
102         $(GLIB_CFLAGS) \
103         $(GMODULE_CFLAGS) \
104         $(LIBSN_CFLAGS) \
105         $(XML_CFLAGS) \
106         -DLOCALEDIR=\"$(localedir)\" \
107         -DPLUGINDIR=\"$(plugindir)\" \
108         -DRCDIR=\"$(rcdir)\" \
109         -DG_LOG_DOMAIN=\"Openbox\"
110 kernel_openbox_LDADD = \
111         $(SM_LIBS) \
112         $(XINERAMA_LIBS) \
113         $(XKB_LIBS) \
114         $(XRANDR_LIBS) \
115         $(VIDMODE_LIBS) \
116         $(XSHAPE_LIBS) \
117         $(GLIB_LIBS) \
118         $(GMODULE_LIBS) \
119         $(LIBSN_LIBS) \
120         $(XML_LIBS) \
121         $(EFENCE_LIBS) \
122         $(LIBINTL) \
123         render/libobrender.la \
124         parser/libobparser.la
125 kernel_openbox_LDFLAGS = -export-dynamic
126 kernel_openbox_SOURCES = \
127         gettext.h \
128         kernel/action.c \
129         kernel/action.h \
130         kernel/client.c \
131         kernel/client.h \
132         kernel/config.c \
133         kernel/config.h \
134         kernel/debug.c \
135         kernel/debug.h \
136         kernel/dispatch.c \
137         kernel/dispatch.h \
138         kernel/dock.c \
139         kernel/dock.h \
140         kernel/event.c \
141         kernel/event.h \
142         kernel/extensions.c \
143         kernel/extensions.h \
144         kernel/focus.c \
145         kernel/focus.h \
146         kernel/frame.c \
147         kernel/frame.h \
148         kernel/framerender.c \
149         kernel/framerender.h \
150         kernel/geom.h \
151         kernel/grab.c \
152         kernel/grab.h \
153         kernel/group.c \
154         kernel/group.h \
155         kernel/menu.c \
156         kernel/menu.h \
157         kernel/menu_render.c \
158         kernel/misc.h \
159         kernel/moveresize.c \
160         kernel/moveresize.h \
161         kernel/mwm.h \
162         kernel/openbox.c \
163         kernel/openbox.h \
164         kernel/plugin.c \
165         kernel/plugin.h \
166         kernel/popup.c \
167         kernel/popup.h \
168         kernel/prop.c \
169         kernel/prop.h \
170         kernel/screen.c \
171         kernel/screen.h \
172         kernel/stacking.c \
173         kernel/stacking.h \
174         kernel/startup.c \
175         kernel/startup.h \
176         kernel/timer.c \
177         kernel/timer.h \
178         kernel/window.c \
179         kernel/window.h \
180         kernel/xerror.c \
181         kernel/xerror.h \
182         plugins/interface.h
183
184 ## plugins/resistance ##
185
186 plugins_resistance_resistance_la_CPPFLAGS = \
187         $(XFT_CFLAGS) \
188         $(GLIB_CFLAGS) \
189         $(LIBSN_CFLAGS) \
190         $(XML_CFLAGS) \
191         -DPLUGINDIR=\"$(plugindir)\" \
192         -DG_LOG_DOMAIN=\"Plugin-Resistance\"
193 plugins_resistance_resistance_la_LDFLAGS = \
194         -module \
195         -avoid-version
196 plugins_resistance_resistance_la_SOURCES = \
197         plugins/resistance/resistance.c \
198         plugins/resistance/resistance.h
199
200 if OBCONF
201 plugins_resistance_resistance_config_la_CPPFLAGS = \
202         $(XFT_CFLAGS) \
203         $(GLIB_CFLAGS) \
204         $(LIBSN_CFLAGS) \
205         $(XML_CFLAGS) \
206         -DPLUGINDIR=\"$(plugindir)\" \
207         -DG_LOG_DOMAIN=\"Plugin-Resistance\" \
208         $(GTK_CFLAGS) \
209         $(GLADE_CFLAGS)
210 plugins_resistance_resistance_config_la_LDFLAGS = \
211         -module \
212         -avoid-version
213 plugins_resistance_resistance_config_la_SOURCES = \
214         plugins/resistance/resistance_config.c
215 endif
216
217 ## plugins/placement ##
218
219 plugins_placement_placement_la_CPPFLAGS = \
220         $(XFT_CFLAGS) \
221         $(GLIB_CFLAGS) \
222         $(LIBSN_CFLAGS) \
223         $(XML_CFLAGS) \
224         -DPLUGINDIR=\"$(plugindir)\" \
225         -DG_LOG_DOMAIN=\"Plugin-Placement\"
226 plugins_placement_placement_la_LDFLAGS = \
227         -module \
228         -avoid-version
229 plugins_placement_placement_la_SOURCES = \
230         plugins/placement/placement.c \
231         plugins/placement/history.c \
232         plugins/placement/history.h
233
234 ## plugins/mouse ##
235
236 plugins_mouse_mouse_la_CPPFLAGS = \
237         $(XFT_CFLAGS) \
238         $(GLIB_CFLAGS) \
239         $(LIBSN_CFLAGS) \
240         $(XML_CFLAGS) \
241         -DPLUGINDIR=\"$(plugindir)\" \
242         -DG_LOG_DOMAIN=\"Plugin-Mouse\"
243 plugins_mouse_mouse_la_LDFLAGS = \
244         -module \
245         -avoid-version
246 plugins_mouse_mouse_la_SOURCES = \
247         plugins/mouse/mouse.c \
248         plugins/mouse/mouse.h \
249         plugins/mouse/translate.c \
250         plugins/mouse/translate.h
251
252 ## plugins/mouse ##
253
254 plugins_keyboard_keyboard_la_CPPFLAGS = \
255         $(XFT_CFLAGS) \
256         $(GLIB_CFLAGS) \
257         $(LIBSN_CFLAGS) \
258         $(XML_CFLAGS) \
259         -DPLUGINDIR=\"$(plugindir)\" \
260         -DG_LOG_DOMAIN=\"Plugin-Keyboard\"
261 plugins_keyboard_keyboard_la_LDFLAGS = \
262         -module \
263         -avoid-version
264 plugins_keyboard_keyboard_la_SOURCES = \
265         plugins/keyboard/keyboard.c \
266         plugins/keyboard/keyboard.h \
267         plugins/keyboard/tree.c \
268         plugins/keyboard/tree.h \
269         plugins/keyboard/translate.c \
270         plugins/keyboard/translate.h
271
272 ## plugins/menu ##
273
274 plugins_menu_timed_menu_la_CPPFLAGS = \
275         $(XFT_CFLAGS) \
276         $(GLIB_CFLAGS) \
277         $(LIBSN_CFLAGS) \
278         $(XML_CFLAGS) \
279         -DPLUGINDIR=\"$(plugindir)\" \
280         -DG_LOG_DOMAIN=\"Plugin-Timed-Menu\"
281 plugins_menu_timed_menu_la_LDFLAGS = \
282         -module \
283         -avoid-version
284 plugins_menu_timed_menu_la_SOURCES = \
285         plugins/menu/timed_menu.c \
286         plugins/menu/timed_menu.h
287
288 plugins_menu_fifo_menu_la_CPPFLAGS = \
289         $(XFT_CFLAGS) \
290         $(GLIB_CFLAGS) \
291         $(LIBSN_CFLAGS) \
292         $(XML_CFLAGS) \
293         -DPLUGINDIR=\"$(plugindir)\" \
294         -DG_LOG_DOMAIN=\"Plugin-Fifo-Menu\"
295 plugins_menu_fifo_menu_la_LDFLAGS = \
296         -module \
297         -avoid-version
298 plugins_menu_fifo_menu_la_SOURCES = \
299         plugins/menu/fifo_menu.c \
300         plugins/menu/fifo_menu.h
301
302 plugins_menu_client_menu_la_CPPFLAGS = \
303         $(XFT_CFLAGS) \
304         $(GLIB_CFLAGS) \
305         $(LIBSN_CFLAGS) \
306         $(XML_CFLAGS) \
307         -DPLUGINDIR=\"$(plugindir)\" \
308         -DG_LOG_DOMAIN=\"Plugin-Client-Menu\"
309 plugins_menu_client_menu_la_LDFLAGS = \
310         -module \
311         -avoid-version
312 plugins_menu_client_menu_la_SOURCES = \
313         plugins/menu/client_menu.c
314
315 plugins_menu_include_menu_la_CPPFLAGS = \
316         $(XFT_CFLAGS) \
317         $(GLIB_CFLAGS) \
318         $(LIBSN_CFLAGS) \
319         $(XML_CFLAGS) \
320         -DPLUGINDIR=\"$(plugindir)\" \
321         -DG_LOG_DOMAIN=\"Plugin-Include-Menu\"
322 plugins_menu_include_menu_la_LDFLAGS = \
323         -module \
324         -avoid-version
325 plugins_menu_include_menu_la_SOURCES = \
326         plugins/menu/include_menu.c
327
328
329 ## themes ##
330
331 dist_theme_DATA = \
332         themes/artwiz \
333         themes/bbs \
334         themes/bluebox \
335         themes/cthulhain \
336         themes/deep \
337         themes/ebox \
338         themes/fieron \
339         themes/fieron2 \
340         themes/flux \
341         themes/frobozz \
342         themes/frobust \
343         themes/mbdtex \
344         themes/miklos \
345         themes/nyz \
346         themes/nyzclone \
347         themes/ob20 \
348         themes/operation \
349         themes/outcomes \
350         themes/paper \
351         themes/purplehaaze \
352         themes/shade \
353         themes/steelblue \
354         themes/steelblue2 \
355         themes/the_orange \
356         themes/trisb \
357         themes/twice \
358         themes/warp-xp
359
360 fieronthemedir = $(themedir)/fieron_data
361 dist_fierontheme_DATA = \
362         themes/fieron_data/close.xbm \
363         themes/fieron_data/iconify.xbm \
364         themes/fieron_data/max.xbm \
365         themes/fieron_data/stick.xbm
366
367 fieron2themedir = $(themedir)/fieron2_data
368 dist_fieron2theme_DATA = \
369         themes/fieron2_data/close.xbm \
370         themes/fieron2_data/iconify.xbm \
371         themes/fieron2_data/max.xbm \
372         themes/fieron2_data/stick.xbm
373
374 eboxthemedir = $(themedir)/ebox_data
375 dist_eboxtheme_DATA = \
376         themes/ebox_data/close.xbm \
377         themes/ebox_data/iconify.xbm \
378         themes/ebox_data/max.xbm
379
380 ## data ##
381
382 dist_rc_DATA = \
383         data/rc3
384
385 EXTRA_DIST = \
386         config.rpath \
387         mkinstalldirs \
388         README \
389         COPYING \
390         AUTHORS \
391         plugins/obconf_interface.h
392
393 #doc:
394 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
395
396 distclean-local:
397         for d in . m4 po render; do \
398                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
399                         rm -f "$$d/$$p"; \
400                 done \
401         done
402
403 .PHONY: doc