continuation of r6039 in all respects
[dana/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/themes
4 localedir       = $(datadir)/locale
5 configdir       = $(sysconfdir)/xdg
6 rcdir           = $(configdir)/openbox
7 desktopfilesdir = $(datadir)/gnome/wm-properties
8 pkgconfigdir    = $(libdir)/pkgconfig
9 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
10 pixmapdir       = $(datadir)/pixmaps
11 xsddir          = $(datadir)/openbox
12
13 theme = Clearlooks
14
15 AUTOMAKE_OPTIONS = subdir-objects foreign
16
17 ACLOCAL_AMFLAGS = -I m4
18
19 INCLUDES = -I.
20
21 check_PROGRAMS = \
22         render/rendertest
23
24 lib_LTLIBRARIES = \
25         parser/libobparser.la \
26         render/libobrender.la
27
28 bin_PROGRAMS = \
29         openbox/openbox \
30         tools/gnome-panel-control/gnome-panel-control
31
32 noinst_PROGRAMS = \
33         tools/themetoxml/themetoxml
34
35 ## render ##
36
37 render_rendertest_CPPFLAGS = \
38         $(PANGO_CFLAGS) \
39         $(GLIB_CFLAGS) \
40         -DG_LOG_DOMAIN=\"RenderTest\"
41 render_rendertest_LDADD = \
42         parser/libobparser.la \
43         render/libobrender.la \
44         $(GLIB_LIBS) \
45         $(PANGO_LIBS) \
46         $(XML_LIBS) \
47         $(X_LIBS)
48 render_rendertest_SOURCES = render/test.c
49
50 render_libobrender_la_CPPFLAGS = \
51         $(X_CFLAGS) \
52         $(GLIB_CFLAGS) \
53         $(XML_CFLAGS) \
54         $(PANGO_CFLAGS) \
55         -DG_LOG_DOMAIN=\"ObRender\" \
56         -DDEFAULT_THEME=\"$(theme)\"
57 render_libobrender_la_LDFLAGS = \
58         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
59 render_libobrender_la_LIBADD = \
60         parser/libobparser.la \
61         $(X_LIBS) \
62         $(PANGO_LIBS) \
63         $(GLIB_LIBS) \
64         $(XML_LIBS)
65 render_libobrender_la_SOURCES = \
66         gettext.h \
67         render/color.h \
68         render/color.c \
69         render/font.h \
70         render/font.c \
71         render/geom.h \
72         render/gradient.h \
73         render/gradient.c \
74         render/icon.h \
75         render/image.h \
76         render/image.c \
77         render/instance.h \
78         render/instance.c \
79         render/mask.h \
80         render/mask.c \
81         render/render.h \
82         render/render.c \
83         render/theme.h \
84         render/theme.c
85
86 ## parser ##
87
88 parser_libobparser_la_CPPFLAGS = \
89         $(GLIB_CFLAGS) \
90         $(XML_CFLAGS) \
91         -DG_LOG_DOMAIN=\"ObParser\" \
92         -DLOCALEDIR=\"$(localedir)\" \
93         -DDATADIR=\"$(datadir)\" \
94         -DCONFIGDIR=\"$(configdir)\"
95 parser_libobparser_la_LDFLAGS = \
96         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
97 parser_libobparser_la_LIBADD = \
98         $(GLIB_LIBS) \
99         $(XML_LIBS) 
100 parser_libobparser_la_SOURCES = \
101         parser/parse.h \
102         parser/parse.c
103
104 ## openbox ##
105
106 openbox_openbox_CPPFLAGS = \
107         $(SM_CFLAGS) \
108         $(XINERAMA_CFLAGS) \
109         $(XKB_CFLAGS) \
110         $(XRANDR_CFLAGS) \
111         $(XSHAPE_CFLAGS) \
112         $(XSYNC_CFLAGS) \
113         $(X_CFLAGS) \
114         $(XCURSOR_CFLAGS) \
115         $(SM_CFLAGS) \
116         $(PANGO_CFLAGS) \
117         $(GLIB_CFLAGS) \
118         $(LIBSN_CFLAGS) \
119         $(XML_CFLAGS) \
120         -DLOCALEDIR=\"$(localedir)\" \
121         -DDATADIR=\"$(datadir)\" \
122         -DCONFIGDIR=\"$(configdir)\" \
123         -DG_LOG_DOMAIN=\"Openbox\"
124 openbox_openbox_LDADD = \
125         $(SM_LIBS) \
126         $(XINERAMA_LIBS) \
127         $(XKB_LIBS) \
128         $(XRANDR_LIBS) \
129         $(XSHAPE_LIBS) \
130         $(XSYNC_LIBS) \
131         $(GLIB_LIBS) \
132         $(X_LIBS) \
133         $(XCURSOR_LIBS) \
134         $(LIBSN_LIBS) \
135         $(XML_LIBS) \
136         $(EFENCE_LIBS) \
137         $(LIBINTL) \
138         render/libobrender.la \
139         parser/libobparser.la
140 openbox_openbox_LDFLAGS = -export-dynamic
141 openbox_openbox_SOURCES = \
142         gettext.h \
143         openbox/action.c \
144         openbox/action.h \
145         openbox/client.c \
146         openbox/client.h \
147         openbox/client_list_menu.c \
148         openbox/client_list_menu.h \
149         openbox/client_list_combined_menu.c \
150         openbox/client_list_combined_menu.h \
151         openbox/client_menu.c \
152         openbox/client_menu.h \
153         openbox/config.c \
154         openbox/config.h \
155         openbox/debug.c \
156         openbox/debug.h \
157         openbox/dock.c \
158         openbox/dock.h \
159         openbox/event.c \
160         openbox/event.h \
161         openbox/extensions.c \
162         openbox/extensions.h \
163         openbox/focus.c \
164         openbox/focus.h \
165         openbox/frame.c \
166         openbox/frame.h \
167         openbox/framerender.c \
168         openbox/framerender.h \
169         openbox/geom.h \
170         openbox/grab.c \
171         openbox/grab.h \
172         openbox/group.c \
173         openbox/group.h \
174         openbox/keyboard.c \
175         openbox/keyboard.h \
176         openbox/keytree.c \
177         openbox/keytree.h \
178         openbox/mainloop.c \
179         openbox/mainloop.h \
180         openbox/menuframe.c \
181         openbox/menuframe.h \
182         openbox/menu.c \
183         openbox/menu.h \
184         openbox/misc.h \
185         openbox/modkeys.c \
186         openbox/modkeys.h \
187         openbox/mouse.c \
188         openbox/mouse.h \
189         openbox/moveresize.c \
190         openbox/moveresize.h \
191         openbox/mwm.h \
192         openbox/openbox.c \
193         openbox/openbox.h \
194         openbox/place.c \
195         openbox/place.h \
196         openbox/popup.c \
197         openbox/popup.h \
198         openbox/prop.c \
199         openbox/prop.h \
200         openbox/resist.c \
201         openbox/resist.h \
202         openbox/screen.c \
203         openbox/screen.h \
204         openbox/session.c \
205         openbox/session.h \
206         openbox/stacking.c \
207         openbox/stacking.h \
208         openbox/startupnotify.c \
209         openbox/startupnotify.h \
210         openbox/translate.c \
211         openbox/translate.h \
212         openbox/window.c \
213         openbox/window.h \
214         openbox/xerror.c \
215         openbox/xerror.h
216
217
218 ## themetoxml ##
219
220 tools_themetoxml_themetoxml_CPPFLAGS = \
221         $(X_CFLAGS) \
222         $(GLIB_CFLAGS) \
223         $(XML_CFLAGS)
224 tools_themetoxml_themetoxml_LDADD = \
225         $(X_LIBS) \
226         $(GLIB_LIBS) \
227         $(XML_LIBS)
228 tools_themetoxml_themetoxml_SOURCES = \
229         tools/themetoxml/themetoxml.c \
230         tools/themetoxml/rgb.h
231
232
233 ## gnome-panel-control ##
234
235 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
236         $(X_CFLAGS)
237 tools_gnome_panel_control_gnome_panel_control_LDADD = \
238         $(X_LIBS)
239 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
240         tools/gnome-panel-control/gnome-panel-control.c
241
242
243 ## themes ##
244
245 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
246 dist_clearlooks_theme_DATA= \
247         themes/Clearlooks/openbox-3/bullet.xbm \
248         themes/Clearlooks/openbox-3/close.xbm \
249         themes/Clearlooks/openbox-3/desk_toggled.xbm \
250         themes/Clearlooks/openbox-3/desk.xbm \
251         themes/Clearlooks/openbox-3/iconify.xbm \
252         themes/Clearlooks/openbox-3/max_toggled.xbm \
253         themes/Clearlooks/openbox-3/max.xbm \
254         themes/Clearlooks/openbox-3/themerc.xml
255
256 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
257 dist_clearlooksolive_theme_DATA= \
258         themes/Clearlooks-Olive/openbox-3/bullet.xbm \
259         themes/Clearlooks-Olive/openbox-3/close.xbm \
260         themes/Clearlooks-Olive/openbox-3/desk_toggled.xbm \
261         themes/Clearlooks-Olive/openbox-3/desk.xbm \
262         themes/Clearlooks-Olive/openbox-3/iconify.xbm \
263         themes/Clearlooks-Olive/openbox-3/max_toggled.xbm \
264         themes/Clearlooks-Olive/openbox-3/max.xbm \
265         themes/Clearlooks-Olive/openbox-3/themerc.xml
266
267 mikachu_themedir = $(themedir)/Mikachu/openbox-3
268 dist_mikachu_theme_DATA= \
269         themes/Mikachu/openbox-3/bullet.xbm \
270         themes/Mikachu/openbox-3/close.xbm \
271         themes/Mikachu/openbox-3/desk.xbm \
272         themes/Mikachu/openbox-3/iconify.xbm \
273         themes/Mikachu/openbox-3/max.xbm \
274         themes/Mikachu/openbox-3/themerc.xml
275
276
277 natura_themedir = $(themedir)/Natura/openbox-3
278 dist_natura_theme_DATA= \
279         themes/Natura/openbox-3/close_hover.xbm \
280         themes/Natura/openbox-3/close.xbm \
281         themes/Natura/openbox-3/desk_toggled.xbm \
282         themes/Natura/openbox-3/desk.xbm \
283         themes/Natura/openbox-3/iconify_disabled.xbm \
284         themes/Natura/openbox-3/iconify_hover.xbm \
285         themes/Natura/openbox-3/iconify.xbm \
286         themes/Natura/openbox-3/max_disabled.xbm \
287         themes/Natura/openbox-3/max_hover.xbm \
288         themes/Natura/openbox-3/max_toggled.xbm \
289         themes/Natura/openbox-3/max.xbm \
290         themes/Natura/openbox-3/shade.xbm \
291         themes/Natura/openbox-3/themerc.xml
292
293 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
294 dist_artwizboxed_theme_DATA= \
295         themes/Artwiz-boxed/openbox-3/bullet.xbm \
296         themes/Artwiz-boxed/openbox-3/close.xbm \
297         themes/Artwiz-boxed/openbox-3/desk_toggled.xbm \
298         themes/Artwiz-boxed/openbox-3/desk.xbm \
299         themes/Artwiz-boxed/openbox-3/iconify.xbm \
300         themes/Artwiz-boxed/openbox-3/max_toggled.xbm \
301         themes/Artwiz-boxed/openbox-3/max.xbm \
302         themes/Artwiz-boxed/openbox-3/themerc.xml
303
304 bear2_themedir = $(themedir)/Bear2/openbox-3
305 dist_bear2_theme_DATA= \
306         themes/Bear2/openbox-3/close_pressed.xbm \
307         themes/Bear2/openbox-3/close.xbm \
308         themes/Bear2/openbox-3/desk_toggled.xbm \
309         themes/Bear2/openbox-3/desk.xbm \
310         themes/Bear2/openbox-3/iconify_disabled.xbm \
311         themes/Bear2/openbox-3/iconify_pressed.xbm \
312         themes/Bear2/openbox-3/iconify.xbm \
313         themes/Bear2/openbox-3/max_disabled.xbm \
314         themes/Bear2/openbox-3/max_pressed.xbm \
315         themes/Bear2/openbox-3/max_toggled.xbm \
316         themes/Bear2/openbox-3/max.xbm \
317         themes/Bear2/openbox-3/shade_pressed.xbm \
318         themes/Bear2/openbox-3/shade.xbm \
319         themes/Bear2/openbox-3/themerc.xml
320
321 orang_themedir = $(themedir)/Orang/openbox-3
322 dist_orang_theme_DATA= \
323         themes/Orang/openbox-3/themerc.xml
324
325 syscrash_themedir = $(themedir)/Syscrash/openbox-3
326 dist_syscrash_theme_DATA= \
327         themes/Syscrash/openbox-3/bullet.xbm \
328         themes/Syscrash/openbox-3/close_disabled.xbm \
329         themes/Syscrash/openbox-3/close.xbm \
330         themes/Syscrash/openbox-3/desk_toggled.xbm \
331         themes/Syscrash/openbox-3/desk.xbm \
332         themes/Syscrash/openbox-3/iconify.xbm \
333         themes/Syscrash/openbox-3/max_disabled.xbm \
334         themes/Syscrash/openbox-3/max_pressed.xbm \
335         themes/Syscrash/openbox-3/max_toggled.xbm \
336         themes/Syscrash/openbox-3/max.xbm \
337         themes/Syscrash/openbox-3/shade.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 nodist_rc_DATA = \
367         data/rc.xml \
368         data/menu.xml
369
370 dist_xsd_DATA = \
371         data/rc.xsd \
372         data/menu.xsd
373
374 edit = $(SED) \
375         -e 's!@version\@!$(VERSION)!' \
376         -e 's!@xsddir\@!$(xsddir)!'
377
378 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
379         @echo make: creating $@
380         @rm -f $@
381         @mkdir data 2>/dev/null || true
382         @$(edit) $(srcdir)/data/rc.xml.in >$@
383
384 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
385         @echo make: creating $@
386         @rm -f $@
387         @mkdir data 2>/dev/null || true
388         @$(edit) $(srcdir)/data/menu.xml.in >$@
389
390 dist_desktopfiles_DATA = \
391         data/openbox.desktop
392
393 dist_noinst_DATA = \
394         version.h.in \
395         data/rc.xml.in \
396         data/menu.xml.in \
397         render/obrender-3.0.pc.in \
398         parser/obparser-3.0.pc.in \
399         tools/themeupdate/themeupdate.py \
400         tests/hideshow.py \
401         tests/Makefile \
402         tests/aspect.c \
403         tests/fullscreen.c \
404         tests/grav.c \
405         tests/grouptran.c \
406         tests/icons.c \
407         tests/modal2.c \
408         tests/modal3.c \
409         tests/modal.c \
410         tests/noresize.c \
411         tests/override.c \
412         tests/positioned.c \
413         tests/strut.c \
414         tests/title.c \
415         tests/urgent.c
416
417 EXTRA_DIST = \
418         config.rpath \
419         mkinstalldirs \
420         CHANGELOG \
421         COMPLIANCE \
422         README \
423         COPYING \
424         AUTHORS
425
426 CLEANFILES = \
427         data/rc.xml \
428         data/menu.xml
429
430 #doc:
431 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
432
433 distclean-local:
434         for d in . m4 po render; do \
435                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
436                         rm -f "$$d/$$p"; \
437                 done \
438         done
439
440 .PHONY: doc