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