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