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