]> icculus.org git repositories - dana/openbox.git/blob - Makefile.am
merge r6569 from trunk
[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         $(X_CFLAGS) \
122         $(XCURSOR_CFLAGS) \
123         $(SM_CFLAGS) \
124         $(PANGO_CFLAGS) \
125         $(GLIB_CFLAGS) \
126         $(LIBSN_CFLAGS) \
127         $(XML_CFLAGS) \
128         -DLOCALEDIR=\"$(localedir)\" \
129         -DDATADIR=\"$(datadir)\" \
130         -DCONFIGDIR=\"$(configdir)\" \
131         -DG_LOG_DOMAIN=\"Openbox\"
132 openbox_openbox_LDADD = \
133         $(SM_LIBS) \
134         $(XINERAMA_LIBS) \
135         $(XKB_LIBS) \
136         $(XRANDR_LIBS) \
137         $(XSHAPE_LIBS) \
138         $(XSYNC_LIBS) \
139         $(GLIB_LIBS) \
140         $(X_LIBS) \
141         $(XCURSOR_LIBS) \
142         $(LIBSN_LIBS) \
143         $(XML_LIBS) \
144         $(EFENCE_LIBS) \
145         $(LIBINTL) \
146         render/libobrender.la \
147         parser/libobparser.la
148 openbox_openbox_LDFLAGS = -export-dynamic
149 openbox_openbox_SOURCES = \
150         gettext.h \
151         openbox/action.c \
152         openbox/action.h \
153         openbox/client.c \
154         openbox/client.h \
155         openbox/client_list_menu.c \
156         openbox/client_list_menu.h \
157         openbox/client_list_combined_menu.c \
158         openbox/client_list_combined_menu.h \
159         openbox/client_menu.c \
160         openbox/client_menu.h \
161         openbox/config.c \
162         openbox/config.h \
163         openbox/debug.c \
164         openbox/debug.h \
165         openbox/dock.c \
166         openbox/dock.h \
167         openbox/event.c \
168         openbox/event.h \
169         openbox/extensions.c \
170         openbox/extensions.h \
171         openbox/focus.c \
172         openbox/focus.h \
173         openbox/frame.c \
174         openbox/frame.h \
175         openbox/framerender.c \
176         openbox/framerender.h \
177         openbox/geom.h \
178         openbox/grab.c \
179         openbox/grab.h \
180         openbox/group.c \
181         openbox/group.h \
182         openbox/keyboard.c \
183         openbox/keyboard.h \
184         openbox/keytree.c \
185         openbox/keytree.h \
186         openbox/mainloop.c \
187         openbox/mainloop.h \
188         openbox/menuframe.c \
189         openbox/menuframe.h \
190         openbox/menu.c \
191         openbox/menu.h \
192         openbox/misc.h \
193         openbox/modkeys.c \
194         openbox/modkeys.h \
195         openbox/mouse.c \
196         openbox/mouse.h \
197         openbox/moveresize.c \
198         openbox/moveresize.h \
199         openbox/mwm.h \
200         openbox/openbox.c \
201         openbox/openbox.h \
202         openbox/place.c \
203         openbox/place.h \
204         openbox/popup.c \
205         openbox/popup.h \
206         openbox/prop.c \
207         openbox/prop.h \
208         openbox/propwin.c \
209         openbox/propwin.h \
210         openbox/resist.c \
211         openbox/resist.h \
212         openbox/screen.c \
213         openbox/screen.h \
214         openbox/session.c \
215         openbox/session.h \
216         openbox/stacking.c \
217         openbox/stacking.h \
218         openbox/startupnotify.c \
219         openbox/startupnotify.h \
220         openbox/translate.c \
221         openbox/translate.h \
222         openbox/window.c \
223         openbox/window.h \
224         openbox/xerror.c \
225         openbox/xerror.h
226
227
228 ## gnome-panel-control ##
229
230 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
231         $(X_CFLAGS)
232 tools_gnome_panel_control_gnome_panel_control_LDADD = \
233         $(X_LIBS)
234 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
235         tools/gnome-panel-control/gnome-panel-control.c
236
237
238 ## default button masks ##
239 dist_docxbm_DATA = \
240         data/xbm/bullet.xbm \
241         data/xbm/close.xbm \
242         data/xbm/desk_toggled.xbm \
243         data/xbm/desk.xbm \
244         data/xbm/iconify.xbm \
245         data/xbm/max_toggled.xbm \
246         data/xbm/max.xbm \
247         data/xbm/shade_toggled.xbm \
248         data/xbm/shade.xbm
249
250
251 ## themes ##
252
253 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
254 dist_clearlooks_theme_DATA= \
255         themes/Clearlooks/openbox-3/themerc
256
257 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
258 dist_clearlooksolive_theme_DATA= \
259         themes/Clearlooks-Olive/openbox-3/themerc
260
261 mikachu_themedir = $(themedir)/Mikachu/openbox-3
262 dist_mikachu_theme_DATA= \
263         themes/Mikachu/openbox-3/bullet.xbm \
264         themes/Mikachu/openbox-3/close.xbm \
265         themes/Mikachu/openbox-3/desk.xbm \
266         themes/Mikachu/openbox-3/iconify.xbm \
267         themes/Mikachu/openbox-3/max.xbm \
268         themes/Mikachu/openbox-3/themerc
269
270
271 natura_themedir = $(themedir)/Natura/openbox-3
272 dist_natura_theme_DATA= \
273         themes/Natura/openbox-3/close_hover.xbm \
274         themes/Natura/openbox-3/close.xbm \
275         themes/Natura/openbox-3/desk_toggled.xbm \
276         themes/Natura/openbox-3/desk_hover.xbm \
277         themes/Natura/openbox-3/desk.xbm \
278         themes/Natura/openbox-3/iconify_hover.xbm \
279         themes/Natura/openbox-3/iconify.xbm \
280         themes/Natura/openbox-3/max_hover.xbm \
281         themes/Natura/openbox-3/max_toggled.xbm \
282         themes/Natura/openbox-3/max.xbm \
283         themes/Natura/openbox-3/shade.xbm \
284         themes/Natura/openbox-3/shade_hover.xbm \
285         themes/Natura/openbox-3/themerc
286
287 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
288 dist_artwizboxed_theme_DATA= \
289         themes/Artwiz-boxed/openbox-3/themerc
290
291 bear2_themedir = $(themedir)/Bear2/openbox-3
292 dist_bear2_theme_DATA= \
293         themes/Bear2/openbox-3/close_pressed.xbm \
294         themes/Bear2/openbox-3/close.xbm \
295         themes/Bear2/openbox-3/desk_toggled.xbm \
296         themes/Bear2/openbox-3/desk.xbm \
297         themes/Bear2/openbox-3/iconify_pressed.xbm \
298         themes/Bear2/openbox-3/iconify.xbm \
299         themes/Bear2/openbox-3/max_pressed.xbm \
300         themes/Bear2/openbox-3/max_toggled.xbm \
301         themes/Bear2/openbox-3/max.xbm \
302         themes/Bear2/openbox-3/shade_pressed.xbm \
303         themes/Bear2/openbox-3/shade.xbm \
304         themes/Bear2/openbox-3/themerc
305
306 orang_themedir = $(themedir)/Orang/openbox-3
307 dist_orang_theme_DATA= \
308         themes/Orang/openbox-3/themerc
309
310 syscrash_themedir = $(themedir)/Syscrash/openbox-3
311 dist_syscrash_theme_DATA= \
312         themes/Syscrash/openbox-3/max_disabled.xbm \
313         themes/Syscrash/openbox-3/max_pressed.xbm \
314         themes/Syscrash/openbox-3/max_toggled.xbm \
315         themes/Syscrash/openbox-3/max.xbm \
316         themes/Syscrash/openbox-3/themerc
317
318 ## public headers ##
319
320 pubinclude_HEADERS = \
321         render/color.h \
322         render/font.h \
323         render/geom.h \
324         render/gradient.h \
325         render/image.h \
326         render/instance.h \
327         render/mask.h \
328         render/render.h \
329         render/theme.h \
330         parser/parse.h
331
332 nodist_pubinclude_HEADERS = \
333         version.h
334
335 nodist_pkgconfig_DATA = \
336         render/obrender-3.0.pc \
337         parser/obparser-3.0.pc
338
339 ## data ##
340
341 dist_pixmap_DATA = \
342         data/openbox.png
343
344 dist_rc_DATA = \
345         data/autostart.sh \
346         data/rc.xml \
347         data/menu.xml
348
349 edit = $(SED) \
350         -e 's!@version\@!$(VERSION)!' \
351         -e 's!@configdir\@!$(configdir)!' \
352         -e 's!@bindir\@!$(bindir)!'
353
354 data/xsession/openbox-gnome.desktop: \
355                 $(srcdir)/data/xsession/openbox-gnome.desktop.in
356         @echo make: creating $@
357         @mkdir data 2>/dev/null || true
358         @mkdir data/xsession 2>/dev/null || true
359         @$(edit) $< >$@
360
361 data/xsession/openbox-kde.desktop: \
362                 $(srcdir)/data/xsession/openbox-kde.desktop.in
363         @echo make: creating $@
364         @mkdir data 2>/dev/null || true
365         @mkdir data/xsession 2>/dev/null || true
366         @$(edit) $< >$@
367
368 data/xsession/openbox.desktop: \
369                 $(srcdir)/data/xsession/openbox.desktop.in
370         @echo make: creating $@
371         @mkdir data 2>/dev/null || true
372         @mkdir data/xsession 2>/dev/null || true
373         @$(edit) $< >$@
374
375 data/xsession/openbox-gnome-session: \
376                 $(srcdir)/data/xsession/openbox-gnome-session.in
377         @echo make: creating $@
378         @mkdir data 2>/dev/null || true
379         @mkdir data/xsession 2>/dev/null || true
380         @$(edit) $< >$@
381         @chmod a+x $@
382
383 data/xsession/openbox-kde-session: \
384                 $(srcdir)/data/xsession/openbox-kde-session.in
385         @echo make: creating $@
386         @mkdir data 2>/dev/null || true
387         @mkdir data/xsession 2>/dev/null || true
388         @$(edit) $< >$@
389         @chmod a+x $@
390
391 data/xsession/openbox-session: \
392                 $(srcdir)/data/xsession/openbox-session.in
393         @echo make: creating $@
394         @mkdir data 2>/dev/null || true
395         @mkdir data/xsession 2>/dev/null || true
396         @$(edit) $< >$@
397         @chmod a+x $@
398
399 %.1.in: %.1.sgml
400         @echo make: creating $@
401         @mkdir doc 2>/dev/null || true
402         @docbook-to-man $< >$@
403
404 %.1: %.1.in
405         @echo make: creating $@
406         @mkdir doc 2>/dev/null || true
407         @$(edit) $< >$@ 
408
409 dist_gnomewmfiles_DATA = \
410         data/gnome-wm-properties/openbox.desktop
411
412 nodist_xsessions_DATA = \
413         data/xsession/openbox.desktop \
414         data/xsession/openbox-gnome.desktop \
415         data/xsession/openbox-kde.desktop
416
417 dist_noinst_DATA = \
418         version.h.in \
419         data/rc.xsd \
420         data/menu.xsd \
421         data/xsession/openbox.desktop.in \
422         data/xsession/openbox-gnome.desktop.in \
423         data/xsession/openbox-kde.desktop.in \
424         data/xsession/openbox-session.in \
425         data/xsession/openbox-gnome-session.in \
426         data/xsession/openbox-kde-session.in \
427         doc/openbox.1.sgml \
428         doc/openbox.1.in \
429         doc/openbox-session.1.sgml \
430         doc/openbox-session.1.in \
431         doc/openbox-gnome-session.1.sgml \
432         doc/openbox-gnome-session.1.in \
433         doc/openbox-kde-session.1.sgml \
434         doc/openbox-kde-session.1.in \
435         render/obrender-3.0.pc.in \
436         parser/obparser-3.0.pc.in \
437         tools/themeupdate/themeupdate.py \
438         tests/hideshow.py \
439         tests/Makefile \
440         tests/aspect.c \
441         tests/fullscreen.c \
442         tests/grav.c \
443         tests/grouptran.c \
444         tests/icons.c \
445         tests/modal2.c \
446         tests/modal3.c \
447         tests/modal.c \
448         tests/noresize.c \
449         tests/override.c \
450         tests/positioned.c \
451         tests/strut.c \
452         tests/title.c \
453         tests/urgent.c
454
455 dist_doc_DATA = \
456         COMPLIANCE \
457         README \
458         AUTHORS \
459         CHANGELOG \
460         COPYING \
461         data/rc.xsd \
462         data/menu.xsd \
463         doc/rc-mouse-focus.xml
464
465 dist_man_MANS = \
466         doc/openbox.1 \
467         doc/openbox-session.1 \
468         doc/openbox-gnome-session.1 \
469         doc/openbox-kde-session.1
470
471 EXTRA_DIST = \
472         debian/changelog.in \
473         debian/compat \
474         debian/conffiles \
475         debian/control \
476         debian/copyright \
477         debian/menu \
478         debian/postinst \
479         debian/postrm \
480         debian/rules \
481         config.rpath \
482         mkinstalldirs
483
484 #doc:
485 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
486
487 distclean-local:
488         for d in . m4 po render; do \
489                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
490                         rm -f "$$d/$$p"; \
491                 done \
492         done
493
494 .PHONY: doc