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