merge r5815-5828,5832-5859 from trunk
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/themes
4 localedir       = $(datadir)/locale
5 configdir       = $(sysconfdir)/xdg
6 rcdir           = $(configdir)/openbox
7 desktopfilesdir = $(datadir)/gnome/wm-properties
8 pkgconfigdir    = $(libdir)/pkgconfig
9 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
10 pixmapdir       = $(datadir)/pixmaps
11 xsddir          = $(datadir)/openbox
12
13 theme = bear2
14
15 AUTOMAKE_OPTIONS = subdir-objects foreign
16
17 ACLOCAL_AMFLAGS = -I m4
18
19 INCLUDES = -I.
20
21 check_PROGRAMS = \
22         render/rendertest
23
24 lib_LTLIBRARIES = \
25         parser/libobparser.la \
26         render/libobrender.la
27
28 bin_PROGRAMS = \
29         openbox/openbox \
30         tools/gnome-panel-control/gnome-panel-control
31
32 ## render ##
33
34 render_rendertest_CPPFLAGS = \
35         $(PANGO_CFLAGS) \
36         $(GLIB_CFLAGS) \
37         -DG_LOG_DOMAIN=\"RenderTest\"
38 render_rendertest_LDADD = \
39         parser/libobparser.la \
40         render/libobrender.la \
41         $(GLIB_LIBS) \
42         $(PANGO_LIBS) \
43         $(XML_LIBS) \
44         $(X_LIBS)
45 render_rendertest_SOURCES = render/test.c
46
47 render_libobrender_la_CPPFLAGS = \
48         $(X_CFLAGS) \
49         $(GLIB_CFLAGS) \
50         $(XML_CFLAGS) \
51         $(PANGO_CFLAGS) \
52         -DG_LOG_DOMAIN=\"ObRender\" \
53         -DDEFAULT_THEME=\"$(theme)\"
54 render_libobrender_la_LDFLAGS = \
55         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
56 render_libobrender_la_LIBADD = \
57         parser/libobparser.la \
58         $(X_LIBS) \
59         $(PANGO_LIBS) \
60         $(GLIB_LIBS) \
61         $(XML_LIBS)
62 render_libobrender_la_SOURCES = \
63         gettext.h \
64         render/color.h \
65         render/color.c \
66         render/font.h \
67         render/font.c \
68         render/geom.h \
69         render/gradient.h \
70         render/gradient.c \
71         render/icon.h \
72         render/image.h \
73         render/image.c \
74         render/instance.h \
75         render/instance.c \
76         render/mask.h \
77         render/mask.c \
78         render/render.h \
79         render/render.c \
80         render/theme.h \
81         render/theme.c
82
83 ## parser ##
84
85 parser_libobparser_la_CPPFLAGS = \
86         $(GLIB_CFLAGS) \
87         $(XML_CFLAGS) \
88         -DG_LOG_DOMAIN=\"ObParser\" \
89         -DLOCALEDIR=\"$(localedir)\" \
90         -DDATADIR=\"$(datadir)\" \
91         -DCONFIGDIR=\"$(configdir)\"
92 parser_libobparser_la_LDFLAGS = \
93         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
94 parser_libobparser_la_LIBADD = \
95         $(GLIB_LIBS) \
96         $(XML_LIBS) 
97 parser_libobparser_la_SOURCES = \
98         parser/parse.h \
99         parser/parse.c
100
101 ## openbox ##
102
103 openbox_openbox_CPPFLAGS = \
104         $(SM_CFLAGS) \
105         $(XINERAMA_CFLAGS) \
106         $(XKB_CFLAGS) \
107         $(XRANDR_CFLAGS) \
108         $(XSHAPE_CFLAGS) \
109         $(XSYNC_CFLAGS) \
110         $(X_CFLAGS) \
111         $(XCURSOR_CFLAGS) \
112         $(SM_CFLAGS) \
113         $(PANGO_CFLAGS) \
114         $(GLIB_CFLAGS) \
115         $(LIBSN_CFLAGS) \
116         $(XML_CFLAGS) \
117         -DLOCALEDIR=\"$(localedir)\" \
118         -DDATADIR=\"$(datadir)\" \
119         -DCONFIGDIR=\"$(configdir)\" \
120         -DG_LOG_DOMAIN=\"Openbox\"
121 openbox_openbox_LDADD = \
122         $(SM_LIBS) \
123         $(XINERAMA_LIBS) \
124         $(XKB_LIBS) \
125         $(XRANDR_LIBS) \
126         $(XSHAPE_LIBS) \
127         $(XSYNC_LIBS) \
128         $(GLIB_LIBS) \
129         $(X_LIBS) \
130         $(XCURSOR_LIBS) \
131         $(LIBSN_LIBS) \
132         $(XML_LIBS) \
133         $(EFENCE_LIBS) \
134         $(LIBINTL) \
135         render/libobrender.la \
136         parser/libobparser.la
137 openbox_openbox_LDFLAGS = -export-dynamic
138 openbox_openbox_SOURCES = \
139         gettext.h \
140         openbox/action.c \
141         openbox/action.h \
142         openbox/client.c \
143         openbox/client.h \
144         openbox/client_list_menu.c \
145         openbox/client_list_menu.h \
146         openbox/client_list_combined_menu.c \
147         openbox/client_list_combined_menu.h \
148         openbox/client_menu.c \
149         openbox/client_menu.h \
150         openbox/config.c \
151         openbox/config.h \
152         openbox/debug.c \
153         openbox/debug.h \
154         openbox/dock.c \
155         openbox/dock.h \
156         openbox/event.c \
157         openbox/event.h \
158         openbox/extensions.c \
159         openbox/extensions.h \
160         openbox/focus.c \
161         openbox/focus.h \
162         openbox/frame.c \
163         openbox/frame.h \
164         openbox/framerender.c \
165         openbox/framerender.h \
166         openbox/geom.h \
167         openbox/grab.c \
168         openbox/grab.h \
169         openbox/group.c \
170         openbox/group.h \
171         openbox/keyboard.c \
172         openbox/keyboard.h \
173         openbox/keytree.c \
174         openbox/keytree.h \
175         openbox/mainloop.c \
176         openbox/mainloop.h \
177         openbox/menuframe.c \
178         openbox/menuframe.h \
179         openbox/menu.c \
180         openbox/menu.h \
181         openbox/misc.h \
182         openbox/mouse.c \
183         openbox/mouse.h \
184         openbox/moveresize.c \
185         openbox/moveresize.h \
186         openbox/mwm.h \
187         openbox/openbox.c \
188         openbox/openbox.h \
189         openbox/place.c \
190         openbox/place.h \
191         openbox/popup.c \
192         openbox/popup.h \
193         openbox/prop.c \
194         openbox/prop.h \
195         openbox/resist.c \
196         openbox/resist.h \
197         openbox/screen.c \
198         openbox/screen.h \
199         openbox/session.c \
200         openbox/session.h \
201         openbox/stacking.c \
202         openbox/stacking.h \
203         openbox/startupnotify.c \
204         openbox/startupnotify.h \
205         openbox/translate.c \
206         openbox/translate.h \
207         openbox/window.c \
208         openbox/window.h \
209         openbox/xerror.c \
210         openbox/xerror.h
211
212
213 ## gnome-panel-control ##
214
215 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
216         $(X_CFLAGS)
217 tools_gnome_panel_control_gnome_panel_control_LDADD = \
218         $(X_LIBS)
219 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
220         tools/gnome-panel-control/gnome-panel-control.c
221
222
223 ## themes ##
224
225 mikachu_themedir = $(themedir)/Mikachu/openbox-3
226 dist_mikachu_theme_DATA= \
227         themes/Mikachu/openbox-3/bullet.xbm \
228         themes/Mikachu/openbox-3/close.xbm \
229         themes/Mikachu/openbox-3/desk.xbm \
230         themes/Mikachu/openbox-3/iconify.xbm \
231         themes/Mikachu/openbox-3/max.xbm \
232         themes/Mikachu/openbox-3/themerc
233
234
235 natura_themedir = $(themedir)/Natura/openbox-3
236 dist_natura_theme_DATA= \
237         themes/Natura/openbox-3/close_hover.xbm \
238         themes/Natura/openbox-3/close.xbm \
239         themes/Natura/openbox-3/desk_toggled.xbm \
240         themes/Natura/openbox-3/desk.xbm \
241         themes/Natura/openbox-3/iconify_disabled.xbm \
242         themes/Natura/openbox-3/iconify_hover.xbm \
243         themes/Natura/openbox-3/iconify.xbm \
244         themes/Natura/openbox-3/max_disabled.xbm \
245         themes/Natura/openbox-3/max_hover.xbm \
246         themes/Natura/openbox-3/max_toggled.xbm \
247         themes/Natura/openbox-3/max.xbm \
248         themes/Natura/openbox-3/shade.xbm \
249         themes/Natura/openbox-3/themerc
250
251 artwizboxed_themedir = $(themedir)/artwiz-boxed/openbox-3
252 dist_artwizboxed_theme_DATA= \
253         themes/artwiz-boxed/openbox-3/bullet.xbm \
254         themes/artwiz-boxed/openbox-3/close.xbm \
255         themes/artwiz-boxed/openbox-3/desk_toggled.xbm \
256         themes/artwiz-boxed/openbox-3/desk.xbm \
257         themes/artwiz-boxed/openbox-3/iconify.xbm \
258         themes/artwiz-boxed/openbox-3/max_toggled.xbm \
259         themes/artwiz-boxed/openbox-3/max.xbm \
260         themes/artwiz-boxed/openbox-3/themerc
261  
262 bear2_themedir = $(themedir)/bear2/openbox-3
263 dist_bear2_theme_DATA= \
264         themes/bear2/openbox-3/close_pressed.xbm \
265         themes/bear2/openbox-3/close.xbm \
266         themes/bear2/openbox-3/desk_toggled.xbm \
267         themes/bear2/openbox-3/desk.xbm \
268         themes/bear2/openbox-3/iconify_disabled.xbm \
269         themes/bear2/openbox-3/iconify_pressed.xbm \
270         themes/bear2/openbox-3/iconify.xbm \
271         themes/bear2/openbox-3/max_disabled.xbm \
272         themes/bear2/openbox-3/max_pressed.xbm \
273         themes/bear2/openbox-3/max_toggled.xbm \
274         themes/bear2/openbox-3/max.xbm \
275         themes/bear2/openbox-3/shade_pressed.xbm \
276         themes/bear2/openbox-3/shade.xbm \
277         themes/bear2/openbox-3/themerc
278  
279 orang_themedir = $(themedir)/orang/openbox-3
280 dist_orang_theme_DATA= \
281         themes/orang/openbox-3/themerc
282
283 syscrash_themedir = $(themedir)/syscrash/openbox-3
284 dist_syscrash_theme_DATA= \
285         themes/syscrash/openbox-3/bullet.xbm \
286         themes/syscrash/openbox-3/close_disabled.xbm \
287         themes/syscrash/openbox-3/close.xbm \
288         themes/syscrash/openbox-3/desk_toggled.xbm \
289         themes/syscrash/openbox-3/desk.xbm \
290         themes/syscrash/openbox-3/iconify.xbm \
291         themes/syscrash/openbox-3/max_disabled.xbm \
292         themes/syscrash/openbox-3/max_pressed.xbm \
293         themes/syscrash/openbox-3/max_toggled.xbm \
294         themes/syscrash/openbox-3/max.xbm \
295         themes/syscrash/openbox-3/shade.xbm \
296         themes/syscrash/openbox-3/themerc
297
298 ## public headers ##
299
300 pubinclude_HEADERS = \
301         render/color.h \
302         render/font.h \
303         render/geom.h \
304         render/gradient.h \
305         render/image.h \
306         render/instance.h \
307         render/mask.h \
308         render/render.h \
309         render/theme.h \
310         parser/parse.h
311
312 nodist_pubinclude_HEADERS = \
313         version.h
314
315 nodist_pkgconfig_DATA = \
316         render/obrender-3.0.pc \
317         parser/obparser-3.0.pc
318
319 ## data ##
320
321 dist_pixmap_DATA = \
322         data/openbox.png
323
324 nodist_rc_DATA = \
325         data/rc.xml \
326         data/menu.xml
327
328 dist_xsd_DATA = \
329         data/rc.xsd \
330         data/menu.xsd
331
332 edit = $(SED) \
333         -e 's!@version\@!$(VERSION)!' \
334         -e 's!@xsddir\@!$(xsddir)!'
335
336 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
337         @echo make: creating $@
338         @rm -f $@
339         @mkdir data 2>/dev/null || true
340         @$(edit) $(srcdir)/data/rc.xml.in >$@
341
342 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
343         @echo make: creating $@
344         @rm -f $@
345         @mkdir data 2>/dev/null || true
346         @$(edit) $(srcdir)/data/menu.xml.in >$@
347
348 dist_desktopfiles_DATA = \
349         data/openbox.desktop
350
351 dist_noinst_DATA = \
352         version.h.in \
353         data/rc.xml.in \
354         data/menu.xml.in \
355         render/obrender-3.0.pc.in \
356         parser/obparser-3.0.pc.in \
357         tools/themeupdate/themeupdate.py \
358         tests/hideshow.py \
359         tests/Makefile \
360         tests/aspect.c \
361         tests/fullscreen.c \
362         tests/grav.c \
363         tests/grouptran.c \
364         tests/icons.c \
365         tests/modal2.c \
366         tests/modal3.c \
367         tests/modal.c \
368         tests/noresize.c \
369         tests/override.c \
370         tests/positioned.c \
371         tests/strut.c \
372         tests/title.c \
373         tests/urgent.c
374
375 EXTRA_DIST = \
376         config.rpath \
377         mkinstalldirs \
378         CHANGELOG \
379         COMPLIANCE \
380         README \
381         COPYING \
382         AUTHORS
383
384 CLEANFILES = \
385         data/rc.xml \
386         data/menu.xml
387
388 #doc:
389 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
390
391 distclean-local:
392         for d in . m4 po render; do \
393                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
394                         rm -f "$$d/$$p"; \
395                 done \
396         done
397
398 .PHONY: doc