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