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