Fix a typo that prevented setting client size for the height only (???)
[openbox.git] / Makefile.am
blobf32591f571b3c4c53503092119015c8c3c57fb57
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 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
18 theme = Clearlooks
20 AUTOMAKE_OPTIONS = subdir-objects foreign
22 ACLOCAL_AMFLAGS = -I m4
24 INCLUDES = -I.
26 check_PROGRAMS = \
27         obrender/rendertest
29 lib_LTLIBRARIES = \
30         obt/libobt.la \
31         obrender/libobrender.la
33 bin_PROGRAMS = \
34         openbox/openbox \
35         tools/gdm-control/gdm-control \
36         tools/gnome-panel-control/gnome-panel-control \
37         tools/obxprop/obxprop
39 nodist_bin_SCRIPTS = \
40         data/xsession/openbox-session \
41         data/xsession/openbox-gnome-session \
42         data/xsession/openbox-kde-session
44 dist_rc_SCRIPTS = \
45         data/environment
47 nodist_rc_SCRIPTS = \
48         data/autostart/autostart
50 dist_libexec_SCRIPTS = \
51         data/autostart/openbox-xdg-autostart
53 nodist_libexec_SCRIPTS = \
54         data/autostart/openbox-autostart
57 ## obrender ##
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
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
114 ## obt ##
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
163 ## openbox ##
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/place_overlap.c \
290         openbox/place_overlap.h \
291         openbox/prompt.c \
292         openbox/prompt.h \
293         openbox/popup.c \
294         openbox/popup.h \
295         openbox/resist.c \
296         openbox/resist.h \
297         openbox/screen.c \
298         openbox/screen.h \
299         openbox/session.c \
300         openbox/session.h \
301         openbox/stacking.c \
302         openbox/stacking.h \
303         openbox/startupnotify.c \
304         openbox/startupnotify.h \
305         openbox/translate.c \
306         openbox/translate.h \
307         openbox/window.c \
308         openbox/window.h
311 ## gnome-panel-control ##
313 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
314         $(X_CFLAGS)
315 tools_gnome_panel_control_gnome_panel_control_LDADD = \
316         $(X_LIBS)
317 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
318         tools/gnome-panel-control/gnome-panel-control.c
320 ## obxprop ##
322 tools_obxprop_obxprop_CPPFLAGS = \
323         $(GLIB_CFLAGS) \
324         $(X_CFLAGS)
325 tools_obxprop_obxprop_LDADD = \
326         $(GLIB_LIBS) \
327         $(X_LIBS)
328 tools_obxprop_obxprop_SOURCES = \
329         tools/obxprop/obxprop.c
331 ## gdm-control ##
333 tools_gdm_control_gdm_control_CPPFLAGS = \
334         $(XAUTH_CFLAGS) \
335         $(X_CFLAGS) \
336         $(GLIB_CFLAGS)
337 tools_gdm_control_gdm_control_LDADD = \
338         $(XAUTH_LIBS) \
339         $(X_LIBS) \
340         $(GLIB_LIBS)
341 tools_gdm_control_gdm_control_SOURCES = \
342         tools/gdm-control/gdm-control.c
345 ## default button masks ##
346 dist_docxbm_DATA = \
347         data/xbm/bullet.xbm \
348         data/xbm/close.xbm \
349         data/xbm/desk_toggled.xbm \
350         data/xbm/desk.xbm \
351         data/xbm/iconify.xbm \
352         data/xbm/max_toggled.xbm \
353         data/xbm/max.xbm \
354         data/xbm/shade_toggled.xbm \
355         data/xbm/shade.xbm
358 ## themes ##
360 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
361 dist_clearlooks_theme_DATA= \
362         themes/Clearlooks/openbox-3/themerc
364 clearlooks34_themedir = $(themedir)/Clearlooks-3.4/openbox-3
365 dist_clearlooks34_theme_DATA= \
366         themes/Clearlooks-3.4/openbox-3/themerc
368 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
369 dist_clearlooksolive_theme_DATA= \
370         themes/Clearlooks-Olive/openbox-3/themerc
372 mikachu_themedir = $(themedir)/Mikachu/openbox-3
373 dist_mikachu_theme_DATA= \
374         themes/Mikachu/openbox-3/bullet.xbm \
375         themes/Mikachu/openbox-3/close.xbm \
376         themes/Mikachu/openbox-3/desk.xbm \
377         themes/Mikachu/openbox-3/iconify.xbm \
378         themes/Mikachu/openbox-3/max.xbm \
379         themes/Mikachu/openbox-3/themerc
382 natura_themedir = $(themedir)/Natura/openbox-3
383 dist_natura_theme_DATA= \
384         themes/Natura/openbox-3/close_hover.xbm \
385         themes/Natura/openbox-3/close.xbm \
386         themes/Natura/openbox-3/desk_toggled.xbm \
387         themes/Natura/openbox-3/desk_hover.xbm \
388         themes/Natura/openbox-3/desk.xbm \
389         themes/Natura/openbox-3/iconify_hover.xbm \
390         themes/Natura/openbox-3/iconify.xbm \
391         themes/Natura/openbox-3/max_hover.xbm \
392         themes/Natura/openbox-3/max_toggled.xbm \
393         themes/Natura/openbox-3/max.xbm \
394         themes/Natura/openbox-3/shade.xbm \
395         themes/Natura/openbox-3/shade_hover.xbm \
396         themes/Natura/openbox-3/themerc
398 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
399 dist_artwizboxed_theme_DATA= \
400         themes/Artwiz-boxed/openbox-3/themerc
402 bear2_themedir = $(themedir)/Bear2/openbox-3
403 dist_bear2_theme_DATA= \
404         themes/Bear2/openbox-3/close_pressed.xbm \
405         themes/Bear2/openbox-3/close.xbm \
406         themes/Bear2/openbox-3/desk_toggled.xbm \
407         themes/Bear2/openbox-3/desk.xbm \
408         themes/Bear2/openbox-3/iconify_pressed.xbm \
409         themes/Bear2/openbox-3/iconify.xbm \
410         themes/Bear2/openbox-3/max_pressed.xbm \
411         themes/Bear2/openbox-3/max_toggled.xbm \
412         themes/Bear2/openbox-3/max.xbm \
413         themes/Bear2/openbox-3/shade_pressed.xbm \
414         themes/Bear2/openbox-3/shade.xbm \
415         themes/Bear2/openbox-3/themerc
417 orang_themedir = $(themedir)/Orang/openbox-3
418 dist_orang_theme_DATA= \
419         themes/Orang/openbox-3/themerc
421 onyx_themedir = $(themedir)/Onyx/openbox-3
422 dist_onyx_theme_DATA= \
423         themes/Onyx/openbox-3/themerc
425 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
426 dist_onyxcitrus_theme_DATA= \
427         themes/Onyx-Citrus/openbox-3/themerc
429 syscrash_themedir = $(themedir)/Syscrash/openbox-3
430 dist_syscrash_theme_DATA= \
431         themes/Syscrash/openbox-3/max_disabled.xbm \
432         themes/Syscrash/openbox-3/max_pressed.xbm \
433         themes/Syscrash/openbox-3/max_toggled.xbm \
434         themes/Syscrash/openbox-3/max.xbm \
435         themes/Syscrash/openbox-3/themerc
437 ## public headers ##
439 rrpubinclude_HEADERS = \
440         obrender/color.h \
441         obrender/font.h \
442         obrender/geom.h \
443         obrender/gradient.h \
444         obrender/image.h \
445         obrender/instance.h \
446         obrender/mask.h \
447         obrender/render.h \
448         obrender/theme.h \
449         obrender/version.h
451 obtpubinclude_HEADERS = \
452         obt/link.h \
453         obt/display.h \
454         obt/keyboard.h \
455         obt/xml.h \
456         obt/paths.h \
457         obt/prop.h \
458         obt/signal.h \
459         obt/util.h \
460         obt/version.h \
461         obt/xqueue.h
463 nodist_pkgconfig_DATA = \
464         obrender/obrender-3.5.pc \
465         obt/obt-3.5.pc
467 ## data ##
469 dist_apps_DATA = \
470         data/openbox.desktop
472 dist_pixmap_DATA = \
473         data/openbox.png
475 dist_rc_DATA = \
476         data/rc.xml \
477         data/menu.xml
479 edit = $(SED) \
480         -e 's!@version\@!$(VERSION)!' \
481         -e 's!@configdir\@!$(configdir)!' \
482         -e 's!@rcdir\@!$(rcdir)!' \
483         -e 's!@libexecdir\@!$(libexecdir)!' \
484         -e 's!@bindir\@!$(bindir)!'
486 data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile
487         @echo make: creating $@
488         @test -d $(shell dirname $(top_builddir)/$@) || \
489           mkdir $(shell dirname $(top_builddir)/$@)
490         @$(edit) $< >$(top_builddir)/$@
492 data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile
493         @echo make: creating $@
494         @test -d $(shell dirname $(top_builddir)/$@) || \
495           mkdir $(shell dirname $(top_builddir)/$@)
496         @$(edit) $< >$(top_builddir)/$@
498 %.desktop: %.desktop.in Makefile
499         @echo make: creating $@
500         @$(edit) $< >$@ 
502 %-session: %-session.in Makefile
503         @echo make: creating $@
504         @$(edit) $< >$@ 
506 %.1.in: %.1.sgml
507         @echo make: creating $@
508         @docbook-to-man $< >$@
510 %.1: %.1.in Makefile
511         @echo make: creating $@
512         @$(edit) $< >$@ 
514 dist_gnomewmfiles_DATA = \
515         data/gnome-wm-properties/openbox.desktop
517 nodist_xsessions_DATA = \
518         data/xsession/openbox.desktop \
519         data/xsession/openbox-gnome.desktop \
520         data/xsession/openbox-kde.desktop
522 dist_gnomesession_DATA = \
523         data/gnome-session/openbox-gnome.session \
524         data/gnome-session/openbox-gnome-fallback.session
526 dist_noinst_DATA = \
527         data/rc.xsd \
528         data/menu.xsd \
529         data/autostart/autostart.in \
530         data/autostart/openbox-autostart.in \
531         data/xsession/openbox.desktop.in \
532         data/xsession/openbox-gnome.desktop.in \
533         data/xsession/openbox-kde.desktop.in \
534         data/xsession/openbox-session.in \
535         data/xsession/openbox-gnome-session.in \
536         data/xsession/openbox-kde-session.in \
537         doc/openbox.1.sgml \
538         doc/openbox.1.in \
539         doc/openbox-session.1.sgml \
540         doc/openbox-session.1.in \
541         doc/openbox-gnome-session.1.sgml \
542         doc/openbox-gnome-session.1.in \
543         doc/openbox-kde-session.1.sgml \
544         doc/openbox-kde-session.1.in \
545         doc/obxprop.1.sgml \
546         doc/obxprop.1.in \
547         obrender/version.h.in \
548         obrender/obrender-3.5.pc.in \
549         obt/obt-3.5.pc.in \
550         obt/version.h.in \
551         tools/themeupdate/themeupdate.py \
552         tests/hideshow.py \
553         tests/Makefile \
554         tests/aspect.c \
555         tests/fullscreen.c \
556         tests/grav.c \
557         tests/grouptran.c \
558         tests/icons.c \
559         tests/modal2.c \
560         tests/modal3.c \
561         tests/modal.c \
562         tests/noresize.c \
563         tests/override.c \
564         tests/positioned.c \
565         tests/strut.c \
566         tests/title.c \
567         tests/urgent.c
569 dist_doc_DATA = \
570         COMPLIANCE \
571         README \
572         AUTHORS \
573         CHANGELOG \
574         COPYING \
575         data/rc.xsd \
576         data/menu.xsd \
577         doc/rc-mouse-focus.xml
579 nodist_man_MANS = \
580         doc/openbox.1 \
581         doc/openbox-session.1 \
582         doc/openbox-gnome-session.1 \
583         doc/openbox-kde-session.1 \
584         doc/obxprop.1
586 EXTRA_DIST = \
587         config.rpath
589 # make clean doesn't delete these for some reason, even though they are
590 # built by make
591 CLEANFILES = \
592         $(nodist_man_MANS) \
593         $(nodist_bin_SCRIPTS) \
594         $(nodist_xsessions_DATA) \
595         $(nodist_rc_SCRIPTS) \
596         $(nodist_libexec_SCRIPTS)
598 #doc:
599 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
601 distclean-local:
602         for d in . m4 po obrender parser obt openbox; do \
603                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
604                         rm -f "$$d/$$p"; \
605                 done \
606         done
608 .PHONY: doc