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