add a SessionLogout action
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 docxbmdir       = $(docdir)/xbm
4 themedir        = $(datadir)/themes
5 localedir       = $(datadir)/locale
6 configdir       = $(sysconfdir)/xdg
7 rcdir           = $(configdir)/openbox
8 xsessionsdir    = $(datadir)/xsessions
9 gnomewmfilesdir = $(datadir)/gnome/wm-properties
10 pkgconfigdir    = $(libdir)/pkgconfig
11 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
12 pixmapdir       = $(datadir)/pixmaps
13 xsddir          = $(datadir)/openbox
14 secretbindir    = $(libdir)/openbox
15
16 theme = Clearlooks
17
18 AUTOMAKE_OPTIONS = subdir-objects foreign
19
20 ACLOCAL_AMFLAGS = -I m4
21
22 INCLUDES = -I.
23
24 check_PROGRAMS = \
25         render/rendertest
26
27 lib_LTLIBRARIES = \
28         parser/libobparser.la \
29         render/libobrender.la
30
31 bin_PROGRAMS = \
32         openbox/openbox \
33         tools/gnome-panel-control/gnome-panel-control
34
35 dist_secretbin_SCRIPTS = \
36         tools/xdg-autostart/xdg-autostart
37
38 nodist_bin_SCRIPTS = \
39         data/xsession/openbox-session \
40         data/xsession/openbox-gnome-session \
41         data/xsession/openbox-kde-session
42
43 ## render ##
44
45 render_rendertest_CPPFLAGS = \
46         $(PANGO_CFLAGS) \
47         $(XFT_CFLAGS) \
48         $(GLIB_CFLAGS) \
49         -DG_LOG_DOMAIN=\"RenderTest\"
50 render_rendertest_LDADD = \
51         parser/libobparser.la \
52         render/libobrender.la \
53         $(GLIB_LIBS) \
54         $(PANGO_LIBS) \
55         $(XFT_LIBS) \
56         $(XML_LIBS) \
57         $(X_LIBS)
58 render_rendertest_SOURCES = render/test.c
59
60 render_libobrender_la_CPPFLAGS = \
61         $(X_CFLAGS) \
62         $(GLIB_CFLAGS) \
63         $(XML_CFLAGS) \
64         $(PANGO_CFLAGS) \
65         $(XFT_CFLAGS) \
66         -DG_LOG_DOMAIN=\"ObRender\" \
67         -DDEFAULT_THEME=\"$(theme)\"
68 render_libobrender_la_LDFLAGS = \
69         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
70 render_libobrender_la_LIBADD = \
71         parser/libobparser.la \
72         $(X_LIBS) \
73         $(PANGO_LIBS) \
74         $(XFT_LIBS) \
75         $(GLIB_LIBS) \
76         $(XML_LIBS)
77 render_libobrender_la_SOURCES = \
78         gettext.h \
79         render/color.h \
80         render/color.c \
81         render/font.h \
82         render/font.c \
83         render/geom.h \
84         render/gradient.h \
85         render/gradient.c \
86         render/icon.h \
87         render/image.h \
88         render/image.c \
89         render/imagecache.h \
90         render/imagecache.c \
91         render/instance.h \
92         render/instance.c \
93         render/mask.h \
94         render/mask.c \
95         render/render.h \
96         render/render.c \
97         render/theme.h \
98         render/theme.c
99
100 ## parser ##
101
102 parser_libobparser_la_CPPFLAGS = \
103         $(GLIB_CFLAGS) \
104         $(XML_CFLAGS) \
105         -DG_LOG_DOMAIN=\"ObParser\" \
106         -DLOCALEDIR=\"$(localedir)\" \
107         -DDATADIR=\"$(datadir)\" \
108         -DCONFIGDIR=\"$(configdir)\"
109 parser_libobparser_la_LDFLAGS = \
110         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
111 parser_libobparser_la_LIBADD = \
112         $(GLIB_LIBS) \
113         $(XML_LIBS) 
114 parser_libobparser_la_SOURCES = \
115         parser/parse.h \
116         parser/parse.c
117
118 ## openbox ##
119
120 openbox_openbox_CPPFLAGS = \
121         $(SM_CFLAGS) \
122         $(XINERAMA_CFLAGS) \
123         $(XKB_CFLAGS) \
124         $(XRANDR_CFLAGS) \
125         $(XSHAPE_CFLAGS) \
126         $(XSYNC_CFLAGS) \
127         $(X_CFLAGS) \
128         $(XCURSOR_CFLAGS) \
129         $(SM_CFLAGS) \
130         $(PANGO_CFLAGS) \
131         $(GLIB_CFLAGS) \
132         $(LIBSN_CFLAGS) \
133         $(XML_CFLAGS) \
134         -DLOCALEDIR=\"$(localedir)\" \
135         -DDATADIR=\"$(datadir)\" \
136         -DCONFIGDIR=\"$(configdir)\" \
137         -DG_LOG_DOMAIN=\"Openbox\"
138 openbox_openbox_LDADD = \
139         $(SM_LIBS) \
140         $(XINERAMA_LIBS) \
141         $(XKB_LIBS) \
142         $(XRANDR_LIBS) \
143         $(XSHAPE_LIBS) \
144         $(XSYNC_LIBS) \
145         $(GLIB_LIBS) \
146         $(X_LIBS) \
147         $(XCURSOR_LIBS) \
148         $(LIBSN_LIBS) \
149         $(XML_LIBS) \
150         $(EFENCE_LIBS) \
151         $(LIBINTL) \
152         render/libobrender.la \
153         parser/libobparser.la
154 openbox_openbox_LDFLAGS = -export-dynamic
155 openbox_openbox_SOURCES = \
156         gettext.h \
157         openbox/actions/all.c \
158         openbox/actions/all.h \
159         openbox/actions/addremovedesktop.c \
160         openbox/actions/breakchroot.c \
161         openbox/actions/close.c \
162         openbox/actions/cyclewindows.c \
163         openbox/actions/debug.c \
164         openbox/actions/decorations.c \
165         openbox/actions/desktop.c \
166         openbox/actions/dockautohide.c \
167         openbox/actions/directionalwindows.c \
168         openbox/actions/execute.c \
169         openbox/actions/exit.c \
170         openbox/actions/focus.c \
171         openbox/actions/focustobottom.c \
172         openbox/actions/fullscreen.c \
173         openbox/actions/growtoedge.c \
174         openbox/actions/iconify.c \
175         openbox/actions/if.c \
176         openbox/actions/kill.c \
177         openbox/actions/layer.c \
178         openbox/actions/session.c \
179         openbox/actions/lower.c \
180         openbox/actions/maximize.c \
181         openbox/actions/move.c \
182         openbox/actions/moverelative.c \
183         openbox/actions/moveresizeto.c \
184         openbox/actions/movetoedge.c \
185         openbox/actions/omnipresent.c \
186         openbox/actions/raise.c \
187         openbox/actions/raiselower.c \
188         openbox/actions/reconfigure.c \
189         openbox/actions/resize.c \
190         openbox/actions/resizerelative.c \
191         openbox/actions/restart.c \
192         openbox/actions/shade.c \
193         openbox/actions/showdesktop.c \
194         openbox/actions/showmenu.c \
195         openbox/actions/unfocus.c \
196         openbox/actions.c \
197         openbox/actions.h \
198         openbox/client.c \
199         openbox/client.h \
200         openbox/client_list_menu.c \
201         openbox/client_list_menu.h \
202         openbox/client_list_combined_menu.c \
203         openbox/client_list_combined_menu.h \
204         openbox/client_menu.c \
205         openbox/client_menu.h \
206         openbox/config.c \
207         openbox/config.h \
208         openbox/debug.c \
209         openbox/debug.h \
210         openbox/dock.c \
211         openbox/dock.h \
212         openbox/event.c \
213         openbox/event.h \
214         openbox/extensions.c \
215         openbox/extensions.h \
216         openbox/focus.c \
217         openbox/focus.h \
218         openbox/focus_cycle.c \
219         openbox/focus_cycle.h \
220         openbox/focus_cycle_indicator.c \
221         openbox/focus_cycle_indicator.h \
222         openbox/focus_cycle_popup.c \
223         openbox/focus_cycle_popup.h \
224         openbox/frame.c \
225         openbox/frame.h \
226         openbox/framerender.c \
227         openbox/framerender.h \
228         openbox/geom.h \
229         openbox/grab.c \
230         openbox/grab.h \
231         openbox/group.c \
232         openbox/group.h \
233         openbox/keyboard.c \
234         openbox/keyboard.h \
235         openbox/keytree.c \
236         openbox/keytree.h \
237         openbox/mainloop.c \
238         openbox/mainloop.h \
239         openbox/menuframe.c \
240         openbox/menuframe.h \
241         openbox/menu.c \
242         openbox/menu.h \
243         openbox/misc.h \
244         openbox/modkeys.c \
245         openbox/modkeys.h \
246         openbox/mouse.c \
247         openbox/mouse.h \
248         openbox/moveresize.c \
249         openbox/moveresize.h \
250         openbox/mwm.h \
251         openbox/openbox.c \
252         openbox/openbox.h \
253         openbox/ping.c \
254         openbox/ping.h \
255         openbox/place.c \
256         openbox/place.h \
257         openbox/prompt.c \
258         openbox/prompt.h \
259         openbox/popup.c \
260         openbox/popup.h \
261         openbox/prop.c \
262         openbox/prop.h \
263         openbox/resist.c \
264         openbox/resist.h \
265         openbox/screen.c \
266         openbox/screen.h \
267         openbox/session.c \
268         openbox/session.h \
269         openbox/stacking.c \
270         openbox/stacking.h \
271         openbox/startupnotify.c \
272         openbox/startupnotify.h \
273         openbox/translate.c \
274         openbox/translate.h \
275         openbox/window.c \
276         openbox/window.h \
277         openbox/xerror.c \
278         openbox/xerror.h
279
280
281 ## gnome-panel-control ##
282
283 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
284         $(X_CFLAGS)
285 tools_gnome_panel_control_gnome_panel_control_LDADD = \
286         $(X_LIBS)
287 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
288         tools/gnome-panel-control/gnome-panel-control.c
289
290
291 ## default button masks ##
292 dist_docxbm_DATA = \
293         data/xbm/bullet.xbm \
294         data/xbm/close.xbm \
295         data/xbm/desk_toggled.xbm \
296         data/xbm/desk.xbm \
297         data/xbm/iconify.xbm \
298         data/xbm/max_toggled.xbm \
299         data/xbm/max.xbm \
300         data/xbm/shade_toggled.xbm \
301         data/xbm/shade.xbm
302
303
304 ## themes ##
305
306 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
307 dist_clearlooks_theme_DATA= \
308         themes/Clearlooks/openbox-3/themerc
309
310 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
311 dist_clearlooks34_theme_DATA= \
312         themes/Clearlooks-3.4/openbox-3/themerc
313
314 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
315 dist_clearlooksolive_theme_DATA= \
316         themes/Clearlooks-Olive/openbox-3/themerc
317
318 mikachu_themedir = $(themedir)/Mikachu/openbox-3
319 dist_mikachu_theme_DATA= \
320         themes/Mikachu/openbox-3/bullet.xbm \
321         themes/Mikachu/openbox-3/close.xbm \
322         themes/Mikachu/openbox-3/desk.xbm \
323         themes/Mikachu/openbox-3/iconify.xbm \
324         themes/Mikachu/openbox-3/max.xbm \
325         themes/Mikachu/openbox-3/themerc
326
327
328 natura_themedir = $(themedir)/Natura/openbox-3
329 dist_natura_theme_DATA= \
330         themes/Natura/openbox-3/close_hover.xbm \
331         themes/Natura/openbox-3/close.xbm \
332         themes/Natura/openbox-3/desk_toggled.xbm \
333         themes/Natura/openbox-3/desk_hover.xbm \
334         themes/Natura/openbox-3/desk.xbm \
335         themes/Natura/openbox-3/iconify_hover.xbm \
336         themes/Natura/openbox-3/iconify.xbm \
337         themes/Natura/openbox-3/max_hover.xbm \
338         themes/Natura/openbox-3/max_toggled.xbm \
339         themes/Natura/openbox-3/max.xbm \
340         themes/Natura/openbox-3/shade.xbm \
341         themes/Natura/openbox-3/shade_hover.xbm \
342         themes/Natura/openbox-3/themerc
343
344 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
345 dist_artwizboxed_theme_DATA= \
346         themes/Artwiz-boxed/openbox-3/themerc
347
348 bear2_themedir = $(themedir)/Bear2/openbox-3
349 dist_bear2_theme_DATA= \
350         themes/Bear2/openbox-3/close_pressed.xbm \
351         themes/Bear2/openbox-3/close.xbm \
352         themes/Bear2/openbox-3/desk_toggled.xbm \
353         themes/Bear2/openbox-3/desk.xbm \
354         themes/Bear2/openbox-3/iconify_pressed.xbm \
355         themes/Bear2/openbox-3/iconify.xbm \
356         themes/Bear2/openbox-3/max_pressed.xbm \
357         themes/Bear2/openbox-3/max_toggled.xbm \
358         themes/Bear2/openbox-3/max.xbm \
359         themes/Bear2/openbox-3/shade_pressed.xbm \
360         themes/Bear2/openbox-3/shade.xbm \
361         themes/Bear2/openbox-3/themerc
362
363 orang_themedir = $(themedir)/Orang/openbox-3
364 dist_orang_theme_DATA= \
365         themes/Orang/openbox-3/themerc
366
367 onyx_themedir = $(themedir)/Onyx/openbox-3
368 dist_onyx_theme_DATA= \
369         themes/Onyx/openbox-3/themerc
370
371 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
372 dist_onyxcitrus_theme_DATA= \
373         themes/Onyx-Citrus/openbox-3/themerc
374
375 syscrash_themedir = $(themedir)/Syscrash/openbox-3
376 dist_syscrash_theme_DATA= \
377         themes/Syscrash/openbox-3/max_disabled.xbm \
378         themes/Syscrash/openbox-3/max_pressed.xbm \
379         themes/Syscrash/openbox-3/max_toggled.xbm \
380         themes/Syscrash/openbox-3/max.xbm \
381         themes/Syscrash/openbox-3/themerc
382
383 ## public headers ##
384
385 pubinclude_HEADERS = \
386         render/color.h \
387         render/font.h \
388         render/geom.h \
389         render/gradient.h \
390         render/image.h \
391         render/instance.h \
392         render/mask.h \
393         render/render.h \
394         render/theme.h \
395         parser/parse.h
396
397 nodist_pubinclude_HEADERS = \
398         version.h
399
400 nodist_pkgconfig_DATA = \
401         render/obrender-3.0.pc \
402         parser/obparser-3.0.pc
403
404 ## data ##
405
406 dist_pixmap_DATA = \
407         data/openbox.png
408
409 nodist_rc_DATA = \
410         data/autostart.sh
411
412 dist_rc_DATA = \
413         data/rc.xml \
414         data/menu.xml
415
416 edit = $(SED) \
417         -e 's!@version\@!$(VERSION)!' \
418         -e 's!@configdir\@!$(configdir)!' \
419         -e 's!@secretbindir\@!$(secretbindir)!' \
420         -e 's!@bindir\@!$(bindir)!'
421
422 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
423         @echo make: creating $@
424         @$(edit) $< >$@
425
426 %.desktop: %.desktop.in Makefile
427         @echo make: creating $@
428         @$(edit) $< >$@ 
429
430 %-session: %-session.in Makefile
431         @echo make: creating $@
432         @$(edit) $< >$@ 
433
434 %.1.in: %.1.sgml
435         @echo make: creating $@
436         @docbook-to-man $< >$@
437
438 %.1: %.1.in Makefile
439         @echo make: creating $@
440         @$(edit) $< >$@ 
441
442 dist_gnomewmfiles_DATA = \
443         data/gnome-wm-properties/openbox.desktop
444
445 nodist_xsessions_DATA = \
446         data/xsession/openbox.desktop \
447         data/xsession/openbox-gnome.desktop \
448         data/xsession/openbox-kde.desktop
449
450 dist_noinst_DATA = \
451         version.h.in \
452         data/autostart.sh.in \
453         data/rc.xsd \
454         data/menu.xsd \
455         data/xsession/openbox.desktop.in \
456         data/xsession/openbox-gnome.desktop.in \
457         data/xsession/openbox-kde.desktop.in \
458         data/xsession/openbox-session.in \
459         data/xsession/openbox-gnome-session.in \
460         data/xsession/openbox-kde-session.in \
461         doc/openbox.1.sgml \
462         doc/openbox.1.in \
463         doc/openbox-session.1.sgml \
464         doc/openbox-session.1.in \
465         doc/openbox-gnome-session.1.sgml \
466         doc/openbox-gnome-session.1.in \
467         doc/openbox-kde-session.1.sgml \
468         doc/openbox-kde-session.1.in \
469         render/obrender-3.0.pc.in \
470         parser/obparser-3.0.pc.in \
471         tools/themeupdate/themeupdate.py \
472         tests/hideshow.py \
473         tests/Makefile \
474         tests/aspect.c \
475         tests/fullscreen.c \
476         tests/grav.c \
477         tests/grouptran.c \
478         tests/icons.c \
479         tests/modal2.c \
480         tests/modal3.c \
481         tests/modal.c \
482         tests/noresize.c \
483         tests/override.c \
484         tests/positioned.c \
485         tests/strut.c \
486         tests/title.c \
487         tests/urgent.c
488
489 dist_doc_DATA = \
490         COMPLIANCE \
491         README \
492         AUTHORS \
493         CHANGELOG \
494         COPYING \
495         data/rc.xsd \
496         data/menu.xsd \
497         doc/rc-mouse-focus.xml
498
499 nodist_man_MANS = \
500         doc/openbox.1 \
501         doc/openbox-session.1 \
502         doc/openbox-gnome-session.1 \
503         doc/openbox-kde-session.1
504
505 EXTRA_DIST = \
506         config.rpath
507
508 # make clean doesn't delete these for some reason, even though they are
509 # built by make
510 CLEANFILES = \
511         doc/openbox.1 \
512         doc/openbox-session.1 \
513         doc/openbox-gnome-session.1 \
514         doc/openbox-kde-session.1 \
515         data/xsession/openbox-session \
516         data/xsession/openbox-gnome-session \
517         data/xsession/openbox-kde-session \
518         data/xsession/openbox.desktop \
519         data/xsession/openbox-gnome.desktop \
520         data/xsession/openbox-kde.desktop
521
522 #doc:
523 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
524
525 distclean-local:
526         for d in . m4 po render; do \
527                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
528                         rm -f "$$d/$$p"; \
529                 done \
530         done
531
532 .PHONY: doc