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