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