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