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