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