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