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