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