move the keyboard and mouse plugins into the kernel for mucho sexiness.
[dana/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 pixmapdir       = $(datadir)/pixmaps
9
10 theme = thebear
11
12 AUTOMAKE_OPTIONS = subdir-objects
13 ACLOCAL_AMFLAGS = -I m4
14
15 INCLUDES = -I.
16
17 noinst_PROGRAMS = \
18         render/rendertest
19
20 lib_LTLIBRARIES = \
21         render/libobrender.la \
22         parser/libobparser.la
23
24 bin_PROGRAMS = \
25         kernel/openbox \
26         tools/kdetrayproxy/kdetrayproxy
27
28 plugin_LTLIBRARIES = \
29         plugins/resistance/resistance.la \
30         plugins/placement/placement.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 bin_PROGRAMS += \
38         tools/obconf/obconf
39
40 #plugin_LTLIBRARIES += \
41 #       plugins/resistance/resistance-config.la
42 endif
43
44 ## render ##
45
46 render_rendertest_CPPFLAGS = \
47         $(XFT_CFLAGS) \
48         $(GLIB_CFLAGS) \
49         -DG_LOG_DOMAIN=\"RenderTest\"
50 render_rendertest_LDADD = render/libobrender.la
51 render_rendertest_SOURCES = render/test.c
52
53 render_libobrender_la_CPPFLAGS = \
54         $(X_CFLAGS) \
55         $(XFT_CFLAGS) \
56         $(GLIB_CFLAGS) \
57         -DG_LOG_DOMAIN=\"ObRender\" \
58         -DDEFAULT_THEME=\"$(theme)\" \
59         -DTHEMEDIR=\"$(themedir)\"
60 render_libobrender_la_LIBADD = \
61         $(X_LIBS) \
62         $(XFT_LIBS) \
63         $(GLIB_LIBS)
64 render_libobrender_la_SOURCES = \
65         gettext.h \
66         render/color.h \
67         render/color.c \
68         render/font.h \
69         render/font.c \
70         render/geom.h \
71         render/gradient.h \
72         render/gradient.c \
73         render/image.h \
74         render/image.c \
75         render/instance.h \
76         render/instance.c \
77         render/mask.h \
78         render/mask.c \
79         render/render.h \
80         render/render.c \
81         render/theme.h \
82         render/theme.c
83
84 ## parser ##
85
86 parser_libobparser_la_CPPFLAGS = \
87         $(GLIB_CFLAGS) \
88         $(XML_CFLAGS) \
89         -DG_LOG_DOMAIN=\"ObParser\" \
90         -DLOCALEDIR=\"$(localedir)\" \
91         -DRCDIR=\"$(rcdir)\"
92 parser_libobparser_la_LIBADD = \
93         $(GLIB_LIBS) \
94         $(XML_LIBS)
95 parser_libobparser_la_SOURCES = \
96         parser/parse.h \
97         parser/parse.c
98
99 ## kernel ##
100
101 kernel_openbox_CPPFLAGS = \
102         $(X_CFLAGS) \
103         $(SM_CFLAGS) \
104         $(XFT_CFLAGS) \
105         $(GLIB_CFLAGS) \
106         $(GMODULE_CFLAGS) \
107         $(LIBSN_CFLAGS) \
108         $(XML_CFLAGS) \
109         -DLOCALEDIR=\"$(localedir)\" \
110         -DPLUGINDIR=\"$(plugindir)\" \
111         -DRCDIR=\"$(rcdir)\" \
112         -DG_LOG_DOMAIN=\"Openbox\"
113 kernel_openbox_LDADD = \
114         $(SM_LIBS) \
115         $(XINERAMA_LIBS) \
116         $(XKB_LIBS) \
117         $(XRANDR_LIBS) \
118         $(VIDMODE_LIBS) \
119         $(XSHAPE_LIBS) \
120         $(GLIB_LIBS) \
121         $(GMODULE_LIBS) \
122         $(LIBSN_LIBS) \
123         $(XML_LIBS) \
124         $(EFENCE_LIBS) \
125         $(LIBINTL) \
126         render/libobrender.la \
127         parser/libobparser.la
128 kernel_openbox_LDFLAGS = -export-dynamic
129 kernel_openbox_SOURCES = \
130         gettext.h \
131         kernel/action.c \
132         kernel/action.h \
133         kernel/client.c \
134         kernel/client.h \
135         kernel/config.c \
136         kernel/config.h \
137         kernel/debug.c \
138         kernel/debug.h \
139         kernel/dispatch.c \
140         kernel/dispatch.h \
141         kernel/dock.c \
142         kernel/dock.h \
143         kernel/event.c \
144         kernel/event.h \
145         kernel/extensions.c \
146         kernel/extensions.h \
147         kernel/focus.c \
148         kernel/focus.h \
149         kernel/frame.c \
150         kernel/frame.h \
151         kernel/framerender.c \
152         kernel/framerender.h \
153         kernel/geom.h \
154         kernel/grab.c \
155         kernel/grab.h \
156         kernel/group.c \
157         kernel/group.h \
158         kernel/keyboard.c \
159         kernel/keyboard.h \
160         kernel/keytree.c \
161         kernel/keytree.h \
162         kernel/menu.c \
163         kernel/menu.h \
164         kernel/menu_render.c \
165         kernel/misc.h \
166         kernel/mouse.c \
167         kernel/mouse.h \
168         kernel/moveresize.c \
169         kernel/moveresize.h \
170         kernel/mwm.h \
171         kernel/openbox.c \
172         kernel/openbox.h \
173         kernel/plugin.c \
174         kernel/plugin.h \
175         kernel/popup.c \
176         kernel/popup.h \
177         kernel/prop.c \
178         kernel/prop.h \
179         kernel/screen.c \
180         kernel/screen.h \
181         kernel/session.c \
182         kernel/session.h \
183         kernel/stacking.c \
184         kernel/stacking.h \
185         kernel/startup.c \
186         kernel/startup.h \
187         kernel/timer.c \
188         kernel/timer.h \
189         kernel/translate.c \
190         kernel/translate.h \
191         kernel/window.c \
192         kernel/window.h \
193         kernel/xerror.c \
194         kernel/xerror.h \
195         plugins/interface.h
196
197 ## plugins/resistance ##
198
199 plugins_resistance_resistance_la_CPPFLAGS = \
200         $(XFT_CFLAGS) \
201         $(GLIB_CFLAGS) \
202         $(LIBSN_CFLAGS) \
203         $(XML_CFLAGS) \
204         -DPLUGINDIR=\"$(plugindir)\" \
205         -DG_LOG_DOMAIN=\"Plugin-Resistance\"
206 plugins_resistance_resistance_la_LDFLAGS = \
207         -module \
208         -avoid-version
209 plugins_resistance_resistance_la_SOURCES = \
210         plugins/resistance/resistance.c \
211         plugins/resistance/resistance.h
212
213 if OBCONF
214 plugins_resistance_resistance_config_la_CPPFLAGS = \
215         $(XFT_CFLAGS) \
216         $(GLIB_CFLAGS) \
217         $(LIBSN_CFLAGS) \
218         $(XML_CFLAGS) \
219         -DPLUGINDIR=\"$(plugindir)\" \
220         -DG_LOG_DOMAIN=\"Plugin-Resistance\" \
221         $(GTK_CFLAGS) \
222         $(GLADE_CFLAGS)
223 plugins_resistance_resistance_config_la_LDFLAGS = \
224         -module \
225         -avoid-version
226 plugins_resistance_resistance_config_la_SOURCES = \
227         plugins/resistance/resistance_config.c
228 endif
229
230 ## plugins/placement ##
231
232 plugins_placement_placement_la_CPPFLAGS = \
233         $(XFT_CFLAGS) \
234         $(GLIB_CFLAGS) \
235         $(LIBSN_CFLAGS) \
236         $(XML_CFLAGS) \
237         -DPLUGINDIR=\"$(plugindir)\" \
238         -DG_LOG_DOMAIN=\"Plugin-Placement\"
239 plugins_placement_placement_la_LDFLAGS = \
240         -module \
241         -avoid-version
242 plugins_placement_placement_la_SOURCES = \
243         plugins/placement/placement.c \
244         plugins/placement/history.c \
245         plugins/placement/history.h
246
247 ## plugins/menu ##
248
249 plugins_menu_timed_menu_la_CPPFLAGS = \
250         $(XFT_CFLAGS) \
251         $(GLIB_CFLAGS) \
252         $(LIBSN_CFLAGS) \
253         $(XML_CFLAGS) \
254         -DPLUGINDIR=\"$(plugindir)\" \
255         -DG_LOG_DOMAIN=\"Plugin-Timed-Menu\"
256 plugins_menu_timed_menu_la_LDFLAGS = \
257         -module \
258         -avoid-version
259 plugins_menu_timed_menu_la_SOURCES = \
260         plugins/menu/timed_menu.c \
261         plugins/menu/timed_menu.h
262
263 plugins_menu_fifo_menu_la_CPPFLAGS = \
264         $(XFT_CFLAGS) \
265         $(GLIB_CFLAGS) \
266         $(LIBSN_CFLAGS) \
267         $(XML_CFLAGS) \
268         -DPLUGINDIR=\"$(plugindir)\" \
269         -DG_LOG_DOMAIN=\"Plugin-Fifo-Menu\"
270 plugins_menu_fifo_menu_la_LDFLAGS = \
271         -module \
272         -avoid-version
273 plugins_menu_fifo_menu_la_SOURCES = \
274         plugins/menu/fifo_menu.c \
275         plugins/menu/fifo_menu.h
276
277 plugins_menu_client_menu_la_CPPFLAGS = \
278         $(XFT_CFLAGS) \
279         $(GLIB_CFLAGS) \
280         $(LIBSN_CFLAGS) \
281         $(XML_CFLAGS) \
282         -DPLUGINDIR=\"$(plugindir)\" \
283         -DG_LOG_DOMAIN=\"Plugin-Client-Menu\"
284 plugins_menu_client_menu_la_LDFLAGS = \
285         -module \
286         -avoid-version
287 plugins_menu_client_menu_la_SOURCES = \
288         plugins/menu/client_menu.c
289
290 plugins_menu_include_menu_la_CPPFLAGS = \
291         $(XFT_CFLAGS) \
292         $(GLIB_CFLAGS) \
293         $(LIBSN_CFLAGS) \
294         $(XML_CFLAGS) \
295         -DPLUGINDIR=\"$(plugindir)\" \
296         -DG_LOG_DOMAIN=\"Plugin-Include-Menu\"
297 plugins_menu_include_menu_la_LDFLAGS = \
298         -module \
299         -avoid-version
300 plugins_menu_include_menu_la_SOURCES = \
301         plugins/menu/include_menu.c
302
303
304 ## obconf ##
305
306 tools_obconf_obconf_CPPFLAGS = \
307         $(GTK_CFLAGS) \
308         $(GDK_PIXBUF_CFLAGS) \
309         $(XML_CFLAGS) \
310         -DLOCALEDIR=\"$(localedir)\" \
311         -DPLUGINDIR=\"$(plugindir)\" \
312         -DRCDIR=\"$(rcdir)\" \
313         -DPIXMAPDIR=\"$(pixmapdir)\" \
314         -DG_LOG_DOMAIN=\"Obconf\"
315 tools_obconf_obconf_LDADD = \
316         $(GTK_LIBS) \
317         $(GDK_PIXBUF_LIBS) \
318         $(LIBINTL) \
319         render/libobrender.la \
320         parser/libobparser.la
321 tools_obconf_obconf_SOURCES = \
322         gettext.h \
323         tools/obconf/main.c \
324         plugins/obconf_interface.h
325
326
327 ## kdetrayproxy ##
328
329 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
330         $(X_CFLAGS)
331 tools_kdetrayproxy_kdetrayproxy_LDADD = \
332         $(X_LIBS)
333 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
334         tools/kdetrayproxy/kdetrayproxy.c
335
336
337 ## themes ##
338
339 thebear_themedir = $(themedir)/thebear
340 dist_thebear_theme_DATA = \
341         themes/thebear/themerc
342
343 planton_themedir = $(themedir)/planton
344 dist_planton_theme_DATA = \
345         themes/planton/themerc \
346         themes/planton/max.xbm \
347         themes/planton/max_toggled.xbm \
348         themes/planton/desk.xbm \
349         themes/planton/desk_toggled.xbm \
350         themes/planton/shade.xbm \
351         themes/planton/shade_toggled.xbm \
352         themes/planton/iconify.xbm \
353         themes/planton/close.xbm
354
355 lightindustry_themedir = $(themedir)/Light-Industry
356 dist_lightindustry_theme_DATA = \
357         themes/Light-Industry/themerc \
358         themes/Light-Industry/max.xbm \
359         themes/Light-Industry/iconify.xbm \
360         themes/Light-Industry/close.xbm
361
362 lightindustrybig_themedir = $(themedir)/Light-Industry-big
363 dist_lightindustrybig_theme_DATA = \
364         themes/Light-Industry-big/themerc \
365         themes/Light-Industry-big/max.xbm \
366         themes/Light-Industry-big/iconify.xbm \
367         themes/Light-Industry-big/close.xbm
368
369 imerry_themedir = $(themedir)/I-merry
370 dist_imerry_theme_DATA = \
371         themes/I-merry/themerc \
372         themes/I-merry/max.xbm \
373         themes/I-merry/iconify.xbm \
374         themes/I-merry/close.xbm
375
376 greenz_themedir = $(themedir)/greenz
377 dist_greenz_theme_DATA = \
378         themes/greenz/themerc
379
380 bbstyle_themedir = $(themedir)/BBstylE
381 dist_bbstyle_theme_DATA = \
382         themes/BBstylE/themerc \
383         themes/BBstylE/max.xbm \
384         themes/BBstylE/max_toggled.xbm \
385         themes/BBstylE/desk.xbm \
386         themes/BBstylE/desk_toggled.xbm \
387         themes/BBstylE/shade.xbm \
388         themes/BBstylE/shade_toggled.xbm \
389         themes/BBstylE/iconify.xbm \
390         themes/BBstylE/close.xbm
391
392 om4ob_themedir = $(themedir)/om4ob
393 dist_om4ob_theme_DATA = \
394         themes/om4ob/themerc \
395         themes/om4ob/close_hover.xbm \
396         themes/om4ob/close.xbm \
397         themes/om4ob/desk_hover.xbm \
398         themes/om4ob/desk_toggled.xbm \
399         themes/om4ob/desk.xbm \
400         themes/om4ob/iconify_hover.xbm \
401         themes/om4ob/iconify_pressed.xbm \
402         themes/om4ob/iconify.xbm \
403         themes/om4ob/max_disabled.xbm \
404         themes/om4ob/max_hover.xbm \
405         themes/om4ob/max_pressed.xbm \
406         themes/om4ob/max_toggled.xbm \
407         themes/om4ob/max.xbm \
408         themes/om4ob/shade_disabled.xbm \
409         themes/om4ob/shade_hover.xbm \
410         themes/om4ob/shade_toggled.xbm \
411         themes/om4ob/shade.xbm
412
413
414 ## data ##
415
416 dist_rc_DATA = \
417         data/rc3
418
419 dist_desktopfiles_DATA = \
420         data/openbox.desktop
421
422 EXTRA_DIST = \
423         config.rpath \
424         mkinstalldirs \
425         README \
426         COPYING \
427         AUTHORS
428
429 #doc:
430 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
431
432 distclean-local:
433         for d in . m4 po render; do \
434                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
435                         rm -f "$$d/$$p"; \
436                 done \
437         done
438
439 .PHONY: doc