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