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