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