]> icculus.org git repositories - dana/openbox.git/blob - Makefile.am
check for damage and render extensions if going to use composite. require them for...
[dana/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
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 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
12 pixmapdir       = $(datadir)/pixmaps
13 xsddir          = $(datadir)/openbox
14
15 theme = Clearlooks
16
17 AUTOMAKE_OPTIONS = subdir-objects foreign
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 INCLUDES = -I.
22
23 check_PROGRAMS = \
24         render/rendertest
25
26 lib_LTLIBRARIES = \
27         parser/libobparser.la \
28         render/libobrender.la
29
30 bin_PROGRAMS = \
31         openbox/openbox \
32         tools/gnome-panel-control/gnome-panel-control
33
34 nodist_bin_SCRIPTS = \
35         data/xsession/openbox-session \
36         data/xsession/openbox-gnome-session \
37         data/xsession/openbox-kde-session
38
39 ## render ##
40
41 render_rendertest_CPPFLAGS = \
42         $(PANGO_CFLAGS) \
43         $(XFT_CFLAGS) \
44         $(GLIB_CFLAGS) \
45         -DG_LOG_DOMAIN=\"RenderTest\"
46 render_rendertest_LDADD = \
47         parser/libobparser.la \
48         render/libobrender.la \
49         $(GLIB_LIBS) \
50         $(PANGO_LIBS) \
51         $(XFT_LIBS) \
52         $(XML_LIBS) \
53         $(X_LIBS)
54 render_rendertest_SOURCES = render/test.c
55
56 render_libobrender_la_CPPFLAGS = \
57         $(X_CFLAGS) \
58         $(GLIB_CFLAGS) \
59         $(XML_CFLAGS) \
60         $(PANGO_CFLAGS) \
61         $(XFT_CFLAGS) \
62         -DG_LOG_DOMAIN=\"ObRender\" \
63         -DDEFAULT_THEME=\"$(theme)\"
64 render_libobrender_la_LDFLAGS = \
65         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
66 render_libobrender_la_LIBADD = \
67         parser/libobparser.la \
68         $(X_LIBS) \
69         $(PANGO_LIBS) \
70         $(XFT_LIBS) \
71         $(GLIB_LIBS) \
72         $(XML_LIBS)
73 render_libobrender_la_SOURCES = \
74         gettext.h \
75         render/color.h \
76         render/color.c \
77         render/font.h \
78         render/font.c \
79         render/geom.h \
80         render/gradient.h \
81         render/gradient.c \
82         render/icon.h \
83         render/image.h \
84         render/image.c \
85         render/instance.h \
86         render/instance.c \
87         render/mask.h \
88         render/mask.c \
89         render/render.h \
90         render/render.c \
91         render/theme.h \
92         render/theme.c
93
94 ## parser ##
95
96 parser_libobparser_la_CPPFLAGS = \
97         $(GLIB_CFLAGS) \
98         $(XML_CFLAGS) \
99         -DG_LOG_DOMAIN=\"ObParser\" \
100         -DLOCALEDIR=\"$(localedir)\" \
101         -DDATADIR=\"$(datadir)\" \
102         -DCONFIGDIR=\"$(configdir)\"
103 parser_libobparser_la_LDFLAGS = \
104         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
105 parser_libobparser_la_LIBADD = \
106         $(GLIB_LIBS) \
107         $(XML_LIBS) 
108 parser_libobparser_la_SOURCES = \
109         parser/parse.h \
110         parser/parse.c
111
112 ## openbox ##
113
114 openbox_openbox_CPPFLAGS = \
115         $(SM_CFLAGS) \
116         $(XINERAMA_CFLAGS) \
117         $(XKB_CFLAGS) \
118         $(XRANDR_CFLAGS) \
119         $(XSHAPE_CFLAGS) \
120         $(XSYNC_CFLAGS) \
121         $(XRENDER_CFLAGS) \
122         $(XDAMAGE_CFLAGS) \
123         $(XCOMPOSITE_CFLAGS) \
124         $(X_CFLAGS) \
125         $(XCURSOR_CFLAGS) \
126         $(SM_CFLAGS) \
127         $(PANGO_CFLAGS) \
128         $(GLIB_CFLAGS) \
129         $(LIBSN_CFLAGS) \
130         $(XML_CFLAGS) \
131         -DLOCALEDIR=\"$(localedir)\" \
132         -DDATADIR=\"$(datadir)\" \
133         -DCONFIGDIR=\"$(configdir)\" \
134         -DG_LOG_DOMAIN=\"Openbox\"
135 openbox_openbox_LDADD = \
136         $(SM_LIBS) \
137         $(XINERAMA_LIBS) \
138         $(XKB_LIBS) \
139         $(XRANDR_LIBS) \
140         $(XSHAPE_LIBS) \
141         $(XSYNC_LIBS) \
142         $(GLIB_LIBS) \
143         $(XRENDER_LIBS) \
144         $(XDAMAGE_LIBS) \
145         $(XCOMPOSITE_LIBS) \
146         $(X_LIBS) \
147         $(XCURSOR_LIBS) \
148         $(LIBSN_LIBS) \
149         $(XML_LIBS) \
150         $(EFENCE_LIBS) \
151         $(LIBINTL) \
152         render/libobrender.la \
153         parser/libobparser.la
154 openbox_openbox_LDFLAGS = -export-dynamic
155 openbox_openbox_SOURCES = \
156         gettext.h \
157         openbox/action.c \
158         openbox/action.h \
159         openbox/client.c \
160         openbox/client.h \
161         openbox/client_list_menu.c \
162         openbox/client_list_menu.h \
163         openbox/client_list_combined_menu.c \
164         openbox/client_list_combined_menu.h \
165         openbox/client_menu.c \
166         openbox/client_menu.h \
167         openbox/config.c \
168         openbox/config.h \
169         openbox/debug.c \
170         openbox/debug.h \
171         openbox/dock.c \
172         openbox/dock.h \
173         openbox/event.c \
174         openbox/event.h \
175         openbox/extensions.c \
176         openbox/extensions.h \
177         openbox/focus.c \
178         openbox/focus.h \
179         openbox/focus_cycle.c \
180         openbox/focus_cycle.h \
181         openbox/focus_cycle_indicator.c \
182         openbox/focus_cycle_indicator.h \
183         openbox/focus_cycle_popup.c \
184         openbox/focus_cycle_popup.h \
185         openbox/frame.c \
186         openbox/frame.h \
187         openbox/framerender.c \
188         openbox/framerender.h \
189         openbox/geom.h \
190         openbox/grab.c \
191         openbox/grab.h \
192         openbox/group.c \
193         openbox/group.h \
194         openbox/keyboard.c \
195         openbox/keyboard.h \
196         openbox/keytree.c \
197         openbox/keytree.h \
198         openbox/mainloop.c \
199         openbox/mainloop.h \
200         openbox/menuframe.c \
201         openbox/menuframe.h \
202         openbox/menu.c \
203         openbox/menu.h \
204         openbox/misc.h \
205         openbox/modkeys.c \
206         openbox/modkeys.h \
207         openbox/mouse.c \
208         openbox/mouse.h \
209         openbox/moveresize.c \
210         openbox/moveresize.h \
211         openbox/mwm.h \
212         openbox/openbox.c \
213         openbox/openbox.h \
214         openbox/place.c \
215         openbox/place.h \
216         openbox/popup.c \
217         openbox/popup.h \
218         openbox/prop.c \
219         openbox/prop.h \
220         openbox/propwin.c \
221         openbox/propwin.h \
222         openbox/resist.c \
223         openbox/resist.h \
224         openbox/screen.c \
225         openbox/screen.h \
226         openbox/session.c \
227         openbox/session.h \
228         openbox/stacking.c \
229         openbox/stacking.h \
230         openbox/startupnotify.c \
231         openbox/startupnotify.h \
232         openbox/translate.c \
233         openbox/translate.h \
234         openbox/window.c \
235         openbox/window.h \
236         openbox/xerror.c \
237         openbox/xerror.h
238
239
240 ## gnome-panel-control ##
241
242 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
243         $(X_CFLAGS)
244 tools_gnome_panel_control_gnome_panel_control_LDADD = \
245         $(X_LIBS)
246 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
247         tools/gnome-panel-control/gnome-panel-control.c
248
249
250 ## default button masks ##
251 dist_docxbm_DATA = \
252         data/xbm/bullet.xbm \
253         data/xbm/close.xbm \
254         data/xbm/desk_toggled.xbm \
255         data/xbm/desk.xbm \
256         data/xbm/iconify.xbm \
257         data/xbm/max_toggled.xbm \
258         data/xbm/max.xbm \
259         data/xbm/shade_toggled.xbm \
260         data/xbm/shade.xbm
261
262
263 ## themes ##
264
265 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
266 dist_clearlooks_theme_DATA= \
267         themes/Clearlooks/openbox-3/themerc
268
269 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
270 dist_clearlooksolive_theme_DATA= \
271         themes/Clearlooks-Olive/openbox-3/themerc
272
273 mikachu_themedir = $(themedir)/Mikachu/openbox-3
274 dist_mikachu_theme_DATA= \
275         themes/Mikachu/openbox-3/bullet.xbm \
276         themes/Mikachu/openbox-3/close.xbm \
277         themes/Mikachu/openbox-3/desk.xbm \
278         themes/Mikachu/openbox-3/iconify.xbm \
279         themes/Mikachu/openbox-3/max.xbm \
280         themes/Mikachu/openbox-3/themerc
281
282
283 natura_themedir = $(themedir)/Natura/openbox-3
284 dist_natura_theme_DATA= \
285         themes/Natura/openbox-3/close_hover.xbm \
286         themes/Natura/openbox-3/close.xbm \
287         themes/Natura/openbox-3/desk_toggled.xbm \
288         themes/Natura/openbox-3/desk_hover.xbm \
289         themes/Natura/openbox-3/desk.xbm \
290         themes/Natura/openbox-3/iconify_hover.xbm \
291         themes/Natura/openbox-3/iconify.xbm \
292         themes/Natura/openbox-3/max_hover.xbm \
293         themes/Natura/openbox-3/max_toggled.xbm \
294         themes/Natura/openbox-3/max.xbm \
295         themes/Natura/openbox-3/shade.xbm \
296         themes/Natura/openbox-3/shade_hover.xbm \
297         themes/Natura/openbox-3/themerc
298
299 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
300 dist_artwizboxed_theme_DATA= \
301         themes/Artwiz-boxed/openbox-3/themerc
302
303 bear2_themedir = $(themedir)/Bear2/openbox-3
304 dist_bear2_theme_DATA= \
305         themes/Bear2/openbox-3/close_pressed.xbm \
306         themes/Bear2/openbox-3/close.xbm \
307         themes/Bear2/openbox-3/desk_toggled.xbm \
308         themes/Bear2/openbox-3/desk.xbm \
309         themes/Bear2/openbox-3/iconify_pressed.xbm \
310         themes/Bear2/openbox-3/iconify.xbm \
311         themes/Bear2/openbox-3/max_pressed.xbm \
312         themes/Bear2/openbox-3/max_toggled.xbm \
313         themes/Bear2/openbox-3/max.xbm \
314         themes/Bear2/openbox-3/shade_pressed.xbm \
315         themes/Bear2/openbox-3/shade.xbm \
316         themes/Bear2/openbox-3/themerc
317
318 orang_themedir = $(themedir)/Orang/openbox-3
319 dist_orang_theme_DATA= \
320         themes/Orang/openbox-3/themerc
321
322 onyx_themedir = $(themedir)/Onyx/openbox-3
323 dist_onyx_theme_DATA= \
324         themes/Onyx/openbox-3/themerc
325
326 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
327 dist_onyxcitrus_theme_DATA= \
328         themes/Onyx-Citrus/openbox-3/themerc
329
330 syscrash_themedir = $(themedir)/Syscrash/openbox-3
331 dist_syscrash_theme_DATA= \
332         themes/Syscrash/openbox-3/max_disabled.xbm \
333         themes/Syscrash/openbox-3/max_pressed.xbm \
334         themes/Syscrash/openbox-3/max_toggled.xbm \
335         themes/Syscrash/openbox-3/max.xbm \
336         themes/Syscrash/openbox-3/themerc
337
338 ## public headers ##
339
340 pubinclude_HEADERS = \
341         render/color.h \
342         render/font.h \
343         render/geom.h \
344         render/gradient.h \
345         render/image.h \
346         render/instance.h \
347         render/mask.h \
348         render/render.h \
349         render/theme.h \
350         parser/parse.h
351
352 nodist_pubinclude_HEADERS = \
353         version.h
354
355 nodist_pkgconfig_DATA = \
356         render/obrender-3.0.pc \
357         parser/obparser-3.0.pc
358
359 ## data ##
360
361 dist_pixmap_DATA = \
362         data/openbox.png
363
364 dist_rc_DATA = \
365         data/autostart.sh \
366         data/rc.xml \
367         data/menu.xml
368
369 edit = $(SED) \
370         -e 's!@version\@!$(VERSION)!' \
371         -e 's!@configdir\@!$(configdir)!' \
372         -e 's!@bindir\@!$(bindir)!'
373
374 %.desktop: %.desktop.in Makefile
375         @echo make: creating $@
376         @$(edit) $< >$@ 
377
378 %-session: %-session.in Makefile
379         @echo make: creating $@
380         @$(edit) $< >$@ 
381
382 %.1.in: %.1.sgml
383         @echo make: creating $@
384         @docbook-to-man $< >$@
385
386 %.1: %.1.in Makefile
387         @echo make: creating $@
388         @$(edit) $< >$@ 
389
390 dist_gnomewmfiles_DATA = \
391         data/gnome-wm-properties/openbox.desktop
392
393 nodist_xsessions_DATA = \
394         data/xsession/openbox.desktop \
395         data/xsession/openbox-gnome.desktop \
396         data/xsession/openbox-kde.desktop
397
398 dist_noinst_DATA = \
399         version.h.in \
400         data/rc.xsd \
401         data/menu.xsd \
402         data/xsession/openbox.desktop.in \
403         data/xsession/openbox-gnome.desktop.in \
404         data/xsession/openbox-kde.desktop.in \
405         data/xsession/openbox-session.in \
406         data/xsession/openbox-gnome-session.in \
407         data/xsession/openbox-kde-session.in \
408         doc/openbox.1.sgml \
409         doc/openbox.1.in \
410         doc/openbox-session.1.sgml \
411         doc/openbox-session.1.in \
412         doc/openbox-gnome-session.1.sgml \
413         doc/openbox-gnome-session.1.in \
414         doc/openbox-kde-session.1.sgml \
415         doc/openbox-kde-session.1.in \
416         render/obrender-3.0.pc.in \
417         parser/obparser-3.0.pc.in \
418         tools/themeupdate/themeupdate.py \
419         tests/hideshow.py \
420         tests/Makefile \
421         tests/aspect.c \
422         tests/fullscreen.c \
423         tests/grav.c \
424         tests/grouptran.c \
425         tests/icons.c \
426         tests/modal2.c \
427         tests/modal3.c \
428         tests/modal.c \
429         tests/noresize.c \
430         tests/override.c \
431         tests/positioned.c \
432         tests/strut.c \
433         tests/title.c \
434         tests/urgent.c
435
436 dist_doc_DATA = \
437         COMPLIANCE \
438         README \
439         AUTHORS \
440         CHANGELOG \
441         COPYING \
442         data/rc.xsd \
443         data/menu.xsd \
444         doc/rc-mouse-focus.xml
445
446 nodist_man_MANS = \
447         doc/openbox.1 \
448         doc/openbox-session.1 \
449         doc/openbox-gnome-session.1 \
450         doc/openbox-kde-session.1
451
452 EXTRA_DIST = \
453         debian/changelog.in \
454         debian/compat \
455         debian/conffiles \
456         debian/control \
457         debian/copyright \
458         debian/menu \
459         debian/postinst \
460         debian/postrm \
461         debian/rules \
462         config.rpath \
463         mkinstalldirs
464
465 # make clean doesn't delete these for some reason, even though they are
466 # built by make
467 CLEANFILES = \
468         doc/openbox.1 \
469         doc/openbox-session.1 \
470         doc/openbox-gnome-session.1 \
471         doc/openbox-kde-session.1 \
472         data/xsession/openbox-session \
473         data/xsession/openbox-gnome-session \
474         data/xsession/openbox-kde-session \
475         data/xsession/openbox.desktop \
476         data/xsession/openbox-gnome.desktop \
477         data/xsession/openbox-kde.desktop
478
479 #doc:
480 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
481
482 distclean-local:
483         for d in . m4 po render; do \
484                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
485                         rm -f "$$d/$$p"; \
486                 done \
487         done
488
489 .PHONY: doc