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/showdesktop.c \
206         openbox/actions/showmenu.c \
207         openbox/actions/unfocus.c \
208         openbox/actions.c \
209         openbox/actions.h \
210         openbox/client.c \
211         openbox/client.h \
212         openbox/client_list_menu.c \
213         openbox/client_list_menu.h \
214         openbox/client_list_combined_menu.c \
215         openbox/client_list_combined_menu.h \
216         openbox/client_menu.c \
217         openbox/client_menu.h \
218         openbox/config.c \
219         openbox/config.h \
220         openbox/debug.c \
221         openbox/debug.h \
222         openbox/dock.c \
223         openbox/dock.h \
224         openbox/event.c \
225         openbox/event.h \
226         openbox/focus.c \
227         openbox/focus.h \
228         openbox/focus_cycle.c \
229         openbox/focus_cycle.h \
230         openbox/focus_cycle_indicator.c \
231         openbox/focus_cycle_indicator.h \
232         openbox/focus_cycle_popup.c \
233         openbox/focus_cycle_popup.h \
234         openbox/frame.c \
235         openbox/frame.h \
236         openbox/framerender.c \
237         openbox/framerender.h \
238         openbox/geom.h \
239         openbox/grab.c \
240         openbox/grab.h \
241         openbox/group.c \
242         openbox/group.h \
243         openbox/hooks.c \
244         openbox/hooks.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 ## gdm-control ##
294
295 tools_gdm_control_gdm_control_CPPFLAGS = \
296         $(X_CFLAGS) \
297         $(GLIB_CFLAGS)
298 tools_gdm_control_gdm_control_LDADD = \
299         $(X_LIBS) \
300         $(GLIB_LIBS)
301 tools_gdm_control_gdm_control_SOURCES = \
302         tools/gdm-control/gdm-control.c
303
304
305 ## default button masks ##
306 dist_docxbm_DATA = \
307         data/xbm/bullet.xbm \
308         data/xbm/close.xbm \
309         data/xbm/desk_toggled.xbm \
310         data/xbm/desk.xbm \
311         data/xbm/iconify.xbm \
312         data/xbm/max_toggled.xbm \
313         data/xbm/max.xbm \
314         data/xbm/shade_toggled.xbm \
315         data/xbm/shade.xbm
316
317
318 ## themes ##
319
320 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
321 dist_clearlooks_theme_DATA= \
322         themes/Clearlooks/openbox-3/themerc
323
324 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
325 dist_clearlooks34_theme_DATA= \
326         themes/Clearlooks-3.4/openbox-3/themerc
327
328 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
329 dist_clearlooksolive_theme_DATA= \
330         themes/Clearlooks-Olive/openbox-3/themerc
331
332 mikachu_themedir = $(themedir)/Mikachu/openbox-3
333 dist_mikachu_theme_DATA= \
334         themes/Mikachu/openbox-3/bullet.xbm \
335         themes/Mikachu/openbox-3/close.xbm \
336         themes/Mikachu/openbox-3/desk.xbm \
337         themes/Mikachu/openbox-3/iconify.xbm \
338         themes/Mikachu/openbox-3/max.xbm \
339         themes/Mikachu/openbox-3/themerc
340
341
342 natura_themedir = $(themedir)/Natura/openbox-3
343 dist_natura_theme_DATA= \
344         themes/Natura/openbox-3/close_hover.xbm \
345         themes/Natura/openbox-3/close.xbm \
346         themes/Natura/openbox-3/desk_toggled.xbm \
347         themes/Natura/openbox-3/desk_hover.xbm \
348         themes/Natura/openbox-3/desk.xbm \
349         themes/Natura/openbox-3/iconify_hover.xbm \
350         themes/Natura/openbox-3/iconify.xbm \
351         themes/Natura/openbox-3/max_hover.xbm \
352         themes/Natura/openbox-3/max_toggled.xbm \
353         themes/Natura/openbox-3/max.xbm \
354         themes/Natura/openbox-3/shade.xbm \
355         themes/Natura/openbox-3/shade_hover.xbm \
356         themes/Natura/openbox-3/themerc
357
358 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
359 dist_artwizboxed_theme_DATA= \
360         themes/Artwiz-boxed/openbox-3/themerc
361
362 bear2_themedir = $(themedir)/Bear2/openbox-3
363 dist_bear2_theme_DATA= \
364         themes/Bear2/openbox-3/close_pressed.xbm \
365         themes/Bear2/openbox-3/close.xbm \
366         themes/Bear2/openbox-3/desk_toggled.xbm \
367         themes/Bear2/openbox-3/desk.xbm \
368         themes/Bear2/openbox-3/iconify_pressed.xbm \
369         themes/Bear2/openbox-3/iconify.xbm \
370         themes/Bear2/openbox-3/max_pressed.xbm \
371         themes/Bear2/openbox-3/max_toggled.xbm \
372         themes/Bear2/openbox-3/max.xbm \
373         themes/Bear2/openbox-3/shade_pressed.xbm \
374         themes/Bear2/openbox-3/shade.xbm \
375         themes/Bear2/openbox-3/themerc
376
377 orang_themedir = $(themedir)/Orang/openbox-3
378 dist_orang_theme_DATA= \
379         themes/Orang/openbox-3/themerc
380
381 onyx_themedir = $(themedir)/Onyx/openbox-3
382 dist_onyx_theme_DATA= \
383         themes/Onyx/openbox-3/themerc
384
385 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
386 dist_onyxcitrus_theme_DATA= \
387         themes/Onyx-Citrus/openbox-3/themerc
388
389 syscrash_themedir = $(themedir)/Syscrash/openbox-3
390 dist_syscrash_theme_DATA= \
391         themes/Syscrash/openbox-3/max_disabled.xbm \
392         themes/Syscrash/openbox-3/max_pressed.xbm \
393         themes/Syscrash/openbox-3/max_toggled.xbm \
394         themes/Syscrash/openbox-3/max.xbm \
395         themes/Syscrash/openbox-3/themerc
396
397 ## public headers ##
398
399 rrpubinclude_HEADERS = \
400         render/color.h \
401         render/font.h \
402         render/geom.h \
403         render/gradient.h \
404         render/image.h \
405         render/instance.h \
406         render/mask.h \
407         render/render.h \
408         render/theme.h \
409         render/version.h
410
411 obtpubinclude_HEADERS = \
412         obt/display.h \
413         obt/keyboard.h \
414         obt/mainloop.h \
415         obt/parse.h \
416         obt/paths.h \
417         obt/prop.h \
418         obt/util.h \
419         obt/version.h \
420         obt/xevent.h
421
422 nodist_pkgconfig_DATA = \
423         render/obrender-4.0.pc \
424         obt/obt-4.0.pc
425
426 ## data ##
427
428 dist_pixmap_DATA = \
429         data/openbox.png
430
431 nodist_rc_DATA = \
432         data/autostart.sh
433
434 dist_rc_DATA = \
435         data/rc.xml \
436         data/menu.xml
437
438 edit = $(SED) \
439         -e 's!@version\@!$(VERSION)!' \
440         -e 's!@configdir\@!$(configdir)!' \
441         -e 's!@secretbindir\@!$(secretbindir)!' \
442         -e 's!@bindir\@!$(bindir)!'
443
444 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
445         @echo make: creating $@
446         @$(edit) $< >$@
447
448 %.desktop: %.desktop.in Makefile
449         @echo make: creating $@
450         @$(edit) $< >$@ 
451
452 %-session: %-session.in Makefile
453         @echo make: creating $@
454         @$(edit) $< >$@ 
455
456 %.1.in: %.1.sgml
457         @echo make: creating $@
458         @docbook-to-man $< >$@
459
460 %.1: %.1.in Makefile
461         @echo make: creating $@
462         @$(edit) $< >$@ 
463
464 dist_gnomewmfiles_DATA = \
465         data/gnome-wm-properties/openbox.desktop
466
467 nodist_xsessions_DATA = \
468         data/xsession/openbox.desktop \
469         data/xsession/openbox-gnome.desktop \
470         data/xsession/openbox-kde.desktop
471
472 dist_noinst_DATA = \
473         data/autostart.sh.in \
474         data/rc.xsd \
475         data/menu.xsd \
476         data/xsession/openbox.desktop.in \
477         data/xsession/openbox-gnome.desktop.in \
478         data/xsession/openbox-kde.desktop.in \
479         data/xsession/openbox-session.in \
480         data/xsession/openbox-gnome-session.in \
481         data/xsession/openbox-kde-session.in \
482         doc/openbox.1.sgml \
483         doc/openbox.1.in \
484         doc/openbox-session.1.sgml \
485         doc/openbox-session.1.in \
486         doc/openbox-gnome-session.1.sgml \
487         doc/openbox-gnome-session.1.in \
488         doc/openbox-kde-session.1.sgml \
489         doc/openbox-kde-session.1.in \
490         render/version.h.in \
491         render/obrender-4.0.pc.in \
492         obt/obt-4.0.pc.in \
493         obt/version.h.in \
494         tools/themeupdate/themeupdate.py \
495         tests/hideshow.py \
496         tests/Makefile \
497         tests/aspect.c \
498         tests/fullscreen.c \
499         tests/grav.c \
500         tests/grouptran.c \
501         tests/icons.c \
502         tests/modal2.c \
503         tests/modal3.c \
504         tests/modal.c \
505         tests/noresize.c \
506         tests/override.c \
507         tests/positioned.c \
508         tests/strut.c \
509         tests/title.c \
510         tests/urgent.c
511
512 dist_doc_DATA = \
513         COMPLIANCE \
514         README \
515         AUTHORS \
516         CHANGELOG \
517         COPYING \
518         data/rc.xsd \
519         data/menu.xsd \
520         doc/rc-mouse-focus.xml
521
522 nodist_man_MANS = \
523         doc/openbox.1 \
524         doc/openbox-session.1 \
525         doc/openbox-gnome-session.1 \
526         doc/openbox-kde-session.1
527
528 EXTRA_DIST = \
529         config.rpath
530
531 # make clean doesn't delete these for some reason, even though they are
532 # built by make
533 CLEANFILES = \
534         doc/openbox.1 \
535         doc/openbox-session.1 \
536         doc/openbox-gnome-session.1 \
537         doc/openbox-kde-session.1 \
538         data/xsession/openbox-session \
539         data/xsession/openbox-gnome-session \
540         data/xsession/openbox-kde-session \
541         data/xsession/openbox.desktop \
542         data/xsession/openbox-gnome.desktop \
543         data/xsession/openbox-kde.desktop
544
545 #doc:
546 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
547
548 distclean-local:
549         for d in . m4 po render parser obt openbox; do \
550                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
551                         rm -f "$$d/$$p"; \
552                 done \
553         done
554
555 .PHONY: doc