]> icculus.org git repositories - dana/openbox.git/blob - Makefile.am
don't make windows owned by a screen, make them globally owned so they have a more...
[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@/render
13 pixmapdir       = $(datadir)/pixmaps
14 xsddir          = $(datadir)/openbox
15
16 theme = Clearlooks
17
18 AUTOMAKE_OPTIONS = subdir-objects foreign
19
20 ACLOCAL_AMFLAGS = -I m4
21
22 INCLUDES = -I.
23
24 check_PROGRAMS = \
25         render/rendertest
26
27 lib_LTLIBRARIES = \
28         render/libobrender.la \
29         obt/libobt.la \
30         loco/liboco.la
31
32 bin_PROGRAMS = \
33         openbox/openbox \
34         tools/gnome-panel-control/gnome-panel-control
35
36 nodist_bin_SCRIPTS = \
37         data/xsession/openbox-session \
38         data/xsession/openbox-gnome-session \
39         data/xsession/openbox-kde-session
40
41 ## render ##
42
43 render_rendertest_CPPFLAGS = \
44         $(PANGO_CFLAGS) \
45         $(XFT_CFLAGS) \
46         $(GLIB_CFLAGS) \
47         -DG_LOG_DOMAIN=\"RenderTest\"
48 render_rendertest_LDADD = \
49         obt/libobt.la \
50         render/libobrender.la \
51         $(GLIB_LIBS) \
52         $(PANGO_LIBS) \
53         $(XFT_LIBS) \
54         $(XML_LIBS) \
55         $(X_LIBS)
56 render_rendertest_SOURCES = render/test.c
57
58 render_libobrender_la_CPPFLAGS = \
59         $(X_CFLAGS) \
60         $(GLIB_CFLAGS) \
61         $(XML_CFLAGS) \
62         $(PANGO_CFLAGS) \
63         $(XFT_CFLAGS) \
64         -DG_LOG_DOMAIN=\"ObRender\" \
65         -DDEFAULT_THEME=\"$(theme)\"
66 render_libobrender_la_LDFLAGS = \
67         -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
68 render_libobrender_la_LIBADD = \
69         obt/libobt.la \
70         $(X_LIBS) \
71         $(PANGO_LIBS) \
72         $(XFT_LIBS) \
73         $(GLIB_LIBS) \
74         $(XML_LIBS)
75 render_libobrender_la_SOURCES = \
76         gettext.h \
77         render/color.h \
78         render/color.c \
79         render/font.h \
80         render/font.c \
81         render/geom.h \
82         render/gradient.h \
83         render/gradient.c \
84         render/icon.h \
85         render/image.h \
86         render/image.c \
87         render/instance.h \
88         render/instance.c \
89         render/mask.h \
90         render/mask.c \
91         render/render.h \
92         render/render.c \
93         render/theme.h \
94         render/theme.c
95
96 ## obt ##
97
98 obt_libobt_la_CPPFLAGS = \
99         $(XINERAMA_CFLAGS) \
100         $(XKB_CFLAGS) \
101         $(XRANDR_CFLAGS) \
102         $(XSHAPE_CFLAGS) \
103         $(XSYNC_CFLAGS) \
104         $(XRENDER_CFLAGS) \
105         $(XDAMAGE_CFLAGS) \
106         $(XCOMPOSITE_CFLAGS) \
107         $(GLIB_CFLAGS) \
108         $(XML_CFLAGS) \
109         -DG_LOG_DOMAIN=\"Obt\" \
110         -DLOCALEDIR=\"$(localedir)\" \
111         -DDATADIR=\"$(datadir)\" \
112         -DCONFIGDIR=\"$(configdir)\"
113 obt_libobt_la_LDFLAGS = \
114         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
115 obt_libobt_la_LIBADD = \
116         $(XINERAMA_LIBS) \
117         $(XKB_LIBS) \
118         $(XRANDR_LIBS) \
119         $(XSHAPE_LIBS) \
120         $(XSYNC_LIBS) \
121         $(XRENDER_LIBS) \
122         $(XDAMAGE_LIBS) \
123         $(XCOMPOSITE_LIBS) \
124         $(GLIB_LIBS) \
125         $(XML_LIBS)
126 obt_libobt_la_SOURCES = \
127         obt/display.h \
128         obt/display.c \
129         obt/internal.h \
130         obt/keyboard.h \
131         obt/keyboard.c \
132         obt/mainloop.h \
133         obt/mainloop.c \
134         obt/parse.h \
135         obt/parse.c \
136         obt/paths.h \
137         obt/paths.c \
138         obt/prop.h \
139         obt/prop.c \
140         obt/util.h \
141         obt/xevent.h \
142         obt/xevent.c
143
144 ## loco ##
145
146 loco_liboco_la_CPPFLAGS = \
147         $(GL_CFLAGS) \
148         $(XSHAPE_CFLAGS) \
149         $(XRENDER_CFLAGS) \
150         $(XDAMAGE_CFLAGS) \
151         $(XCOMPOSITE_CFLAGS) \
152         $(GLIB_CFLAGS) \
153         -DG_LOG_DOMAIN=\"Loco\" \
154         -DLOCALEDIR=\"$(localedir)\" \
155         -DDATADIR=\"$(datadir)\" \
156         -DCONFIGDIR=\"$(configdir)\"
157 loco_liboco_la_LDFLAGS = \
158         -version-info $(LOCO_CURRENT):$(LOCO_REVISION):$(LOCO_AGE)
159 loco_liboco_la_LIBADD = \
160         $(GL_LIBS) \
161         $(XSHAPE_LIBS) \
162         $(XRENDER_LIBS) \
163         $(XDAMAGE_LIBS) \
164         $(XCOMPOSITE_LIBS) \
165         $(GLIB_LIBS)
166 loco_liboco_la_SOURCES = \
167         loco/list.c \
168         loco/list.h \
169         loco/loco.c \
170         loco/loco.h \
171         loco/paint.c \
172         loco/paint.h \
173         loco/screen.c \
174         loco/screen.h \
175         loco/window.c \
176         loco/window.h
177
178 ## openbox ##
179
180 openbox_openbox_CPPFLAGS = \
181         $(SM_CFLAGS) \
182         $(X_CFLAGS) \
183         $(XCURSOR_CFLAGS) \
184         $(SM_CFLAGS) \
185         $(PANGO_CFLAGS) \
186         $(GLIB_CFLAGS) \
187         $(LIBSN_CFLAGS) \
188         $(XML_CFLAGS) \
189         -DLOCALEDIR=\"$(localedir)\" \
190         -DDATADIR=\"$(datadir)\" \
191         -DCONFIGDIR=\"$(configdir)\" \
192         -DG_LOG_DOMAIN=\"Openbox\"
193 openbox_openbox_LDADD = \
194         $(SM_LIBS) \
195         $(GLIB_LIBS) \
196         $(X_LIBS) \
197         $(XCURSOR_LIBS) \
198         $(LIBSN_LIBS) \
199         $(XML_LIBS) \
200         $(EFENCE_LIBS) \
201         $(LIBINTL) \
202         render/libobrender.la \
203         obt/libobt.la \
204         loco/liboco.la
205 openbox_openbox_LDFLAGS = -export-dynamic
206 openbox_openbox_SOURCES = \
207         gettext.h \
208         openbox/actions/all.c \
209         openbox/actions/all.h \
210         openbox/actions/addremovedesktop.c \
211         openbox/actions/breakchroot.c \
212         openbox/actions/close.c \
213         openbox/actions/cyclewindows.c \
214         openbox/actions/debug.c \
215         openbox/actions/decorations.c \
216         openbox/actions/desktop.c \
217         openbox/actions/dockautohide.c \
218         openbox/actions/directionalwindows.c \
219         openbox/actions/execute.c \
220         openbox/actions/exit.c \
221         openbox/actions/focus.c \
222         openbox/actions/focustobottom.c \
223         openbox/actions/fullscreen.c \
224         openbox/actions/growtoedge.c \
225         openbox/actions/iconify.c \
226         openbox/actions/if.c \
227         openbox/actions/kill.c \
228         openbox/actions/layer.c \
229         openbox/actions/lower.c \
230         openbox/actions/maximize.c \
231         openbox/actions/move.c \
232         openbox/actions/moverelative.c \
233         openbox/actions/moveresizeto.c \
234         openbox/actions/movetoedge.c \
235         openbox/actions/omnipresent.c \
236         openbox/actions/raise.c \
237         openbox/actions/raiselower.c \
238         openbox/actions/reconfigure.c \
239         openbox/actions/resize.c \
240         openbox/actions/resizerelative.c \
241         openbox/actions/restart.c \
242         openbox/actions/shade.c \
243         openbox/actions/showdesktop.c \
244         openbox/actions/showmenu.c \
245         openbox/actions/unfocus.c \
246         openbox/actions.c \
247         openbox/actions.h \
248         openbox/client.c \
249         openbox/client.h \
250         openbox/client_list_menu.c \
251         openbox/client_list_menu.h \
252         openbox/client_list_combined_menu.c \
253         openbox/client_list_combined_menu.h \
254         openbox/client_menu.c \
255         openbox/client_menu.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/popup.c \
302         openbox/popup.h \
303         openbox/resist.c \
304         openbox/resist.h \
305         openbox/screen.c \
306         openbox/screen.h \
307         openbox/session.c \
308         openbox/session.h \
309         openbox/stacking.c \
310         openbox/stacking.h \
311         openbox/startupnotify.c \
312         openbox/startupnotify.h \
313         openbox/translate.c \
314         openbox/translate.h \
315         openbox/window.c \
316         openbox/window.h
317
318 ## gnome-panel-control ##
319
320 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
321         $(X_CFLAGS)
322 tools_gnome_panel_control_gnome_panel_control_LDADD = \
323         $(X_LIBS)
324 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
325         tools/gnome-panel-control/gnome-panel-control.c
326
327
328 ## default button masks ##
329 dist_docxbm_DATA = \
330         data/xbm/bullet.xbm \
331         data/xbm/close.xbm \
332         data/xbm/desk_toggled.xbm \
333         data/xbm/desk.xbm \
334         data/xbm/iconify.xbm \
335         data/xbm/max_toggled.xbm \
336         data/xbm/max.xbm \
337         data/xbm/shade_toggled.xbm \
338         data/xbm/shade.xbm
339
340
341 ## themes ##
342
343 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
344 dist_clearlooks_theme_DATA= \
345         themes/Clearlooks/openbox-3/themerc
346
347 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
348 dist_clearlooks34_theme_DATA= \
349         themes/Clearlooks-3.4/openbox-3/themerc
350
351 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
352 dist_clearlooksolive_theme_DATA= \
353         themes/Clearlooks-Olive/openbox-3/themerc
354
355 mikachu_themedir = $(themedir)/Mikachu/openbox-3
356 dist_mikachu_theme_DATA= \
357         themes/Mikachu/openbox-3/bullet.xbm \
358         themes/Mikachu/openbox-3/close.xbm \
359         themes/Mikachu/openbox-3/desk.xbm \
360         themes/Mikachu/openbox-3/iconify.xbm \
361         themes/Mikachu/openbox-3/max.xbm \
362         themes/Mikachu/openbox-3/themerc
363
364
365 natura_themedir = $(themedir)/Natura/openbox-3
366 dist_natura_theme_DATA= \
367         themes/Natura/openbox-3/close_hover.xbm \
368         themes/Natura/openbox-3/close.xbm \
369         themes/Natura/openbox-3/desk_toggled.xbm \
370         themes/Natura/openbox-3/desk_hover.xbm \
371         themes/Natura/openbox-3/desk.xbm \
372         themes/Natura/openbox-3/iconify_hover.xbm \
373         themes/Natura/openbox-3/iconify.xbm \
374         themes/Natura/openbox-3/max_hover.xbm \
375         themes/Natura/openbox-3/max_toggled.xbm \
376         themes/Natura/openbox-3/max.xbm \
377         themes/Natura/openbox-3/shade.xbm \
378         themes/Natura/openbox-3/shade_hover.xbm \
379         themes/Natura/openbox-3/themerc
380
381 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
382 dist_artwizboxed_theme_DATA= \
383         themes/Artwiz-boxed/openbox-3/themerc
384
385 bear2_themedir = $(themedir)/Bear2/openbox-3
386 dist_bear2_theme_DATA= \
387         themes/Bear2/openbox-3/close_pressed.xbm \
388         themes/Bear2/openbox-3/close.xbm \
389         themes/Bear2/openbox-3/desk_toggled.xbm \
390         themes/Bear2/openbox-3/desk.xbm \
391         themes/Bear2/openbox-3/iconify_pressed.xbm \
392         themes/Bear2/openbox-3/iconify.xbm \
393         themes/Bear2/openbox-3/max_pressed.xbm \
394         themes/Bear2/openbox-3/max_toggled.xbm \
395         themes/Bear2/openbox-3/max.xbm \
396         themes/Bear2/openbox-3/shade_pressed.xbm \
397         themes/Bear2/openbox-3/shade.xbm \
398         themes/Bear2/openbox-3/themerc
399
400 orang_themedir = $(themedir)/Orang/openbox-3
401 dist_orang_theme_DATA= \
402         themes/Orang/openbox-3/themerc
403
404 onyx_themedir = $(themedir)/Onyx/openbox-3
405 dist_onyx_theme_DATA= \
406         themes/Onyx/openbox-3/themerc
407
408 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
409 dist_onyxcitrus_theme_DATA= \
410         themes/Onyx-Citrus/openbox-3/themerc
411
412 syscrash_themedir = $(themedir)/Syscrash/openbox-3
413 dist_syscrash_theme_DATA= \
414         themes/Syscrash/openbox-3/max_disabled.xbm \
415         themes/Syscrash/openbox-3/max_pressed.xbm \
416         themes/Syscrash/openbox-3/max_toggled.xbm \
417         themes/Syscrash/openbox-3/max.xbm \
418         themes/Syscrash/openbox-3/themerc
419
420 ## public headers ##
421
422 rrpubinclude_HEADERS = \
423         render/color.h \
424         render/font.h \
425         render/geom.h \
426         render/gradient.h \
427         render/image.h \
428         render/instance.h \
429         render/mask.h \
430         render/render.h \
431         render/theme.h \
432         render/version.h
433
434 obtpubinclude_HEADERS = \
435         obt/display.h \
436         obt/keyboard.h \
437         obt/mainloop.h \
438         obt/parse.h \
439         obt/paths.h \
440         obt/prop.h \
441         obt/util.h \
442         obt/version.h \
443         obt/xevent.h
444
445 nodist_pkgconfig_DATA = \
446         render/obrender-4.0.pc \
447         obt/obt-4.0.pc \
448         loco/loco-4.0.pc
449
450 ## data ##
451
452 dist_pixmap_DATA = \
453         data/openbox.png
454
455 dist_rc_DATA = \
456         data/autostart.sh \
457         data/rc.xml \
458         data/menu.xml
459
460 edit = $(SED) \
461         -e 's!@version\@!$(VERSION)!' \
462         -e 's!@configdir\@!$(configdir)!' \
463         -e 's!@bindir\@!$(bindir)!'
464
465 %.desktop: %.desktop.in Makefile
466         @echo make: creating $@
467         @$(edit) $< >$@ 
468
469 %-session: %-session.in Makefile
470         @echo make: creating $@
471         @$(edit) $< >$@ 
472
473 %.1.in: %.1.sgml
474         @echo make: creating $@
475         @docbook-to-man $< >$@
476
477 %.1: %.1.in Makefile
478         @echo make: creating $@
479         @$(edit) $< >$@ 
480
481 dist_gnomewmfiles_DATA = \
482         data/gnome-wm-properties/openbox.desktop
483
484 nodist_xsessions_DATA = \
485         data/xsession/openbox.desktop \
486         data/xsession/openbox-gnome.desktop \
487         data/xsession/openbox-kde.desktop
488
489 dist_noinst_DATA = \
490         data/rc.xsd \
491         data/menu.xsd \
492         data/xsession/openbox.desktop.in \
493         data/xsession/openbox-gnome.desktop.in \
494         data/xsession/openbox-kde.desktop.in \
495         data/xsession/openbox-session.in \
496         data/xsession/openbox-gnome-session.in \
497         data/xsession/openbox-kde-session.in \
498         doc/openbox.1.sgml \
499         doc/openbox.1.in \
500         doc/openbox-session.1.sgml \
501         doc/openbox-session.1.in \
502         doc/openbox-gnome-session.1.sgml \
503         doc/openbox-gnome-session.1.in \
504         doc/openbox-kde-session.1.sgml \
505         doc/openbox-kde-session.1.in \
506         render/version.h.in \
507         render/obrender-4.0.pc.in \
508         obt/obt-4.0.pc.in \
509         obt/version.h.in \
510         tools/themeupdate/themeupdate.py \
511         tests/hideshow.py \
512         tests/Makefile \
513         tests/aspect.c \
514         tests/fullscreen.c \
515         tests/grav.c \
516         tests/grouptran.c \
517         tests/icons.c \
518         tests/modal2.c \
519         tests/modal3.c \
520         tests/modal.c \
521         tests/noresize.c \
522         tests/override.c \
523         tests/positioned.c \
524         tests/strut.c \
525         tests/title.c \
526         tests/urgent.c
527
528 dist_doc_DATA = \
529         COMPLIANCE \
530         README \
531         AUTHORS \
532         CHANGELOG \
533         COPYING \
534         data/rc.xsd \
535         data/menu.xsd \
536         doc/rc-mouse-focus.xml
537
538 nodist_man_MANS = \
539         doc/openbox.1 \
540         doc/openbox-session.1 \
541         doc/openbox-gnome-session.1 \
542         doc/openbox-kde-session.1
543
544 EXTRA_DIST = \
545         config.rpath
546
547 # make clean doesn't delete these for some reason, even though they are
548 # built by make
549 CLEANFILES = \
550         doc/openbox.1 \
551         doc/openbox-session.1 \
552         doc/openbox-gnome-session.1 \
553         doc/openbox-kde-session.1 \
554         data/xsession/openbox-session \
555         data/xsession/openbox-gnome-session \
556         data/xsession/openbox-kde-session \
557         data/xsession/openbox.desktop \
558         data/xsession/openbox-gnome.desktop \
559         data/xsession/openbox-kde.desktop
560
561 #doc:
562 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
563
564 distclean-local:
565         for d in . m4 po render parser obt openbox; do \
566                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
567                         rm -f "$$d/$$p"; \
568                 done \
569         done
570
571 .PHONY: doc