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