]> icculus.org git repositories - mikachu/openbox.git/blob - Makefile.am
merge r6012 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 = Clearlooks
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/modkeys.c \
183         openbox/modkeys.h \
184         openbox/mouse.c \
185         openbox/mouse.h \
186         openbox/moveresize.c \
187         openbox/moveresize.h \
188         openbox/mwm.h \
189         openbox/openbox.c \
190         openbox/openbox.h \
191         openbox/place.c \
192         openbox/place.h \
193         openbox/popup.c \
194         openbox/popup.h \
195         openbox/prop.c \
196         openbox/prop.h \
197         openbox/resist.c \
198         openbox/resist.h \
199         openbox/screen.c \
200         openbox/screen.h \
201         openbox/session.c \
202         openbox/session.h \
203         openbox/stacking.c \
204         openbox/stacking.h \
205         openbox/startupnotify.c \
206         openbox/startupnotify.h \
207         openbox/translate.c \
208         openbox/translate.h \
209         openbox/window.c \
210         openbox/window.h \
211         openbox/xerror.c \
212         openbox/xerror.h
213
214
215 ## gnome-panel-control ##
216
217 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
218         $(X_CFLAGS)
219 tools_gnome_panel_control_gnome_panel_control_LDADD = \
220         $(X_LIBS)
221 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
222         tools/gnome-panel-control/gnome-panel-control.c
223
224
225 ## themes ##
226
227 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
228 dist_clearlooks_theme_DATA= \
229         themes/Clearlooks/openbox-3/bullet.xbm \
230         themes/Clearlooks/openbox-3/close.xbm \
231         themes/Clearlooks/openbox-3/desk_toggled.xbm \
232         themes/Clearlooks/openbox-3/desk.xbm \
233         themes/Clearlooks/openbox-3/iconify.xbm \
234         themes/Clearlooks/openbox-3/max_toggled.xbm \
235         themes/Clearlooks/openbox-3/max.xbm \
236         themes/Clearlooks/openbox-3/themerc
237
238 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
239 dist_clearlooksolive_theme_DATA= \
240         themes/Clearlooks-Olive/openbox-3/bullet.xbm \
241         themes/Clearlooks-Olive/openbox-3/close.xbm \
242         themes/Clearlooks-Olive/openbox-3/desk_toggled.xbm \
243         themes/Clearlooks-Olive/openbox-3/desk.xbm \
244         themes/Clearlooks-Olive/openbox-3/iconify.xbm \
245         themes/Clearlooks-Olive/openbox-3/max_toggled.xbm \
246         themes/Clearlooks-Olive/openbox-3/max.xbm \
247         themes/Clearlooks-Olive/openbox-3/themerc
248
249 mikachu_themedir = $(themedir)/Mikachu/openbox-3
250 dist_mikachu_theme_DATA= \
251         themes/Mikachu/openbox-3/bullet.xbm \
252         themes/Mikachu/openbox-3/close.xbm \
253         themes/Mikachu/openbox-3/desk.xbm \
254         themes/Mikachu/openbox-3/iconify.xbm \
255         themes/Mikachu/openbox-3/max.xbm \
256         themes/Mikachu/openbox-3/themerc
257
258
259 natura_themedir = $(themedir)/Natura/openbox-3
260 dist_natura_theme_DATA= \
261         themes/Natura/openbox-3/close_hover.xbm \
262         themes/Natura/openbox-3/close.xbm \
263         themes/Natura/openbox-3/desk_toggled.xbm \
264         themes/Natura/openbox-3/desk.xbm \
265         themes/Natura/openbox-3/iconify_disabled.xbm \
266         themes/Natura/openbox-3/iconify_hover.xbm \
267         themes/Natura/openbox-3/iconify.xbm \
268         themes/Natura/openbox-3/max_disabled.xbm \
269         themes/Natura/openbox-3/max_hover.xbm \
270         themes/Natura/openbox-3/max_toggled.xbm \
271         themes/Natura/openbox-3/max.xbm \
272         themes/Natura/openbox-3/shade.xbm \
273         themes/Natura/openbox-3/themerc
274
275 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
276 dist_artwizboxed_theme_DATA= \
277         themes/Artwiz-boxed/openbox-3/bullet.xbm \
278         themes/Artwiz-boxed/openbox-3/close.xbm \
279         themes/Artwiz-boxed/openbox-3/desk_toggled.xbm \
280         themes/Artwiz-boxed/openbox-3/desk.xbm \
281         themes/Artwiz-boxed/openbox-3/iconify.xbm \
282         themes/Artwiz-boxed/openbox-3/max_toggled.xbm \
283         themes/Artwiz-boxed/openbox-3/max.xbm \
284         themes/Artwiz-boxed/openbox-3/themerc
285
286 bear2_themedir = $(themedir)/Bear2/openbox-3
287 dist_bear2_theme_DATA= \
288         themes/Bear2/openbox-3/close_pressed.xbm \
289         themes/Bear2/openbox-3/close.xbm \
290         themes/Bear2/openbox-3/desk_toggled.xbm \
291         themes/Bear2/openbox-3/desk.xbm \
292         themes/Bear2/openbox-3/iconify_disabled.xbm \
293         themes/Bear2/openbox-3/iconify_pressed.xbm \
294         themes/Bear2/openbox-3/iconify.xbm \
295         themes/Bear2/openbox-3/max_disabled.xbm \
296         themes/Bear2/openbox-3/max_pressed.xbm \
297         themes/Bear2/openbox-3/max_toggled.xbm \
298         themes/Bear2/openbox-3/max.xbm \
299         themes/Bear2/openbox-3/shade_pressed.xbm \
300         themes/Bear2/openbox-3/shade.xbm \
301         themes/Bear2/openbox-3/themerc
302
303 orang_themedir = $(themedir)/Orang/openbox-3
304 dist_orang_theme_DATA= \
305         themes/Orang/openbox-3/themerc
306
307 syscrash_themedir = $(themedir)/Syscrash/openbox-3
308 dist_syscrash_theme_DATA= \
309         themes/Syscrash/openbox-3/bullet.xbm \
310         themes/Syscrash/openbox-3/close_disabled.xbm \
311         themes/Syscrash/openbox-3/close.xbm \
312         themes/Syscrash/openbox-3/desk_toggled.xbm \
313         themes/Syscrash/openbox-3/desk.xbm \
314         themes/Syscrash/openbox-3/iconify.xbm \
315         themes/Syscrash/openbox-3/max_disabled.xbm \
316         themes/Syscrash/openbox-3/max_pressed.xbm \
317         themes/Syscrash/openbox-3/max_toggled.xbm \
318         themes/Syscrash/openbox-3/max.xbm \
319         themes/Syscrash/openbox-3/shade.xbm \
320         themes/Syscrash/openbox-3/themerc
321
322 ## public headers ##
323
324 pubinclude_HEADERS = \
325         render/color.h \
326         render/font.h \
327         render/geom.h \
328         render/gradient.h \
329         render/image.h \
330         render/instance.h \
331         render/mask.h \
332         render/render.h \
333         render/theme.h \
334         parser/parse.h
335
336 nodist_pubinclude_HEADERS = \
337         version.h
338
339 nodist_pkgconfig_DATA = \
340         render/obrender-3.0.pc \
341         parser/obparser-3.0.pc
342
343 ## data ##
344
345 dist_pixmap_DATA = \
346         data/openbox.png
347
348 nodist_rc_DATA = \
349         data/rc.xml \
350         data/menu.xml
351
352 dist_xsd_DATA = \
353         data/rc.xsd \
354         data/menu.xsd
355
356 edit = $(SED) \
357         -e 's!@version\@!$(VERSION)!' \
358         -e 's!@xsddir\@!$(xsddir)!'
359
360 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
361         @echo make: creating $@
362         @rm -f $@
363         @mkdir data 2>/dev/null || true
364         @$(edit) $(srcdir)/data/rc.xml.in >$@
365
366 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
367         @echo make: creating $@
368         @rm -f $@
369         @mkdir data 2>/dev/null || true
370         @$(edit) $(srcdir)/data/menu.xml.in >$@
371
372 dist_desktopfiles_DATA = \
373         data/openbox.desktop
374
375 dist_noinst_DATA = \
376         version.h.in \
377         data/rc.xml.in \
378         data/menu.xml.in \
379         render/obrender-3.0.pc.in \
380         parser/obparser-3.0.pc.in \
381         tools/themeupdate/themeupdate.py \
382         tests/hideshow.py \
383         tests/Makefile \
384         tests/aspect.c \
385         tests/fullscreen.c \
386         tests/grav.c \
387         tests/grouptran.c \
388         tests/icons.c \
389         tests/modal2.c \
390         tests/modal3.c \
391         tests/modal.c \
392         tests/noresize.c \
393         tests/override.c \
394         tests/positioned.c \
395         tests/strut.c \
396         tests/title.c \
397         tests/urgent.c
398
399 EXTRA_DIST = \
400         config.rpath \
401         mkinstalldirs \
402         CHANGELOG \
403         COMPLIANCE \
404         README \
405         COPYING \
406         AUTHORS
407
408 CLEANFILES = \
409         data/rc.xml \
410         data/menu.xml
411
412 #doc:
413 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
414
415 distclean-local:
416         for d in . m4 po render; do \
417                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
418                         rm -f "$$d/$$p"; \
419                 done \
420         done
421
422 .PHONY: doc