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