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