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