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