you can create dialog windows called "prompts" which have a message and some buttons...
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 docxbmdir       = $(docdir)/xbm
4 themedir        = $(datadir)/themes
5 localedir       = $(datadir)/locale
6 configdir       = $(sysconfdir)/xdg
7 rcdir           = $(configdir)/openbox
8 xsessionsdir    = $(datadir)/xsessions
9 gnomewmfilesdir = $(datadir)/gnome/wm-properties
10 pkgconfigdir    = $(libdir)/pkgconfig
11 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
12 pixmapdir       = $(datadir)/pixmaps
13 xsddir          = $(datadir)/openbox
14
15 theme = Clearlooks
16
17 AUTOMAKE_OPTIONS = subdir-objects foreign
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 INCLUDES = -I.
22
23 check_PROGRAMS = \
24         render/rendertest
25
26 lib_LTLIBRARIES = \
27         parser/libobparser.la \
28         render/libobrender.la
29
30 bin_PROGRAMS = \
31         openbox/openbox \
32         tools/gnome-panel-control/gnome-panel-control
33
34 bin_SCRIPTS = \
35         tools/xdg-autostart/xdg-autostart
36
37 nodist_bin_SCRIPTS = \
38         data/xsession/openbox-session \
39         data/xsession/openbox-gnome-session \
40         data/xsession/openbox-kde-session
41
42 ## render ##
43
44 render_rendertest_CPPFLAGS = \
45         $(PANGO_CFLAGS) \
46         $(XFT_CFLAGS) \
47         $(GLIB_CFLAGS) \
48         -DG_LOG_DOMAIN=\"RenderTest\"
49 render_rendertest_LDADD = \
50         parser/libobparser.la \
51         render/libobrender.la \
52         $(GLIB_LIBS) \
53         $(PANGO_LIBS) \
54         $(XFT_LIBS) \
55         $(XML_LIBS) \
56         $(X_LIBS)
57 render_rendertest_SOURCES = render/test.c
58
59 render_libobrender_la_CPPFLAGS = \
60         $(X_CFLAGS) \
61         $(GLIB_CFLAGS) \
62         $(XML_CFLAGS) \
63         $(PANGO_CFLAGS) \
64         $(XFT_CFLAGS) \
65         -DG_LOG_DOMAIN=\"ObRender\" \
66         -DDEFAULT_THEME=\"$(theme)\"
67 render_libobrender_la_LDFLAGS = \
68         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
69 render_libobrender_la_LIBADD = \
70         parser/libobparser.la \
71         $(X_LIBS) \
72         $(PANGO_LIBS) \
73         $(XFT_LIBS) \
74         $(GLIB_LIBS) \
75         $(XML_LIBS)
76 render_libobrender_la_SOURCES = \
77         gettext.h \
78         render/color.h \
79         render/color.c \
80         render/font.h \
81         render/font.c \
82         render/geom.h \
83         render/gradient.h \
84         render/gradient.c \
85         render/icon.h \
86         render/image.h \
87         render/image.c \
88         render/instance.h \
89         render/instance.c \
90         render/mask.h \
91         render/mask.c \
92         render/render.h \
93         render/render.c \
94         render/theme.h \
95         render/theme.c
96
97 ## parser ##
98
99 parser_libobparser_la_CPPFLAGS = \
100         $(GLIB_CFLAGS) \
101         $(XML_CFLAGS) \
102         -DG_LOG_DOMAIN=\"ObParser\" \
103         -DLOCALEDIR=\"$(localedir)\" \
104         -DDATADIR=\"$(datadir)\" \
105         -DCONFIGDIR=\"$(configdir)\"
106 parser_libobparser_la_LDFLAGS = \
107         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
108 parser_libobparser_la_LIBADD = \
109         $(GLIB_LIBS) \
110         $(XML_LIBS) 
111 parser_libobparser_la_SOURCES = \
112         parser/parse.h \
113         parser/parse.c
114
115 ## openbox ##
116
117 openbox_openbox_CPPFLAGS = \
118         $(SM_CFLAGS) \
119         $(XINERAMA_CFLAGS) \
120         $(XKB_CFLAGS) \
121         $(XRANDR_CFLAGS) \
122         $(XSHAPE_CFLAGS) \
123         $(XSYNC_CFLAGS) \
124         $(X_CFLAGS) \
125         $(XCURSOR_CFLAGS) \
126         $(SM_CFLAGS) \
127         $(PANGO_CFLAGS) \
128         $(GLIB_CFLAGS) \
129         $(LIBSN_CFLAGS) \
130         $(XML_CFLAGS) \
131         -DLOCALEDIR=\"$(localedir)\" \
132         -DDATADIR=\"$(datadir)\" \
133         -DCONFIGDIR=\"$(configdir)\" \
134         -DG_LOG_DOMAIN=\"Openbox\"
135 openbox_openbox_LDADD = \
136         $(SM_LIBS) \
137         $(XINERAMA_LIBS) \
138         $(XKB_LIBS) \
139         $(XRANDR_LIBS) \
140         $(XSHAPE_LIBS) \
141         $(XSYNC_LIBS) \
142         $(GLIB_LIBS) \
143         $(X_LIBS) \
144         $(XCURSOR_LIBS) \
145         $(LIBSN_LIBS) \
146         $(XML_LIBS) \
147         $(EFENCE_LIBS) \
148         $(LIBINTL) \
149         render/libobrender.la \
150         parser/libobparser.la
151 openbox_openbox_LDFLAGS = -export-dynamic
152 openbox_openbox_SOURCES = \
153         gettext.h \
154         openbox/actions/all.c \
155         openbox/actions/all.h \
156         openbox/actions/addremovedesktop.c \
157         openbox/actions/breakchroot.c \
158         openbox/actions/close.c \
159         openbox/actions/cyclewindows.c \
160         openbox/actions/debug.c \
161         openbox/actions/decorations.c \
162         openbox/actions/desktop.c \
163         openbox/actions/dockautohide.c \
164         openbox/actions/directionalwindows.c \
165         openbox/actions/execute.c \
166         openbox/actions/exit.c \
167         openbox/actions/focus.c \
168         openbox/actions/focustobottom.c \
169         openbox/actions/fullscreen.c \
170         openbox/actions/growtoedge.c \
171         openbox/actions/iconify.c \
172         openbox/actions/if.c \
173         openbox/actions/kill.c \
174         openbox/actions/layer.c \
175         openbox/actions/lower.c \
176         openbox/actions/maximize.c \
177         openbox/actions/move.c \
178         openbox/actions/moverelative.c \
179         openbox/actions/moveresizeto.c \
180         openbox/actions/movetoedge.c \
181         openbox/actions/omnipresent.c \
182         openbox/actions/raise.c \
183         openbox/actions/raiselower.c \
184         openbox/actions/reconfigure.c \
185         openbox/actions/resize.c \
186         openbox/actions/resizerelative.c \
187         openbox/actions/restart.c \
188         openbox/actions/shade.c \
189         openbox/actions/showdesktop.c \
190         openbox/actions/showmenu.c \
191         openbox/actions/unfocus.c \
192         openbox/actions.c \
193         openbox/actions.h \
194         openbox/client.c \
195         openbox/client.h \
196         openbox/client_list_menu.c \
197         openbox/client_list_menu.h \
198         openbox/client_list_combined_menu.c \
199         openbox/client_list_combined_menu.h \
200         openbox/client_menu.c \
201         openbox/client_menu.h \
202         openbox/config.c \
203         openbox/config.h \
204         openbox/debug.c \
205         openbox/debug.h \
206         openbox/dock.c \
207         openbox/dock.h \
208         openbox/event.c \
209         openbox/event.h \
210         openbox/extensions.c \
211         openbox/extensions.h \
212         openbox/focus.c \
213         openbox/focus.h \
214         openbox/focus_cycle.c \
215         openbox/focus_cycle.h \
216         openbox/focus_cycle_indicator.c \
217         openbox/focus_cycle_indicator.h \
218         openbox/focus_cycle_popup.c \
219         openbox/focus_cycle_popup.h \
220         openbox/frame.c \
221         openbox/frame.h \
222         openbox/framerender.c \
223         openbox/framerender.h \
224         openbox/geom.h \
225         openbox/grab.c \
226         openbox/grab.h \
227         openbox/group.c \
228         openbox/group.h \
229         openbox/keyboard.c \
230         openbox/keyboard.h \
231         openbox/keytree.c \
232         openbox/keytree.h \
233         openbox/mainloop.c \
234         openbox/mainloop.h \
235         openbox/menuframe.c \
236         openbox/menuframe.h \
237         openbox/menu.c \
238         openbox/menu.h \
239         openbox/misc.h \
240         openbox/modkeys.c \
241         openbox/modkeys.h \
242         openbox/mouse.c \
243         openbox/mouse.h \
244         openbox/moveresize.c \
245         openbox/moveresize.h \
246         openbox/mwm.h \
247         openbox/openbox.c \
248         openbox/openbox.h \
249         openbox/ping.c \
250         openbox/ping.h \
251         openbox/place.c \
252         openbox/place.h \
253         openbox/prompt.c \
254         openbox/prompt.h \
255         openbox/popup.c \
256         openbox/popup.h \
257         openbox/prop.c \
258         openbox/prop.h \
259         openbox/resist.c \
260         openbox/resist.h \
261         openbox/screen.c \
262         openbox/screen.h \
263         openbox/session.c \
264         openbox/session.h \
265         openbox/stacking.c \
266         openbox/stacking.h \
267         openbox/startupnotify.c \
268         openbox/startupnotify.h \
269         openbox/translate.c \
270         openbox/translate.h \
271         openbox/window.c \
272         openbox/window.h \
273         openbox/xerror.c \
274         openbox/xerror.h
275
276
277 ## gnome-panel-control ##
278
279 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
280         $(X_CFLAGS)
281 tools_gnome_panel_control_gnome_panel_control_LDADD = \
282         $(X_LIBS)
283 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
284         tools/gnome-panel-control/gnome-panel-control.c
285
286
287 ## default button masks ##
288 dist_docxbm_DATA = \
289         data/xbm/bullet.xbm \
290         data/xbm/close.xbm \
291         data/xbm/desk_toggled.xbm \
292         data/xbm/desk.xbm \
293         data/xbm/iconify.xbm \
294         data/xbm/max_toggled.xbm \
295         data/xbm/max.xbm \
296         data/xbm/shade_toggled.xbm \
297         data/xbm/shade.xbm
298
299
300 ## themes ##
301
302 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
303 dist_clearlooks_theme_DATA= \
304         themes/Clearlooks/openbox-3/themerc
305
306 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
307 dist_clearlooks34_theme_DATA= \
308         themes/Clearlooks-3.4/openbox-3/themerc
309
310 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
311 dist_clearlooksolive_theme_DATA= \
312         themes/Clearlooks-Olive/openbox-3/themerc
313
314 mikachu_themedir = $(themedir)/Mikachu/openbox-3
315 dist_mikachu_theme_DATA= \
316         themes/Mikachu/openbox-3/bullet.xbm \
317         themes/Mikachu/openbox-3/close.xbm \
318         themes/Mikachu/openbox-3/desk.xbm \
319         themes/Mikachu/openbox-3/iconify.xbm \
320         themes/Mikachu/openbox-3/max.xbm \
321         themes/Mikachu/openbox-3/themerc
322
323
324 natura_themedir = $(themedir)/Natura/openbox-3
325 dist_natura_theme_DATA= \
326         themes/Natura/openbox-3/close_hover.xbm \
327         themes/Natura/openbox-3/close.xbm \
328         themes/Natura/openbox-3/desk_toggled.xbm \
329         themes/Natura/openbox-3/desk_hover.xbm \
330         themes/Natura/openbox-3/desk.xbm \
331         themes/Natura/openbox-3/iconify_hover.xbm \
332         themes/Natura/openbox-3/iconify.xbm \
333         themes/Natura/openbox-3/max_hover.xbm \
334         themes/Natura/openbox-3/max_toggled.xbm \
335         themes/Natura/openbox-3/max.xbm \
336         themes/Natura/openbox-3/shade.xbm \
337         themes/Natura/openbox-3/shade_hover.xbm \
338         themes/Natura/openbox-3/themerc
339
340 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
341 dist_artwizboxed_theme_DATA= \
342         themes/Artwiz-boxed/openbox-3/themerc
343
344 bear2_themedir = $(themedir)/Bear2/openbox-3
345 dist_bear2_theme_DATA= \
346         themes/Bear2/openbox-3/close_pressed.xbm \
347         themes/Bear2/openbox-3/close.xbm \
348         themes/Bear2/openbox-3/desk_toggled.xbm \
349         themes/Bear2/openbox-3/desk.xbm \
350         themes/Bear2/openbox-3/iconify_pressed.xbm \
351         themes/Bear2/openbox-3/iconify.xbm \
352         themes/Bear2/openbox-3/max_pressed.xbm \
353         themes/Bear2/openbox-3/max_toggled.xbm \
354         themes/Bear2/openbox-3/max.xbm \
355         themes/Bear2/openbox-3/shade_pressed.xbm \
356         themes/Bear2/openbox-3/shade.xbm \
357         themes/Bear2/openbox-3/themerc
358
359 orang_themedir = $(themedir)/Orang/openbox-3
360 dist_orang_theme_DATA= \
361         themes/Orang/openbox-3/themerc
362
363 onyx_themedir = $(themedir)/Onyx/openbox-3
364 dist_onyx_theme_DATA= \
365         themes/Onyx/openbox-3/themerc
366
367 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
368 dist_onyxcitrus_theme_DATA= \
369         themes/Onyx-Citrus/openbox-3/themerc
370
371 syscrash_themedir = $(themedir)/Syscrash/openbox-3
372 dist_syscrash_theme_DATA= \
373         themes/Syscrash/openbox-3/max_disabled.xbm \
374         themes/Syscrash/openbox-3/max_pressed.xbm \
375         themes/Syscrash/openbox-3/max_toggled.xbm \
376         themes/Syscrash/openbox-3/max.xbm \
377         themes/Syscrash/openbox-3/themerc
378
379 ## public headers ##
380
381 pubinclude_HEADERS = \
382         render/color.h \
383         render/font.h \
384         render/geom.h \
385         render/gradient.h \
386         render/image.h \
387         render/instance.h \
388         render/mask.h \
389         render/render.h \
390         render/theme.h \
391         parser/parse.h
392
393 nodist_pubinclude_HEADERS = \
394         version.h
395
396 nodist_pkgconfig_DATA = \
397         render/obrender-3.0.pc \
398         parser/obparser-3.0.pc
399
400 ## data ##
401
402 dist_pixmap_DATA = \
403         data/openbox.png
404
405 dist_rc_DATA = \
406         data/autostart.sh \
407         data/rc.xml \
408         data/menu.xml
409
410 edit = $(SED) \
411         -e 's!@version\@!$(VERSION)!' \
412         -e 's!@configdir\@!$(configdir)!' \
413         -e 's!@bindir\@!$(bindir)!'
414
415 %.desktop: %.desktop.in Makefile
416         @echo make: creating $@
417         @$(edit) $< >$@ 
418
419 %-session: %-session.in Makefile
420         @echo make: creating $@
421         @$(edit) $< >$@ 
422
423 %.1.in: %.1.sgml
424         @echo make: creating $@
425         @docbook-to-man $< >$@
426
427 %.1: %.1.in Makefile
428         @echo make: creating $@
429         @$(edit) $< >$@ 
430
431 dist_gnomewmfiles_DATA = \
432         data/gnome-wm-properties/openbox.desktop
433
434 nodist_xsessions_DATA = \
435         data/xsession/openbox.desktop \
436         data/xsession/openbox-gnome.desktop \
437         data/xsession/openbox-kde.desktop
438
439 dist_noinst_DATA = \
440         version.h.in \
441         data/rc.xsd \
442         data/menu.xsd \
443         data/xsession/openbox.desktop.in \
444         data/xsession/openbox-gnome.desktop.in \
445         data/xsession/openbox-kde.desktop.in \
446         data/xsession/openbox-session.in \
447         data/xsession/openbox-gnome-session.in \
448         data/xsession/openbox-kde-session.in \
449         doc/openbox.1.sgml \
450         doc/openbox.1.in \
451         doc/openbox-session.1.sgml \
452         doc/openbox-session.1.in \
453         doc/openbox-gnome-session.1.sgml \
454         doc/openbox-gnome-session.1.in \
455         doc/openbox-kde-session.1.sgml \
456         doc/openbox-kde-session.1.in \
457         render/obrender-3.0.pc.in \
458         parser/obparser-3.0.pc.in \
459         tools/themeupdate/themeupdate.py \
460         tests/hideshow.py \
461         tests/Makefile \
462         tests/aspect.c \
463         tests/fullscreen.c \
464         tests/grav.c \
465         tests/grouptran.c \
466         tests/icons.c \
467         tests/modal2.c \
468         tests/modal3.c \
469         tests/modal.c \
470         tests/noresize.c \
471         tests/override.c \
472         tests/positioned.c \
473         tests/strut.c \
474         tests/title.c \
475         tests/urgent.c
476
477 dist_doc_DATA = \
478         COMPLIANCE \
479         README \
480         AUTHORS \
481         CHANGELOG \
482         COPYING \
483         data/rc.xsd \
484         data/menu.xsd \
485         doc/rc-mouse-focus.xml
486
487 nodist_man_MANS = \
488         doc/openbox.1 \
489         doc/openbox-session.1 \
490         doc/openbox-gnome-session.1 \
491         doc/openbox-kde-session.1
492
493 EXTRA_DIST = \
494         config.rpath
495
496 # make clean doesn't delete these for some reason, even though they are
497 # built by make
498 CLEANFILES = \
499         doc/openbox.1 \
500         doc/openbox-session.1 \
501         doc/openbox-gnome-session.1 \
502         doc/openbox-kde-session.1 \
503         data/xsession/openbox-session \
504         data/xsession/openbox-gnome-session \
505         data/xsession/openbox-kde-session \
506         data/xsession/openbox.desktop \
507         data/xsession/openbox-gnome.desktop \
508         data/xsession/openbox-kde.desktop
509
510 #doc:
511 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
512
513 distclean-local:
514         for d in . m4 po render; do \
515                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
516                         rm -f "$$d/$$p"; \
517                 done \
518         done
519
520 .PHONY: doc