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