add the cyclewindows action
[dana/openbox-history.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/cyclewindows.c \
160         openbox/actions/debug.c \
161         openbox/actions/execute.c \
162         openbox/actions/exit.c \
163         openbox/actions/reconfigure.c \
164         openbox/actions/restart.c \
165         openbox/actions/showdesktop.c \
166         openbox/actions/showmenu.c \
167         openbox/actions.c \
168         openbox/actions.h \
169         openbox/client.c \
170         openbox/client.h \
171         openbox/client_list_menu.c \
172         openbox/client_list_menu.h \
173         openbox/client_list_combined_menu.c \
174         openbox/client_list_combined_menu.h \
175         openbox/client_menu.c \
176         openbox/client_menu.h \
177         openbox/composite.c \
178         openbox/composite.h \
179         openbox/config.c \
180         openbox/config.h \
181         openbox/debug.c \
182         openbox/debug.h \
183         openbox/dock.c \
184         openbox/dock.h \
185         openbox/event.c \
186         openbox/event.h \
187         openbox/extensions.c \
188         openbox/extensions.h \
189         openbox/focus.c \
190         openbox/focus.h \
191         openbox/focus_cycle.c \
192         openbox/focus_cycle.h \
193         openbox/focus_cycle_indicator.c \
194         openbox/focus_cycle_indicator.h \
195         openbox/focus_cycle_popup.c \
196         openbox/focus_cycle_popup.h \
197         openbox/frame.c \
198         openbox/frame.h \
199         openbox/framerender.c \
200         openbox/framerender.h \
201         openbox/geom.h \
202         openbox/grab.c \
203         openbox/grab.h \
204         openbox/group.c \
205         openbox/group.h \
206         openbox/keyboard.c \
207         openbox/keyboard.h \
208         openbox/keytree.c \
209         openbox/keytree.h \
210         openbox/mainloop.c \
211         openbox/mainloop.h \
212         openbox/menuframe.c \
213         openbox/menuframe.h \
214         openbox/menu.c \
215         openbox/menu.h \
216         openbox/misc.h \
217         openbox/modkeys.c \
218         openbox/modkeys.h \
219         openbox/mouse.c \
220         openbox/mouse.h \
221         openbox/moveresize.c \
222         openbox/moveresize.h \
223         openbox/mwm.h \
224         openbox/openbox.c \
225         openbox/openbox.h \
226         openbox/place.c \
227         openbox/place.h \
228         openbox/popup.c \
229         openbox/popup.h \
230         openbox/prop.c \
231         openbox/prop.h \
232         openbox/propwin.c \
233         openbox/propwin.h \
234         openbox/resist.c \
235         openbox/resist.h \
236         openbox/screen.c \
237         openbox/screen.h \
238         openbox/session.c \
239         openbox/session.h \
240         openbox/stacking.c \
241         openbox/stacking.h \
242         openbox/startupnotify.c \
243         openbox/startupnotify.h \
244         openbox/translate.c \
245         openbox/translate.h \
246         openbox/window.c \
247         openbox/window.h \
248         openbox/xerror.c \
249         openbox/xerror.h
250
251
252 ## gnome-panel-control ##
253
254 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
255         $(X_CFLAGS)
256 tools_gnome_panel_control_gnome_panel_control_LDADD = \
257         $(X_LIBS)
258 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
259         tools/gnome-panel-control/gnome-panel-control.c
260
261
262 ## default button masks ##
263 dist_docxbm_DATA = \
264         data/xbm/bullet.xbm \
265         data/xbm/close.xbm \
266         data/xbm/desk_toggled.xbm \
267         data/xbm/desk.xbm \
268         data/xbm/iconify.xbm \
269         data/xbm/max_toggled.xbm \
270         data/xbm/max.xbm \
271         data/xbm/shade_toggled.xbm \
272         data/xbm/shade.xbm
273
274
275 ## themes ##
276
277 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
278 dist_clearlooks_theme_DATA= \
279         themes/Clearlooks/openbox-3/themerc
280
281 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
282 dist_clearlooksolive_theme_DATA= \
283         themes/Clearlooks-Olive/openbox-3/themerc
284
285 mikachu_themedir = $(themedir)/Mikachu/openbox-3
286 dist_mikachu_theme_DATA= \
287         themes/Mikachu/openbox-3/bullet.xbm \
288         themes/Mikachu/openbox-3/close.xbm \
289         themes/Mikachu/openbox-3/desk.xbm \
290         themes/Mikachu/openbox-3/iconify.xbm \
291         themes/Mikachu/openbox-3/max.xbm \
292         themes/Mikachu/openbox-3/themerc
293
294
295 natura_themedir = $(themedir)/Natura/openbox-3
296 dist_natura_theme_DATA= \
297         themes/Natura/openbox-3/close_hover.xbm \
298         themes/Natura/openbox-3/close.xbm \
299         themes/Natura/openbox-3/desk_toggled.xbm \
300         themes/Natura/openbox-3/desk_hover.xbm \
301         themes/Natura/openbox-3/desk.xbm \
302         themes/Natura/openbox-3/iconify_hover.xbm \
303         themes/Natura/openbox-3/iconify.xbm \
304         themes/Natura/openbox-3/max_hover.xbm \
305         themes/Natura/openbox-3/max_toggled.xbm \
306         themes/Natura/openbox-3/max.xbm \
307         themes/Natura/openbox-3/shade.xbm \
308         themes/Natura/openbox-3/shade_hover.xbm \
309         themes/Natura/openbox-3/themerc
310
311 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
312 dist_artwizboxed_theme_DATA= \
313         themes/Artwiz-boxed/openbox-3/themerc
314
315 bear2_themedir = $(themedir)/Bear2/openbox-3
316 dist_bear2_theme_DATA= \
317         themes/Bear2/openbox-3/close_pressed.xbm \
318         themes/Bear2/openbox-3/close.xbm \
319         themes/Bear2/openbox-3/desk_toggled.xbm \
320         themes/Bear2/openbox-3/desk.xbm \
321         themes/Bear2/openbox-3/iconify_pressed.xbm \
322         themes/Bear2/openbox-3/iconify.xbm \
323         themes/Bear2/openbox-3/max_pressed.xbm \
324         themes/Bear2/openbox-3/max_toggled.xbm \
325         themes/Bear2/openbox-3/max.xbm \
326         themes/Bear2/openbox-3/shade_pressed.xbm \
327         themes/Bear2/openbox-3/shade.xbm \
328         themes/Bear2/openbox-3/themerc
329
330 orang_themedir = $(themedir)/Orang/openbox-3
331 dist_orang_theme_DATA= \
332         themes/Orang/openbox-3/themerc
333
334 onyx_themedir = $(themedir)/Onyx/openbox-3
335 dist_onyx_theme_DATA= \
336         themes/Onyx/openbox-3/themerc
337
338 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
339 dist_onyxcitrus_theme_DATA= \
340         themes/Onyx-Citrus/openbox-3/themerc
341
342 syscrash_themedir = $(themedir)/Syscrash/openbox-3
343 dist_syscrash_theme_DATA= \
344         themes/Syscrash/openbox-3/max_disabled.xbm \
345         themes/Syscrash/openbox-3/max_pressed.xbm \
346         themes/Syscrash/openbox-3/max_toggled.xbm \
347         themes/Syscrash/openbox-3/max.xbm \
348         themes/Syscrash/openbox-3/themerc
349
350 ## public headers ##
351
352 pubinclude_HEADERS = \
353         render/color.h \
354         render/font.h \
355         render/geom.h \
356         render/gradient.h \
357         render/image.h \
358         render/instance.h \
359         render/mask.h \
360         render/render.h \
361         render/theme.h \
362         parser/parse.h
363
364 nodist_pubinclude_HEADERS = \
365         version.h
366
367 nodist_pkgconfig_DATA = \
368         render/obrender-3.0.pc \
369         parser/obparser-3.0.pc
370
371 ## data ##
372
373 dist_pixmap_DATA = \
374         data/openbox.png
375
376 dist_rc_DATA = \
377         data/autostart.sh \
378         data/rc.xml \
379         data/menu.xml
380
381 edit = $(SED) \
382         -e 's!@version\@!$(VERSION)!' \
383         -e 's!@configdir\@!$(configdir)!' \
384         -e 's!@bindir\@!$(bindir)!'
385
386 %.desktop: %.desktop.in Makefile
387         @echo make: creating $@
388         @$(edit) $< >$@ 
389
390 %-session: %-session.in Makefile
391         @echo make: creating $@
392         @$(edit) $< >$@ 
393
394 %.1.in: %.1.sgml
395         @echo make: creating $@
396         @docbook-to-man $< >$@
397
398 %.1: %.1.in Makefile
399         @echo make: creating $@
400         @$(edit) $< >$@ 
401
402 dist_gnomewmfiles_DATA = \
403         data/gnome-wm-properties/openbox.desktop
404
405 nodist_xsessions_DATA = \
406         data/xsession/openbox.desktop \
407         data/xsession/openbox-gnome.desktop \
408         data/xsession/openbox-kde.desktop
409
410 dist_noinst_DATA = \
411         version.h.in \
412         data/rc.xsd \
413         data/menu.xsd \
414         data/xsession/openbox.desktop.in \
415         data/xsession/openbox-gnome.desktop.in \
416         data/xsession/openbox-kde.desktop.in \
417         data/xsession/openbox-session.in \
418         data/xsession/openbox-gnome-session.in \
419         data/xsession/openbox-kde-session.in \
420         doc/openbox.1.sgml \
421         doc/openbox.1.in \
422         doc/openbox-session.1.sgml \
423         doc/openbox-session.1.in \
424         doc/openbox-gnome-session.1.sgml \
425         doc/openbox-gnome-session.1.in \
426         doc/openbox-kde-session.1.sgml \
427         doc/openbox-kde-session.1.in \
428         render/obrender-3.0.pc.in \
429         parser/obparser-3.0.pc.in \
430         tools/themeupdate/themeupdate.py \
431         tests/hideshow.py \
432         tests/Makefile \
433         tests/aspect.c \
434         tests/fullscreen.c \
435         tests/grav.c \
436         tests/grouptran.c \
437         tests/icons.c \
438         tests/modal2.c \
439         tests/modal3.c \
440         tests/modal.c \
441         tests/noresize.c \
442         tests/override.c \
443         tests/positioned.c \
444         tests/strut.c \
445         tests/title.c \
446         tests/urgent.c
447
448 dist_doc_DATA = \
449         COMPLIANCE \
450         README \
451         AUTHORS \
452         CHANGELOG \
453         COPYING \
454         data/rc.xsd \
455         data/menu.xsd \
456         doc/rc-mouse-focus.xml
457
458 nodist_man_MANS = \
459         doc/openbox.1 \
460         doc/openbox-session.1 \
461         doc/openbox-gnome-session.1 \
462         doc/openbox-kde-session.1
463
464 EXTRA_DIST = \
465         debian/changelog.in \
466         debian/compat \
467         debian/conffiles \
468         debian/control \
469         debian/copyright \
470         debian/menu \
471         debian/postinst \
472         debian/postrm \
473         debian/rules \
474         config.rpath \
475         mkinstalldirs
476
477 # make clean doesn't delete these for some reason, even though they are
478 # built by make
479 CLEANFILES = \
480         doc/openbox.1 \
481         doc/openbox-session.1 \
482         doc/openbox-gnome-session.1 \
483         doc/openbox-kde-session.1 \
484         data/xsession/openbox-session \
485         data/xsession/openbox-gnome-session \
486         data/xsession/openbox-kde-session \
487         data/xsession/openbox.desktop \
488         data/xsession/openbox-gnome.desktop \
489         data/xsession/openbox-kde.desktop
490
491 #doc:
492 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
493
494 distclean-local:
495         for d in . m4 po render; do \
496                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
497                         rm -f "$$d/$$p"; \
498                 done \
499         done
500
501 .PHONY: doc