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