Merge branch 'backport' into work
[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 obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt
12 rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/render
13 pixmapdir       = $(datadir)/pixmaps
14 xsddir          = $(datadir)/openbox
15 secretbindir    = $(libdir)/openbox
16
17 theme = Clearlooks
18
19 AUTOMAKE_OPTIONS = subdir-objects foreign
20
21 ACLOCAL_AMFLAGS = -I m4
22
23 INCLUDES = -I.
24
25 check_PROGRAMS = \
26         render/rendertest
27
28 lib_LTLIBRARIES = \
29         obt/libobt.la \
30         render/libobrender.la
31
32 bin_PROGRAMS = \
33         openbox/openbox \
34         tools/gdm-control/gdm-control \
35         tools/gnome-panel-control/gnome-panel-control
36
37 dist_secretbin_SCRIPTS = \
38         tools/xdg-autostart/xdg-autostart
39
40 nodist_bin_SCRIPTS = \
41         data/xsession/openbox-session \
42         data/xsession/openbox-gnome-session \
43         data/xsession/openbox-kde-session
44
45 ## render ##
46
47 render_rendertest_CPPFLAGS = \
48         $(PANGO_CFLAGS) \
49         $(GLIB_CFLAGS) \
50         -DG_LOG_DOMAIN=\"RenderTest\"
51 render_rendertest_LDADD = \
52         obt/libobt.la \
53         render/libobrender.la \
54         $(GLIB_LIBS) \
55         $(PANGO_LIBS) \
56         $(XML_LIBS) \
57         $(X_LIBS)
58 render_rendertest_SOURCES = render/test.c
59
60 render_libobrender_la_CPPFLAGS = \
61         $(X_CFLAGS) \
62         $(GLIB_CFLAGS) \
63         $(XML_CFLAGS) \
64         $(PANGO_CFLAGS) \
65         -DG_LOG_DOMAIN=\"ObRender\" \
66         -DDEFAULT_THEME=\"$(theme)\"
67 render_libobrender_la_LDFLAGS = \
68         -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
69 render_libobrender_la_LIBADD = \
70         obt/libobt.la \
71         $(X_LIBS) \
72         $(PANGO_LIBS) \
73         $(GLIB_LIBS) \
74         $(XML_LIBS)
75 render_libobrender_la_SOURCES = \
76         gettext.h \
77         render/color.h \
78         render/color.c \
79         render/font.h \
80         render/font.c \
81         render/geom.h \
82         render/gradient.h \
83         render/gradient.c \
84         render/icon.h \
85         render/image.h \
86         render/image.c \
87         render/imagecache.h \
88         render/imagecache.c \
89         render/instance.h \
90         render/instance.c \
91         render/mask.h \
92         render/mask.c \
93         render/render.h \
94         render/render.c \
95         render/theme.h \
96         render/theme.c
97
98 ## obt ##
99
100 obt_libobt_la_CPPFLAGS = \
101         $(XINERAMA_CFLAGS) \
102         $(XKB_CFLAGS) \
103         $(XRANDR_CFLAGS) \
104         $(XSHAPE_CFLAGS) \
105         $(XSYNC_CFLAGS) \
106         $(GLIB_CFLAGS) \
107         $(XML_CFLAGS) \
108         -DG_LOG_DOMAIN=\"Obt\" \
109         -DLOCALEDIR=\"$(localedir)\" \
110         -DDATADIR=\"$(datadir)\" \
111         -DCONFIGDIR=\"$(configdir)\"
112 obt_libobt_la_LDFLAGS = \
113         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
114 obt_libobt_la_LIBADD = \
115         $(XINERAMA_LIBS) \
116         $(XKB_LIBS) \
117         $(XRANDR_LIBS) \
118         $(XSHAPE_LIBS) \
119         $(XSYNC_LIBS) \
120         $(GLIB_LIBS) \
121         $(XML_LIBS)
122 obt_libobt_la_SOURCES = \
123         obt/display.h \
124         obt/display.c \
125         obt/internal.h \
126         obt/keyboard.h \
127         obt/keyboard.c \
128         obt/mainloop.h \
129         obt/mainloop.c \
130         obt/parse.h \
131         obt/parse.c \
132         obt/paths.h \
133         obt/paths.c \
134         obt/prop.h \
135         obt/prop.c \
136         obt/util.h \
137         obt/xevent.h \
138         obt/xevent.c
139
140 ## openbox ##
141
142 openbox_openbox_CPPFLAGS = \
143         $(SM_CFLAGS) \
144         $(X_CFLAGS) \
145         $(XCURSOR_CFLAGS) \
146         $(SM_CFLAGS) \
147         $(PANGO_CFLAGS) \
148         $(GLIB_CFLAGS) \
149         $(LIBSN_CFLAGS) \
150         $(XML_CFLAGS) \
151         -DLOCALEDIR=\"$(localedir)\" \
152         -DDATADIR=\"$(datadir)\" \
153         -DCONFIGDIR=\"$(configdir)\" \
154         -DG_LOG_DOMAIN=\"Openbox\"
155 openbox_openbox_LDADD = \
156         $(SM_LIBS) \
157         $(GLIB_LIBS) \
158         $(X_LIBS) \
159         $(XCURSOR_LIBS) \
160         $(LIBSN_LIBS) \
161         $(XML_LIBS) \
162         $(EFENCE_LIBS) \
163         $(LIBINTL) \
164         render/libobrender.la \
165         obt/libobt.la
166 openbox_openbox_LDFLAGS = -export-dynamic
167 openbox_openbox_SOURCES = \
168         gettext.h \
169         openbox/actions/all.c \
170         openbox/actions/all.h \
171         openbox/actions/addremovedesktop.c \
172         openbox/actions/breakchroot.c \
173         openbox/actions/close.c \
174         openbox/actions/cyclewindows.c \
175         openbox/actions/debug.c \
176         openbox/actions/decorations.c \
177         openbox/actions/desktop.c \
178         openbox/actions/dockautohide.c \
179         openbox/actions/directionalwindows.c \
180         openbox/actions/execute.c \
181         openbox/actions/exit.c \
182         openbox/actions/focus.c \
183         openbox/actions/focustobottom.c \
184         openbox/actions/fullscreen.c \
185         openbox/actions/growtoedge.c \
186         openbox/actions/iconify.c \
187         openbox/actions/if.c \
188         openbox/actions/kill.c \
189         openbox/actions/layer.c \
190         openbox/actions/session.c \
191         openbox/actions/lower.c \
192         openbox/actions/maximize.c \
193         openbox/actions/move.c \
194         openbox/actions/moverelative.c \
195         openbox/actions/moveresizeto.c \
196         openbox/actions/movetoedge.c \
197         openbox/actions/omnipresent.c \
198         openbox/actions/raise.c \
199         openbox/actions/raiselower.c \
200         openbox/actions/reconfigure.c \
201         openbox/actions/resize.c \
202         openbox/actions/resizerelative.c \
203         openbox/actions/restart.c \
204         openbox/actions/shade.c \
205         openbox/actions/shadelowerraise.c \
206         openbox/actions/showdesktop.c \
207         openbox/actions/showmenu.c \
208         openbox/actions/unfocus.c \
209         openbox/actions.c \
210         openbox/actions.h \
211         openbox/client.c \
212         openbox/client.h \
213         openbox/client_list_menu.c \
214         openbox/client_list_menu.h \
215         openbox/client_list_combined_menu.c \
216         openbox/client_list_combined_menu.h \
217         openbox/client_menu.c \
218         openbox/client_menu.h \
219         openbox/config.c \
220         openbox/config.h \
221         openbox/debug.c \
222         openbox/debug.h \
223         openbox/dock.c \
224         openbox/dock.h \
225         openbox/event.c \
226         openbox/event.h \
227         openbox/focus.c \
228         openbox/focus.h \
229         openbox/focus_cycle.c \
230         openbox/focus_cycle.h \
231         openbox/focus_cycle_indicator.c \
232         openbox/focus_cycle_indicator.h \
233         openbox/focus_cycle_popup.c \
234         openbox/focus_cycle_popup.h \
235         openbox/frame.c \
236         openbox/frame.h \
237         openbox/framerender.c \
238         openbox/framerender.h \
239         openbox/geom.h \
240         openbox/grab.c \
241         openbox/grab.h \
242         openbox/group.c \
243         openbox/group.h \
244         openbox/keyboard.c \
245         openbox/keyboard.h \
246         openbox/keytree.c \
247         openbox/keytree.h \
248         openbox/menuframe.c \
249         openbox/menuframe.h \
250         openbox/menu.c \
251         openbox/menu.h \
252         openbox/misc.h \
253         openbox/mouse.c \
254         openbox/mouse.h \
255         openbox/moveresize.c \
256         openbox/moveresize.h \
257         openbox/mwm.h \
258         openbox/openbox.c \
259         openbox/openbox.h \
260         openbox/ping.c \
261         openbox/ping.h \
262         openbox/place.c \
263         openbox/place.h \
264         openbox/prompt.c \
265         openbox/prompt.h \
266         openbox/popup.c \
267         openbox/popup.h \
268         openbox/resist.c \
269         openbox/resist.h \
270         openbox/screen.c \
271         openbox/screen.h \
272         openbox/session.c \
273         openbox/session.h \
274         openbox/stacking.c \
275         openbox/stacking.h \
276         openbox/startupnotify.c \
277         openbox/startupnotify.h \
278         openbox/translate.c \
279         openbox/translate.h \
280         openbox/window.c \
281         openbox/window.h
282
283 ## gnome-panel-control ##
284
285 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
286         $(X_CFLAGS)
287 tools_gnome_panel_control_gnome_panel_control_LDADD = \
288         $(X_LIBS)
289 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
290         tools/gnome-panel-control/gnome-panel-control.c
291
292 ## gdm-control ##
293
294 tools_gdm_control_gdm_control_CPPFLAGS = \
295         $(X_CFLAGS) \
296         $(GLIB_CFLAGS)
297 tools_gdm_control_gdm_control_LDADD = \
298         $(X_LIBS) \
299         $(GLIB_LIBS)
300 tools_gdm_control_gdm_control_SOURCES = \
301         tools/gdm-control/gdm-control.c
302
303
304 ## default button masks ##
305 dist_docxbm_DATA = \
306         data/xbm/bullet.xbm \
307         data/xbm/close.xbm \
308         data/xbm/desk_toggled.xbm \
309         data/xbm/desk.xbm \
310         data/xbm/iconify.xbm \
311         data/xbm/max_toggled.xbm \
312         data/xbm/max.xbm \
313         data/xbm/shade_toggled.xbm \
314         data/xbm/shade.xbm
315
316
317 ## themes ##
318
319 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
320 dist_clearlooks_theme_DATA= \
321         themes/Clearlooks/openbox-3/themerc
322
323 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
324 dist_clearlooks34_theme_DATA= \
325         themes/Clearlooks-3.4/openbox-3/themerc
326
327 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
328 dist_clearlooksolive_theme_DATA= \
329         themes/Clearlooks-Olive/openbox-3/themerc
330
331 mikachu_themedir = $(themedir)/Mikachu/openbox-3
332 dist_mikachu_theme_DATA= \
333         themes/Mikachu/openbox-3/bullet.xbm \
334         themes/Mikachu/openbox-3/close.xbm \
335         themes/Mikachu/openbox-3/desk.xbm \
336         themes/Mikachu/openbox-3/iconify.xbm \
337         themes/Mikachu/openbox-3/max.xbm \
338         themes/Mikachu/openbox-3/themerc
339
340
341 natura_themedir = $(themedir)/Natura/openbox-3
342 dist_natura_theme_DATA= \
343         themes/Natura/openbox-3/close_hover.xbm \
344         themes/Natura/openbox-3/close.xbm \
345         themes/Natura/openbox-3/desk_toggled.xbm \
346         themes/Natura/openbox-3/desk_hover.xbm \
347         themes/Natura/openbox-3/desk.xbm \
348         themes/Natura/openbox-3/iconify_hover.xbm \
349         themes/Natura/openbox-3/iconify.xbm \
350         themes/Natura/openbox-3/max_hover.xbm \
351         themes/Natura/openbox-3/max_toggled.xbm \
352         themes/Natura/openbox-3/max.xbm \
353         themes/Natura/openbox-3/shade.xbm \
354         themes/Natura/openbox-3/shade_hover.xbm \
355         themes/Natura/openbox-3/themerc
356
357 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
358 dist_artwizboxed_theme_DATA= \
359         themes/Artwiz-boxed/openbox-3/themerc
360
361 bear2_themedir = $(themedir)/Bear2/openbox-3
362 dist_bear2_theme_DATA= \
363         themes/Bear2/openbox-3/close_pressed.xbm \
364         themes/Bear2/openbox-3/close.xbm \
365         themes/Bear2/openbox-3/desk_toggled.xbm \
366         themes/Bear2/openbox-3/desk.xbm \
367         themes/Bear2/openbox-3/iconify_pressed.xbm \
368         themes/Bear2/openbox-3/iconify.xbm \
369         themes/Bear2/openbox-3/max_pressed.xbm \
370         themes/Bear2/openbox-3/max_toggled.xbm \
371         themes/Bear2/openbox-3/max.xbm \
372         themes/Bear2/openbox-3/shade_pressed.xbm \
373         themes/Bear2/openbox-3/shade.xbm \
374         themes/Bear2/openbox-3/themerc
375
376 orang_themedir = $(themedir)/Orang/openbox-3
377 dist_orang_theme_DATA= \
378         themes/Orang/openbox-3/themerc
379
380 onyx_themedir = $(themedir)/Onyx/openbox-3
381 dist_onyx_theme_DATA= \
382         themes/Onyx/openbox-3/themerc
383
384 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
385 dist_onyxcitrus_theme_DATA= \
386         themes/Onyx-Citrus/openbox-3/themerc
387
388 syscrash_themedir = $(themedir)/Syscrash/openbox-3
389 dist_syscrash_theme_DATA= \
390         themes/Syscrash/openbox-3/max_disabled.xbm \
391         themes/Syscrash/openbox-3/max_pressed.xbm \
392         themes/Syscrash/openbox-3/max_toggled.xbm \
393         themes/Syscrash/openbox-3/max.xbm \
394         themes/Syscrash/openbox-3/themerc
395
396 ## public headers ##
397
398 rrpubinclude_HEADERS = \
399         render/color.h \
400         render/font.h \
401         render/geom.h \
402         render/gradient.h \
403         render/image.h \
404         render/instance.h \
405         render/mask.h \
406         render/render.h \
407         render/theme.h \
408         render/version.h
409
410 obtpubinclude_HEADERS = \
411         obt/display.h \
412         obt/keyboard.h \
413         obt/mainloop.h \
414         obt/parse.h \
415         obt/paths.h \
416         obt/prop.h \
417         obt/util.h \
418         obt/version.h \
419         obt/xevent.h
420
421 nodist_pkgconfig_DATA = \
422         render/obrender-4.0.pc \
423         obt/obt-4.0.pc
424
425 ## data ##
426
427 dist_pixmap_DATA = \
428         data/openbox.png
429
430 nodist_rc_DATA = \
431         data/autostart.sh
432
433 dist_rc_DATA = \
434         data/rc.xml \
435         data/menu.xml
436
437 edit = $(SED) \
438         -e 's!@version\@!$(VERSION)!' \
439         -e 's!@configdir\@!$(configdir)!' \
440         -e 's!@secretbindir\@!$(secretbindir)!' \
441         -e 's!@bindir\@!$(bindir)!'
442
443 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
444         @echo make: creating $@
445         @$(edit) $< >$@
446
447 %.desktop: %.desktop.in Makefile
448         @echo make: creating $@
449         @$(edit) $< >$@ 
450
451 %-session: %-session.in Makefile
452         @echo make: creating $@
453         @$(edit) $< >$@ 
454
455 %.1.in: %.1.sgml
456         @echo make: creating $@
457         @docbook-to-man $< >$@
458
459 %.1: %.1.in Makefile
460         @echo make: creating $@
461         @$(edit) $< >$@ 
462
463 dist_gnomewmfiles_DATA = \
464         data/gnome-wm-properties/openbox.desktop
465
466 nodist_xsessions_DATA = \
467         data/xsession/openbox.desktop \
468         data/xsession/openbox-gnome.desktop \
469         data/xsession/openbox-kde.desktop
470
471 dist_noinst_DATA = \
472         data/autostart.sh.in \
473         data/rc.xsd \
474         data/menu.xsd \
475         data/xsession/openbox.desktop.in \
476         data/xsession/openbox-gnome.desktop.in \
477         data/xsession/openbox-kde.desktop.in \
478         data/xsession/openbox-session.in \
479         data/xsession/openbox-gnome-session.in \
480         data/xsession/openbox-kde-session.in \
481         doc/openbox.1.sgml \
482         doc/openbox.1.in \
483         doc/openbox-session.1.sgml \
484         doc/openbox-session.1.in \
485         doc/openbox-gnome-session.1.sgml \
486         doc/openbox-gnome-session.1.in \
487         doc/openbox-kde-session.1.sgml \
488         doc/openbox-kde-session.1.in \
489         render/version.h.in \
490         render/obrender-4.0.pc.in \
491         obt/obt-4.0.pc.in \
492         obt/version.h.in \
493         tools/themeupdate/themeupdate.py \
494         tests/hideshow.py \
495         tests/Makefile \
496         tests/aspect.c \
497         tests/fullscreen.c \
498         tests/grav.c \
499         tests/grouptran.c \
500         tests/icons.c \
501         tests/modal2.c \
502         tests/modal3.c \
503         tests/modal.c \
504         tests/noresize.c \
505         tests/override.c \
506         tests/positioned.c \
507         tests/strut.c \
508         tests/title.c \
509         tests/urgent.c
510
511 dist_doc_DATA = \
512         COMPLIANCE \
513         README \
514         AUTHORS \
515         CHANGELOG \
516         COPYING \
517         data/rc.xsd \
518         data/menu.xsd \
519         doc/rc-mouse-focus.xml
520
521 nodist_man_MANS = \
522         doc/openbox.1 \
523         doc/openbox-session.1 \
524         doc/openbox-gnome-session.1 \
525         doc/openbox-kde-session.1
526
527 EXTRA_DIST = \
528         config.rpath
529
530 # make clean doesn't delete these for some reason, even though they are
531 # built by make
532 CLEANFILES = \
533         doc/openbox.1 \
534         doc/openbox-session.1 \
535         doc/openbox-gnome-session.1 \
536         doc/openbox-kde-session.1 \
537         data/xsession/openbox-session \
538         data/xsession/openbox-gnome-session \
539         data/xsession/openbox-kde-session \
540         data/xsession/openbox.desktop \
541         data/xsession/openbox-gnome.desktop \
542         data/xsession/openbox-kde.desktop
543
544 #doc:
545 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
546
547 distclean-local:
548         for d in . m4 po render parser obt openbox; do \
549                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
550                         rm -f "$$d/$$p"; \
551                 done \
552         done
553
554 .PHONY: doc