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 appsdir         = $(datadir)/applications
17
18 theme = Clearlooks
19
20 AUTOMAKE_OPTIONS = subdir-objects foreign
21
22 ACLOCAL_AMFLAGS = -I m4
23
24 INCLUDES = -I.
25
26 check_PROGRAMS = \
27         render/rendertest
28
29 lib_LTLIBRARIES = \
30         obt/libobt.la \
31         render/libobrender.la
32
33 bin_PROGRAMS = \
34         openbox/openbox \
35         tools/gdm-control/gdm-control \
36         tools/gnome-panel-control/gnome-panel-control
37
38 dist_secretbin_SCRIPTS = \
39         tools/xdg-autostart/xdg-autostart
40
41 nodist_bin_SCRIPTS = \
42         data/xsession/openbox-session \
43         data/xsession/openbox-gnome-session \
44         data/xsession/openbox-kde-session
45
46 ## render ##
47
48 render_rendertest_CPPFLAGS = \
49         $(PANGO_CFLAGS) \
50         $(GLIB_CFLAGS) \
51         -DG_LOG_DOMAIN=\"RenderTest\"
52 render_rendertest_LDADD = \
53         obt/libobt.la \
54         render/libobrender.la \
55         $(GLIB_LIBS) \
56         $(PANGO_LIBS) \
57         $(XML_LIBS) \
58         $(X_LIBS)
59 render_rendertest_SOURCES = render/test.c
60
61 render_libobrender_la_CPPFLAGS = \
62         $(X_CFLAGS) \
63         $(GLIB_CFLAGS) \
64         $(XML_CFLAGS) \
65         $(PANGO_CFLAGS) \
66         -DG_LOG_DOMAIN=\"ObRender\" \
67         -DDEFAULT_THEME=\"$(theme)\"
68 render_libobrender_la_LDFLAGS = \
69         -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
70 render_libobrender_la_LIBADD = \
71         obt/libobt.la \
72         $(X_LIBS) \
73         $(PANGO_LIBS) \
74         $(GLIB_LIBS) \
75         $(XML_LIBS)
76 render_libobrender_la_SOURCES = \
77         gettext.h \
78         render/color.h \
79         render/color.c \
80         render/font.h \
81         render/font.c \
82         render/geom.h \
83         render/gradient.h \
84         render/gradient.c \
85         render/icon.h \
86         render/image.h \
87         render/image.c \
88         render/imagecache.h \
89         render/imagecache.c \
90         render/instance.h \
91         render/instance.c \
92         render/mask.h \
93         render/mask.c \
94         render/render.h \
95         render/render.c \
96         render/theme.h \
97         render/theme.c
98
99 ## obt ##
100
101 obt_libobt_la_CPPFLAGS = \
102         $(XINERAMA_CFLAGS) \
103         $(XKB_CFLAGS) \
104         $(XRANDR_CFLAGS) \
105         $(XSHAPE_CFLAGS) \
106         $(XSYNC_CFLAGS) \
107         $(GLIB_CFLAGS) \
108         $(XML_CFLAGS) \
109         -DG_LOG_DOMAIN=\"Obt\" \
110         -DLOCALEDIR=\"$(localedir)\" \
111         -DDATADIR=\"$(datadir)\" \
112         -DCONFIGDIR=\"$(configdir)\"
113 obt_libobt_la_LDFLAGS = \
114         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
115 obt_libobt_la_LIBADD = \
116         $(XINERAMA_LIBS) \
117         $(XKB_LIBS) \
118         $(XRANDR_LIBS) \
119         $(XSHAPE_LIBS) \
120         $(XSYNC_LIBS) \
121         $(GLIB_LIBS) \
122         $(XML_LIBS)
123 obt_libobt_la_SOURCES = \
124         obt/display.h \
125         obt/display.c \
126         obt/internal.h \
127         obt/keyboard.h \
128         obt/keyboard.c \
129         obt/mainloop.h \
130         obt/mainloop.c \
131         obt/parse.h \
132         obt/parse.c \
133         obt/paths.h \
134         obt/paths.c \
135         obt/prop.h \
136         obt/prop.c \
137         obt/util.h \
138         obt/xevent.h \
139         obt/xevent.c
140
141 ## openbox ##
142
143 openbox_openbox_CPPFLAGS = \
144         $(SM_CFLAGS) \
145         $(X_CFLAGS) \
146         $(XCURSOR_CFLAGS) \
147         $(SM_CFLAGS) \
148         $(PANGO_CFLAGS) \
149         $(GLIB_CFLAGS) \
150         $(LIBSN_CFLAGS) \
151         $(XML_CFLAGS) \
152         -DLOCALEDIR=\"$(localedir)\" \
153         -DDATADIR=\"$(datadir)\" \
154         -DCONFIGDIR=\"$(configdir)\" \
155         -DG_LOG_DOMAIN=\"Openbox\"
156 openbox_openbox_LDADD = \
157         $(SM_LIBS) \
158         $(GLIB_LIBS) \
159         $(X_LIBS) \
160         $(XCURSOR_LIBS) \
161         $(LIBSN_LIBS) \
162         $(XML_LIBS) \
163         $(EFENCE_LIBS) \
164         $(LIBINTL) \
165         render/libobrender.la \
166         obt/libobt.la
167 openbox_openbox_LDFLAGS = -export-dynamic
168 openbox_openbox_SOURCES = \
169         gettext.h \
170         openbox/actions/all.c \
171         openbox/actions/all.h \
172         openbox/actions/addremovedesktop.c \
173         openbox/actions/breakchroot.c \
174         openbox/actions/close.c \
175         openbox/actions/cyclewindows.c \
176         openbox/actions/debug.c \
177         openbox/actions/decorations.c \
178         openbox/actions/desktop.c \
179         openbox/actions/dockautohide.c \
180         openbox/actions/directionalwindows.c \
181         openbox/actions/execute.c \
182         openbox/actions/exit.c \
183         openbox/actions/focus.c \
184         openbox/actions/focustobottom.c \
185         openbox/actions/fullscreen.c \
186         openbox/actions/growtoedge.c \
187         openbox/actions/iconify.c \
188         openbox/actions/if.c \
189         openbox/actions/kill.c \
190         openbox/actions/layer.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_apps_DATA = \
428         data/openbox.desktop
429
430 dist_pixmap_DATA = \
431         data/openbox.png
432
433 nodist_rc_DATA = \
434         data/autostart.sh
435
436 dist_rc_DATA = \
437         data/rc.xml \
438         data/menu.xml
439
440 edit = $(SED) \
441         -e 's!@version\@!$(VERSION)!' \
442         -e 's!@configdir\@!$(configdir)!' \
443         -e 's!@secretbindir\@!$(secretbindir)!' \
444         -e 's!@bindir\@!$(bindir)!'
445
446 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
447         @echo make: creating $@
448         @$(edit) $< >$@
449
450 %.desktop: %.desktop.in Makefile
451         @echo make: creating $@
452         @$(edit) $< >$@ 
453
454 %-session: %-session.in Makefile
455         @echo make: creating $@
456         @$(edit) $< >$@ 
457
458 %.1.in: %.1.sgml
459         @echo make: creating $@
460         @docbook-to-man $< >$@
461
462 %.1: %.1.in Makefile
463         @echo make: creating $@
464         @$(edit) $< >$@ 
465
466 dist_gnomewmfiles_DATA = \
467         data/gnome-wm-properties/openbox.desktop
468
469 nodist_xsessions_DATA = \
470         data/xsession/openbox.desktop \
471         data/xsession/openbox-gnome.desktop \
472         data/xsession/openbox-kde.desktop
473
474 dist_noinst_DATA = \
475         data/autostart.sh.in \
476         data/rc.xsd \
477         data/menu.xsd \
478         data/xsession/openbox.desktop.in \
479         data/xsession/openbox-gnome.desktop.in \
480         data/xsession/openbox-kde.desktop.in \
481         data/xsession/openbox-session.in \
482         data/xsession/openbox-gnome-session.in \
483         data/xsession/openbox-kde-session.in \
484         doc/openbox.1.sgml \
485         doc/openbox.1.in \
486         doc/openbox-session.1.sgml \
487         doc/openbox-session.1.in \
488         doc/openbox-gnome-session.1.sgml \
489         doc/openbox-gnome-session.1.in \
490         doc/openbox-kde-session.1.sgml \
491         doc/openbox-kde-session.1.in \
492         render/version.h.in \
493         render/obrender-4.0.pc.in \
494         obt/obt-4.0.pc.in \
495         obt/version.h.in \
496         tools/themeupdate/themeupdate.py \
497         tests/hideshow.py \
498         tests/Makefile \
499         tests/aspect.c \
500         tests/fullscreen.c \
501         tests/grav.c \
502         tests/grouptran.c \
503         tests/icons.c \
504         tests/modal2.c \
505         tests/modal3.c \
506         tests/modal.c \
507         tests/noresize.c \
508         tests/override.c \
509         tests/positioned.c \
510         tests/strut.c \
511         tests/title.c \
512         tests/urgent.c
513
514 dist_doc_DATA = \
515         COMPLIANCE \
516         README \
517         AUTHORS \
518         CHANGELOG \
519         COPYING \
520         data/rc.xsd \
521         data/menu.xsd \
522         doc/rc-mouse-focus.xml
523
524 nodist_man_MANS = \
525         doc/openbox.1 \
526         doc/openbox-session.1 \
527         doc/openbox-gnome-session.1 \
528         doc/openbox-kde-session.1
529
530 EXTRA_DIST = \
531         config.rpath
532
533 # make clean doesn't delete these for some reason, even though they are
534 # built by make
535 CLEANFILES = \
536         doc/openbox.1 \
537         doc/openbox-session.1 \
538         doc/openbox-gnome-session.1 \
539         doc/openbox-kde-session.1 \
540         data/xsession/openbox-session \
541         data/xsession/openbox-gnome-session \
542         data/xsession/openbox-kde-session \
543         data/xsession/openbox.desktop \
544         data/xsession/openbox-gnome.desktop \
545         data/xsession/openbox-kde.desktop
546
547 #doc:
548 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
549
550 distclean-local:
551         for d in . m4 po render parser obt openbox; do \
552                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
553                         rm -f "$$d/$$p"; \
554                 done \
555         done
556
557 .PHONY: doc