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