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