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