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