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