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