heh. hacking 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/frame.c \
177         openbox/frame.h \
178         openbox/framerender.c \
179         openbox/framerender.h \
180         openbox/geom.h \
181         openbox/grab.c \
182         openbox/grab.h \
183         openbox/group.c \
184         openbox/group.h \
185         openbox/keyboard.c \
186         openbox/keyboard.h \
187         openbox/keytree.c \
188         openbox/keytree.h \
189         openbox/mainloop.c \
190         openbox/mainloop.h \
191         openbox/menuframe.c \
192         openbox/menuframe.h \
193         openbox/menu.c \
194         openbox/menu.h \
195         openbox/misc.h \
196         openbox/modkeys.c \
197         openbox/modkeys.h \
198         openbox/mouse.c \
199         openbox/mouse.h \
200         openbox/moveresize.c \
201         openbox/moveresize.h \
202         openbox/mwm.h \
203         openbox/openbox.c \
204         openbox/openbox.h \
205         openbox/place.c \
206         openbox/place.h \
207         openbox/popup.c \
208         openbox/popup.h \
209         openbox/prop.c \
210         openbox/prop.h \
211         openbox/propwin.c \
212         openbox/propwin.h \
213         openbox/resist.c \
214         openbox/resist.h \
215         openbox/screen.c \
216         openbox/screen.h \
217         openbox/session.c \
218         openbox/session.h \
219         openbox/stacking.c \
220         openbox/stacking.h \
221         openbox/startupnotify.c \
222         openbox/startupnotify.h \
223         openbox/translate.c \
224         openbox/translate.h \
225         openbox/window.c \
226         openbox/window.h \
227         openbox/xerror.c \
228         openbox/xerror.h
229
230
231 ## themetoxml ##
232
233 tools_themetoxml_themetoxml_CPPFLAGS = \
234         $(X_CFLAGS) \
235         $(GLIB_CFLAGS) \
236         $(XML_CFLAGS)
237 tools_themetoxml_themetoxml_LDADD = \
238         $(X_LIBS) \
239         $(GLIB_LIBS) \
240         $(XML_LIBS)
241 tools_themetoxml_themetoxml_SOURCES = \
242         tools/themetoxml/themetoxml.c \
243         tools/themetoxml/rgb.h
244
245
246 ## gnome-panel-control ##
247
248 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
249         $(X_CFLAGS)
250 tools_gnome_panel_control_gnome_panel_control_LDADD = \
251         $(X_LIBS)
252 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
253         tools/gnome-panel-control/gnome-panel-control.c
254
255
256 ## default button masks ##
257 dist_docxbm_DATA = \
258         data/xbm/bullet.xbm \
259         data/xbm/close.xbm \
260         data/xbm/desk_toggled.xbm \
261         data/xbm/desk.xbm \
262         data/xbm/iconify.xbm \
263         data/xbm/max_toggled.xbm \
264         data/xbm/max.xbm \
265         data/xbm/shade_toggled.xbm \
266         data/xbm/shade.xbm
267
268
269 ## themes ##
270
271 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
272 dist_clearlooks_theme_DATA= \
273         themes/Clearlooks/openbox-3/themerc.xml
274
275 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
276 dist_clearlooksolive_theme_DATA= \
277         themes/Clearlooks-Olive/openbox-3/themerc.xml
278
279 mikachu_themedir = $(themedir)/Mikachu/openbox-3
280 dist_mikachu_theme_DATA= \
281         themes/Mikachu/openbox-3/bullet.xbm \
282         themes/Mikachu/openbox-3/close.xbm \
283         themes/Mikachu/openbox-3/desk.xbm \
284         themes/Mikachu/openbox-3/iconify.xbm \
285         themes/Mikachu/openbox-3/max.xbm \
286         themes/Mikachu/openbox-3/themerc.xml
287
288
289 natura_themedir = $(themedir)/Natura/openbox-3
290 dist_natura_theme_DATA= \
291         themes/Natura/openbox-3/close_hover.xbm \
292         themes/Natura/openbox-3/close.xbm \
293         themes/Natura/openbox-3/desk_toggled.xbm \
294         themes/Natura/openbox-3/desk_hover.xbm \
295         themes/Natura/openbox-3/desk.xbm \
296         themes/Natura/openbox-3/iconify_hover.xbm \
297         themes/Natura/openbox-3/iconify.xbm \
298         themes/Natura/openbox-3/max_hover.xbm \
299         themes/Natura/openbox-3/max_toggled.xbm \
300         themes/Natura/openbox-3/max.xbm \
301         themes/Natura/openbox-3/shade.xbm \
302         themes/Natura/openbox-3/shade_hover.xbm \
303         themes/Natura/openbox-3/themerc.xml
304
305 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
306 dist_artwizboxed_theme_DATA= \
307         themes/Artwiz-boxed/openbox-3/themerc.xml
308
309 bear2_themedir = $(themedir)/Bear2/openbox-3
310 dist_bear2_theme_DATA= \
311         themes/Bear2/openbox-3/close_pressed.xbm \
312         themes/Bear2/openbox-3/close.xbm \
313         themes/Bear2/openbox-3/desk_toggled.xbm \
314         themes/Bear2/openbox-3/desk.xbm \
315         themes/Bear2/openbox-3/iconify_pressed.xbm \
316         themes/Bear2/openbox-3/iconify.xbm \
317         themes/Bear2/openbox-3/max_pressed.xbm \
318         themes/Bear2/openbox-3/max_toggled.xbm \
319         themes/Bear2/openbox-3/max.xbm \
320         themes/Bear2/openbox-3/shade_pressed.xbm \
321         themes/Bear2/openbox-3/shade.xbm \
322         themes/Bear2/openbox-3/themerc.xml
323
324 orang_themedir = $(themedir)/Orang/openbox-3
325 dist_orang_theme_DATA= \
326         themes/Orang/openbox-3/themerc.xml
327
328 syscrash_themedir = $(themedir)/Syscrash/openbox-3
329 dist_syscrash_theme_DATA= \
330         themes/Syscrash/openbox-3/max_disabled.xbm \
331         themes/Syscrash/openbox-3/max_pressed.xbm \
332         themes/Syscrash/openbox-3/max_toggled.xbm \
333         themes/Syscrash/openbox-3/max.xbm \
334         themes/Syscrash/openbox-3/themerc.xml
335
336 ## public headers ##
337
338 pubinclude_HEADERS = \
339         render/color.h \
340         render/font.h \
341         render/geom.h \
342         render/gradient.h \
343         render/image.h \
344         render/instance.h \
345         render/mask.h \
346         render/render.h \
347         render/theme.h \
348         parser/parse.h
349
350 nodist_pubinclude_HEADERS = \
351         version.h
352
353 nodist_pkgconfig_DATA = \
354         render/obrender-3.0.pc \
355         parser/obparser-3.0.pc
356
357 ## data ##
358
359 dist_pixmap_DATA = \
360         data/openbox.png
361
362 dist_rc_DATA = \
363         data/autostart.sh \
364         data/rc.xml \
365         data/menu.xml
366
367 edit = $(SED) \
368         -e 's!@version\@!$(VERSION)!' \
369         -e 's!@configdir\@!$(configdir)!' \
370         -e 's!@bindir\@!$(bindir)!'
371
372 data/xsession/openbox-gnome.desktop: \
373                 $(srcdir)/data/xsession/openbox-gnome.desktop.in
374         @echo make: creating $@
375         @mkdir data 2>/dev/null || true
376         @mkdir data/xsession 2>/dev/null || true
377         @$(edit) $< >$@
378
379 data/xsession/openbox-kde.desktop: \
380                 $(srcdir)/data/xsession/openbox-kde.desktop.in
381         @echo make: creating $@
382         @mkdir data 2>/dev/null || true
383         @mkdir data/xsession 2>/dev/null || true
384         @$(edit) $< >$@
385
386 data/xsession/openbox.desktop: \
387                 $(srcdir)/data/xsession/openbox.desktop.in
388         @echo make: creating $@
389         @mkdir data 2>/dev/null || true
390         @mkdir data/xsession 2>/dev/null || true
391         @$(edit) $< >$@
392
393 data/xsession/openbox-gnome-session: \
394                 $(srcdir)/data/xsession/openbox-gnome-session.in
395         @echo make: creating $@
396         @mkdir data 2>/dev/null || true
397         @mkdir data/xsession 2>/dev/null || true
398         @$(edit) $< >$@
399         @chmod a+x $@
400
401 data/xsession/openbox-kde-session: \
402                 $(srcdir)/data/xsession/openbox-kde-session.in
403         @echo make: creating $@
404         @mkdir data 2>/dev/null || true
405         @mkdir data/xsession 2>/dev/null || true
406         @$(edit) $< >$@
407         @chmod a+x $@
408
409 data/xsession/openbox-session: \
410                 $(srcdir)/data/xsession/openbox-session.in
411         @echo make: creating $@
412         @mkdir data 2>/dev/null || true
413         @mkdir data/xsession 2>/dev/null || true
414         @$(edit) $< >$@
415         @chmod a+x $@
416
417 doc/openbox.1: $(srcdir)/doc/openbox.1.sgml
418         @echo make: creating $@
419         @mkdir doc 2>/dev/null || true
420         @$(edit) $< | docbook-to-man - >$@
421
422 doc/openbox-session.1: $(srcdir)/doc/openbox-session.1.sgml
423         @echo make: creating $@
424         @mkdir doc 2>/dev/null || true
425         @$(edit) $< | docbook-to-man - >$@
426
427 doc/openbox-gnome-session.1: $(srcdir)/doc/openbox-gnome-session.1.sgml
428         @echo make: creating $@
429         @mkdir doc 2>/dev/null || true
430         @$(edit) $< | docbook-to-man - >$@
431
432 doc/openbox-kde-session.1: $(srcdir)/doc/openbox-kde-session.1.sgml
433         @echo make: creating $@
434         @mkdir doc 2>/dev/null || true
435         @$(edit) $< | docbook-to-man - >$@
436
437 dist_gnomewmfiles_DATA = \
438         data/gnome-wm-properties/openbox.desktop
439
440 nodist_xsessions_DATA = \
441         data/xsession/openbox.desktop \
442         data/xsession/openbox-gnome.desktop \
443         data/xsession/openbox-kde.desktop
444
445 dist_noinst_DATA = \
446         version.h.in \
447         data/rc.xsd \
448         data/menu.xsd \
449         data/themerc.xsd \
450         data/xsession/openbox.desktop.in \
451         data/xsession/openbox-gnome.desktop.in \
452         data/xsession/openbox-kde.desktop.in \
453         data/xsession/openbox-session.in \
454         data/xsession/openbox-gnome-session.in \
455         data/xsession/openbox-kde-session.in \
456         doc/openbox.1.sgml \
457         doc/openbox-session.1.sgml \
458         doc/openbox-gnome-session.1.sgml \
459         doc/openbox-kde-session.1.sgml \
460         render/obrender-3.0.pc.in \
461         parser/obparser-3.0.pc.in \
462         tools/themeupdate/themeupdate.py \
463         tests/hideshow.py \
464         tests/Makefile \
465         tests/aspect.c \
466         tests/fullscreen.c \
467         tests/grav.c \
468         tests/grouptran.c \
469         tests/icons.c \
470         tests/modal2.c \
471         tests/modal3.c \
472         tests/modal.c \
473         tests/noresize.c \
474         tests/override.c \
475         tests/positioned.c \
476         tests/strut.c \
477         tests/title.c \
478         tests/urgent.c
479
480 dist_doc_DATA = \
481         COMPLIANCE \
482         README \
483         AUTHORS \
484         CHANGELOG \
485         COPYING \
486         data/rc.xsd \
487         data/menu.xsd \
488         data/themerc.xsd \
489         doc/rc-mouse-focus.xml
490
491 dist_man_MANS = \
492         doc/openbox.1 \
493         doc/openbox-session.1 \
494         doc/openbox-gnome-session.1 \
495         doc/openbox-kde-session.1
496
497 EXTRA_DIST = \
498         debian/changelog.in \
499         debian/compat \
500         debian/conffiles \
501         debian/control \
502         debian/copyright \
503         debian/menu \
504         debian/postinst \
505         debian/postrm \
506         debian/rules \
507         config.rpath \
508         mkinstalldirs
509
510 #doc:
511 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
512
513 distclean-local:
514         for d in . m4 po render; do \
515                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
516                         rm -f "$$d/$$p"; \
517                 done \
518         done
519
520 .PHONY: doc