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