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