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