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