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