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