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