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