dont assert, just ignore client_unfocus() when the client isnt already focused
[dana/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 userscriptdir   = $(datadir)/openbox
13
14 theme = TheBear
15
16 AUTOMAKE_OPTIONS = subdir-objects
17 ACLOCAL_AMFLAGS = -I m4
18
19 INCLUDES = -I.
20
21 noinst_PROGRAMS = \
22         render/rendertest
23
24 lib_LTLIBRARIES = \
25         render/libobrender.la \
26         parser/libobparser.la
27
28 bin_PROGRAMS = \
29         openbox/openbox \
30         tools/kdetrayproxy/kdetrayproxy \
31         tools/gnome-panel-control/gnome-panel-control
32
33 ## render ##
34
35 render_rendertest_CPPFLAGS = \
36         $(XFT_CFLAGS) \
37         $(GLIB_CFLAGS) \
38         -DG_LOG_DOMAIN=\"RenderTest\"
39 render_rendertest_LDADD = render/libobrender.la
40 render_rendertest_SOURCES = render/test.c
41
42 render_libobrender_la_CPPFLAGS = \
43         $(X_CFLAGS) \
44         $(XFT_CFLAGS) \
45         $(GLIB_CFLAGS) \
46         $(XML_CFLAGS) \
47         -DG_LOG_DOMAIN=\"ObRender\" \
48         -DDEFAULT_THEME=\"$(theme)\"
49 render_libobrender_la_LIBADD = \
50         $(X_LIBS) \
51         $(XFT_LIBS) \
52         $(GLIB_LIBS) \
53         parser/libobparser.la
54 render_libobrender_la_LDFLAGS = \
55         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
56 render_libobrender_la_SOURCES = \
57         gettext.h \
58         render/color.h \
59         render/color.c \
60         render/font.h \
61         render/font.c \
62         render/geom.h \
63         render/gradient.h \
64         render/gradient.c \
65         render/icon.h \
66         render/image.h \
67         render/image.c \
68         render/instance.h \
69         render/instance.c \
70         render/mask.h \
71         render/mask.c \
72         render/render.h \
73         render/render.c \
74         render/theme.h \
75         render/theme.c
76
77 ## parser ##
78
79 parser_libobparser_la_CPPFLAGS = \
80         $(GLIB_CFLAGS) \
81         $(XML_CFLAGS) \
82         -DG_LOG_DOMAIN=\"ObParser\" \
83         -DLOCALEDIR=\"$(localedir)\" \
84         -DDATADIR=\"$(datadir)\" \
85         -DCONFIGDIR=\"$(configdir)\"
86 parser_libobparser_la_LIBADD = \
87         $(GLIB_LIBS) \
88         $(XML_LIBS)
89 parser_libobparser_la_LDFLAGS = \
90         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
91 parser_libobparser_la_SOURCES = \
92         parser/parse.h \
93         parser/parse.c
94
95 ## openbox ##
96
97 openbox_openbox_CPPFLAGS = \
98         $(X_CFLAGS) \
99         $(SM_CFLAGS) \
100         $(XFT_CFLAGS) \
101         $(GLIB_CFLAGS) \
102         $(LIBSN_CFLAGS) \
103         $(XML_CFLAGS) \
104         -DLOCALEDIR=\"$(localedir)\" \
105         -DDATADIR=\"$(datadir)\" \
106         -DCONFIGDIR=\"$(configdir)\" \
107         -DG_LOG_DOMAIN=\"Openbox\"
108 openbox_openbox_LDADD = \
109         $(SM_LIBS) \
110         $(XINERAMA_LIBS) \
111         $(XKB_LIBS) \
112         $(XRANDR_LIBS) \
113         $(VIDMODE_LIBS) \
114         $(XSHAPE_LIBS) \
115         $(GLIB_LIBS) \
116         $(LIBSN_LIBS) \
117         $(XML_LIBS) \
118         $(EFENCE_LIBS) \
119         $(LIBINTL) \
120         render/libobrender.la \
121         parser/libobparser.la
122 openbox_openbox_LDFLAGS = -export-dynamic
123 openbox_openbox_SOURCES = \
124         gettext.h \
125         openbox/action.c \
126         openbox/action.h \
127         openbox/client.c \
128         openbox/client.h \
129         openbox/client_list_menu.c \
130         openbox/client_list_menu.h \
131         openbox/client_menu.c \
132         openbox/client_menu.h \
133         openbox/config.c \
134         openbox/config.h \
135         openbox/debug.c \
136         openbox/debug.h \
137         openbox/dock.c \
138         openbox/dock.h \
139         openbox/event.c \
140         openbox/event.h \
141         openbox/extensions.c \
142         openbox/extensions.h \
143         openbox/focus.c \
144         openbox/focus.h \
145         openbox/frame.c \
146         openbox/frame.h \
147         openbox/framerender.c \
148         openbox/framerender.h \
149         openbox/geom.h \
150         openbox/grab.c \
151         openbox/grab.h \
152         openbox/group.c \
153         openbox/group.h \
154         openbox/keyboard.c \
155         openbox/keyboard.h \
156         openbox/keytree.c \
157         openbox/keytree.h \
158         openbox/mainloop.c \
159         openbox/mainloop.h \
160         openbox/menuframe.c \
161         openbox/menuframe.h \
162         openbox/menu.c \
163         openbox/menu.h \
164         openbox/misc.h \
165         openbox/mouse.c \
166         openbox/mouse.h \
167         openbox/moveresize.c \
168         openbox/moveresize.h \
169         openbox/mwm.h \
170         openbox/openbox.c \
171         openbox/openbox.h \
172         openbox/place.c \
173         openbox/place.h \
174         openbox/popup.c \
175         openbox/popup.h \
176         openbox/prop.c \
177         openbox/prop.h \
178         openbox/resist.c \
179         openbox/resist.h \
180         openbox/screen.c \
181         openbox/screen.h \
182         openbox/session.c \
183         openbox/session.h \
184         openbox/stacking.c \
185         openbox/stacking.h \
186         openbox/startupnotify.c \
187         openbox/startupnotify.h \
188         openbox/translate.c \
189         openbox/translate.h \
190         openbox/window.c \
191         openbox/window.h \
192         openbox/xerror.c \
193         openbox/xerror.h
194
195
196 ## kdetrayproxy ##
197
198 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
199         $(X_CFLAGS)
200 tools_kdetrayproxy_kdetrayproxy_LDADD = \
201         $(X_LIBS)
202 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
203         tools/kdetrayproxy/kdetrayproxy.c
204
205
206 ## gnome-panel-control ##
207
208 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
209         $(X_CFLAGS)
210 tools_gnome_panel_control_gnome_panel_control_LDADD = \
211         $(X_LIBS)
212 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
213         tools/gnome-panel-control/gnome-panel-control.c
214
215
216 ## themes ##
217
218 allegro_themedir = $(themedir)/Allegro/openbox-3
219 dist_allegro_theme_DATA = \
220         themes/Allegro/openbox-3/themerc \
221         themes/Allegro/openbox-3/bullet.xbm
222
223 artwiz_themedir = $(themedir)/Artwiz/openbox-3
224 dist_artwiz_theme_DATA = \
225         themes/Artwiz/openbox-3/themerc
226
227 blah41_themedir = $(themedir)/Blah41/openbox-3
228 dist_blah41_theme_DATA = \
229         themes/Blah41/openbox-3/themerc
230
231 om4ob_themedir = $(themedir)/Om4Ob/openbox-3
232 dist_om4ob_theme_DATA = \
233         themes/Om4Ob/openbox-3/themerc \
234         themes/Om4Ob/openbox-3/close_hover.xbm \
235         themes/Om4Ob/openbox-3/close.xbm \
236         themes/Om4Ob/openbox-3/desk_hover.xbm \
237         themes/Om4Ob/openbox-3/desk_toggled.xbm \
238         themes/Om4Ob/openbox-3/desk.xbm \
239         themes/Om4Ob/openbox-3/iconify_hover.xbm \
240         themes/Om4Ob/openbox-3/iconify_pressed.xbm \
241         themes/Om4Ob/openbox-3/iconify.xbm \
242         themes/Om4Ob/openbox-3/max_disabled.xbm \
243         themes/Om4Ob/openbox-3/max_hover.xbm \
244         themes/Om4Ob/openbox-3/max_pressed.xbm \
245         themes/Om4Ob/openbox-3/max_toggled.xbm \
246         themes/Om4Ob/openbox-3/max.xbm \
247         themes/Om4Ob/openbox-3/shade_disabled.xbm \
248         themes/Om4Ob/openbox-3/shade_hover.xbm \
249         themes/Om4Ob/openbox-3/shade_toggled.xbm \
250         themes/Om4Ob/openbox-3/shade.xbm
251
252 thebear_themedir = $(themedir)/TheBear/openbox-3
253 dist_thebear_theme_DATA = \
254         themes/TheBear/openbox-3/themerc
255
256
257 ## public headers ##
258
259 pubinclude_HEADERS = \
260         render/render.h \
261         render/theme.h \
262         parser/parse.h
263
264 nodist_pkgconfig_DATA = \
265         render/obrender-3.0.pc \
266         parser/obparser-3.0.pc
267
268 ## data ##
269
270 dist_pixmap_DATA = \
271         data/openbox.png
272
273 nodist_rc_DATA = \
274         data/rc.xml \
275         data/menu.xml
276
277 dist_xsd_DATA = \
278         data/rc.xsd \
279         data/menu.xsd
280
281 %.xml: %.xml.in
282         @echo make: creating $@
283         @$(SED) -e 's!@version@!$(VERSION)!' -e 's!@xsddir@!$(xsddir)!' $^ > $@
284
285 dist_userscript_DATA = \
286         tools/themeupdate/themeupdate.py
287
288 install-data-hook:
289         chmod +x $(DESTDIR)$(userscriptdir)/themeupdate.py
290
291 dist_desktopfiles_DATA = \
292         data/openbox.desktop
293
294 dist_noinst_DATA = \
295         data/rc.xml.in \
296         data/menu.xml.in \
297         render/obrender-3.0.pc.in \
298         parser/obparser-3.0.pc.in
299
300 EXTRA_DIST = \
301         config.rpath \
302         mkinstalldirs \
303         README \
304         COPYING \
305         AUTHORS
306
307 #doc:
308 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
309
310 distclean-local:
311         for d in . m4 po render; do \
312                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
313                         rm -f "$$d/$$p"; \
314                 done \
315         done
316
317 .PHONY: doc