]> icculus.org git repositories - mikachu/openbox.git/blob - Makefile.am
merge r5746 from trunk
[mikachu/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 = bear2
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 ## render ##
33
34 render_rendertest_CPPFLAGS = \
35         $(PANGO_CFLAGS) \
36         $(GLIB_CFLAGS) \
37         -DG_LOG_DOMAIN=\"RenderTest\"
38 render_rendertest_LDADD = \
39         parser/libobparser.la \
40         render/libobrender.la \
41         $(GLIB_LIBS) \
42         $(PANGO_LIBS) \
43         $(XML_LIBS) \
44         $(X_LIBS)
45 render_rendertest_SOURCES = render/test.c
46
47 render_libobrender_la_CPPFLAGS = \
48         $(X_CFLAGS) \
49         $(GLIB_CFLAGS) \
50         $(XML_CFLAGS) \
51         $(PANGO_CFLAGS) \
52         -DG_LOG_DOMAIN=\"ObRender\" \
53         -DDEFAULT_THEME=\"$(theme)\"
54 render_libobrender_la_LDFLAGS = \
55         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
56 render_libobrender_la_LIBADD = \
57         parser/libobparser.la \
58         $(X_LIBS) \
59         $(PANGO_LIBS) \
60         $(GLIB_LIBS) \
61         $(XML_LIBS)
62 render_libobrender_la_SOURCES = \
63         gettext.h \
64         render/color.h \
65         render/color.c \
66         render/font.h \
67         render/font.c \
68         render/geom.h \
69         render/gradient.h \
70         render/gradient.c \
71         render/icon.h \
72         render/image.h \
73         render/image.c \
74         render/instance.h \
75         render/instance.c \
76         render/mask.h \
77         render/mask.c \
78         render/render.h \
79         render/render.c \
80         render/theme.h \
81         render/theme.c
82
83 ## parser ##
84
85 parser_libobparser_la_CPPFLAGS = \
86         $(GLIB_CFLAGS) \
87         $(XML_CFLAGS) \
88         -DG_LOG_DOMAIN=\"ObParser\" \
89         -DLOCALEDIR=\"$(localedir)\" \
90         -DDATADIR=\"$(datadir)\" \
91         -DCONFIGDIR=\"$(configdir)\"
92 parser_libobparser_la_LDFLAGS = \
93         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
94 parser_libobparser_la_LIBADD = \
95         $(GLIB_LIBS) \
96         $(XML_LIBS) 
97 parser_libobparser_la_SOURCES = \
98         parser/parse.h \
99         parser/parse.c
100
101 ## openbox ##
102
103 openbox_openbox_CPPFLAGS = \
104         $(X_CFLAGS) \
105         $(XCURSOR_CFLAGS) \
106         $(SM_CFLAGS) \
107         $(PANGO_CFLAGS) \
108         $(GLIB_CFLAGS) \
109         $(LIBSN_CFLAGS) \
110         $(XML_CFLAGS) \
111         -DLOCALEDIR=\"$(localedir)\" \
112         -DDATADIR=\"$(datadir)\" \
113         -DCONFIGDIR=\"$(configdir)\" \
114         -DG_LOG_DOMAIN=\"Openbox\"
115 openbox_openbox_LDADD = \
116         $(SM_LIBS) \
117         $(XINERAMA_LIBS) \
118         $(XKB_LIBS) \
119         $(XRANDR_LIBS) \
120         $(XSHAPE_LIBS) \
121         $(GLIB_LIBS) \
122         $(X_LIBS) \
123         $(XCURSOR_LIBS) \
124         $(LIBSN_LIBS) \
125         $(XML_LIBS) \
126         $(EFENCE_LIBS) \
127         $(LIBINTL) \
128         render/libobrender.la \
129         parser/libobparser.la
130 openbox_openbox_LDFLAGS = -export-dynamic
131 openbox_openbox_SOURCES = \
132         gettext.h \
133         openbox/action.c \
134         openbox/action.h \
135         openbox/client.c \
136         openbox/client.h \
137         openbox/client_list_menu.c \
138         openbox/client_list_menu.h \
139         openbox/client_list_combined_menu.c \
140         openbox/client_list_combined_menu.h \
141         openbox/client_menu.c \
142         openbox/client_menu.h \
143         openbox/config.c \
144         openbox/config.h \
145         openbox/debug.c \
146         openbox/debug.h \
147         openbox/dock.c \
148         openbox/dock.h \
149         openbox/event.c \
150         openbox/event.h \
151         openbox/extensions.c \
152         openbox/extensions.h \
153         openbox/focus.c \
154         openbox/focus.h \
155         openbox/frame.c \
156         openbox/frame.h \
157         openbox/framerender.c \
158         openbox/framerender.h \
159         openbox/geom.h \
160         openbox/grab.c \
161         openbox/grab.h \
162         openbox/group.c \
163         openbox/group.h \
164         openbox/keyboard.c \
165         openbox/keyboard.h \
166         openbox/keytree.c \
167         openbox/keytree.h \
168         openbox/mainloop.c \
169         openbox/mainloop.h \
170         openbox/menuframe.c \
171         openbox/menuframe.h \
172         openbox/menu.c \
173         openbox/menu.h \
174         openbox/misc.h \
175         openbox/mouse.c \
176         openbox/mouse.h \
177         openbox/moveresize.c \
178         openbox/moveresize.h \
179         openbox/mwm.h \
180         openbox/openbox.c \
181         openbox/openbox.h \
182         openbox/place.c \
183         openbox/place.h \
184         openbox/popup.c \
185         openbox/popup.h \
186         openbox/prop.c \
187         openbox/prop.h \
188         openbox/resist.c \
189         openbox/resist.h \
190         openbox/screen.c \
191         openbox/screen.h \
192         openbox/session.c \
193         openbox/session.h \
194         openbox/stacking.c \
195         openbox/stacking.h \
196         openbox/startupnotify.c \
197         openbox/startupnotify.h \
198         openbox/translate.c \
199         openbox/translate.h \
200         openbox/window.c \
201         openbox/window.h \
202         openbox/xerror.c \
203         openbox/xerror.h
204
205
206 ## gnome-panel-control ##
207
208 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
209         $(X_CFLAGS)
210 tools_gnome_panel_control_gnome_panel_control_LDADD = \
211         $(X_LIBS)
212 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
213         tools/gnome-panel-control/gnome-panel-control.c
214
215
216 ## themes ##
217
218 mikachu_themedir = $(themedir)/Mikachu/openbox-3
219 dist_mikachu_theme_DATA= \
220         themes/Mikachu/openbox-3/bullet.xbm \
221         themes/Mikachu/openbox-3/close.xbm \
222         themes/Mikachu/openbox-3/desk.xbm \
223         themes/Mikachu/openbox-3/iconify.xbm \
224         themes/Mikachu/openbox-3/max.xbm \
225         themes/Mikachu/openbox-3/themerc
226
227
228 natura_themedir = $(themedir)/Natura/openbox-3
229 dist_natura_theme_DATA= \
230         themes/Natura/openbox-3/close_hover.xbm \
231         themes/Natura/openbox-3/close.xbm \
232         themes/Natura/openbox-3/desk_toggled.xbm \
233         themes/Natura/openbox-3/desk.xbm \
234         themes/Natura/openbox-3/iconify_disabled.xbm \
235         themes/Natura/openbox-3/iconify_hover.xbm \
236         themes/Natura/openbox-3/iconify.xbm \
237         themes/Natura/openbox-3/max_disabled.xbm \
238         themes/Natura/openbox-3/max_hover.xbm \
239         themes/Natura/openbox-3/max_toggled.xbm \
240         themes/Natura/openbox-3/max.xbm \
241         themes/Natura/openbox-3/shade.xbm \
242         themes/Natura/openbox-3/themerc
243
244 artwizboxed_themedir = $(themedir)/artwiz-boxed/openbox-3
245 dist_artwizboxed_theme_DATA= \
246         themes/artwiz-boxed/openbox-3/bullet.xbm \
247         themes/artwiz-boxed/openbox-3/close.xbm \
248         themes/artwiz-boxed/openbox-3/desk_toggled.xbm \
249         themes/artwiz-boxed/openbox-3/desk.xbm \
250         themes/artwiz-boxed/openbox-3/iconify.xbm \
251         themes/artwiz-boxed/openbox-3/max_toggled.xbm \
252         themes/artwiz-boxed/openbox-3/max.xbm \
253         themes/artwiz-boxed/openbox-3/themerc
254  
255 bear2_themedir = $(themedir)/bear2/openbox-3
256 dist_bear2_theme_DATA= \
257         themes/bear2/openbox-3/close_pressed.xbm \
258         themes/bear2/openbox-3/close.xbm \
259         themes/bear2/openbox-3/desk_toggled.xbm \
260         themes/bear2/openbox-3/desk.xbm \
261         themes/bear2/openbox-3/iconify_disabled.xbm \
262         themes/bear2/openbox-3/iconify_pressed.xbm \
263         themes/bear2/openbox-3/iconify.xbm \
264         themes/bear2/openbox-3/max_disabled.xbm \
265         themes/bear2/openbox-3/max_pressed.xbm \
266         themes/bear2/openbox-3/max_toggled.xbm \
267         themes/bear2/openbox-3/max.xbm \
268         themes/bear2/openbox-3/shade_pressed.xbm \
269         themes/bear2/openbox-3/shade.xbm \
270         themes/bear2/openbox-3/themerc
271  
272 orang_themedir = $(themedir)/orang/openbox-3
273 dist_orang_theme_DATA= \
274         themes/orang/openbox-3/themerc
275
276 syscrash_themedir = $(themedir)/syscrash/openbox-3
277 dist_syscrash_theme_DATA= \
278         themes/syscrash/openbox-3/bullet.xbm \
279         themes/syscrash/openbox-3/close_disabled.xbm \
280         themes/syscrash/openbox-3/close.xbm \
281         themes/syscrash/openbox-3/desk_toggled.xbm \
282         themes/syscrash/openbox-3/desk.xbm \
283         themes/syscrash/openbox-3/iconify.xbm \
284         themes/syscrash/openbox-3/max_disabled.xbm \
285         themes/syscrash/openbox-3/max_pressed.xbm \
286         themes/syscrash/openbox-3/max_toggled.xbm \
287         themes/syscrash/openbox-3/max.xbm \
288         themes/syscrash/openbox-3/shade.xbm \
289         themes/syscrash/openbox-3/themerc
290
291 ## public headers ##
292
293 pubinclude_HEADERS = \
294         render/color.h \
295         render/font.h \
296         render/geom.h \
297         render/gradient.h \
298         render/image.h \
299         render/instance.h \
300         render/mask.h \
301         render/render.h \
302         render/theme.h \
303         parser/parse.h
304
305 nodist_pubinclude_HEADERS = \
306         version.h
307
308 nodist_pkgconfig_DATA = \
309         render/obrender-3.0.pc \
310         parser/obparser-3.0.pc
311
312 ## data ##
313
314 dist_pixmap_DATA = \
315         data/openbox.png
316
317 nodist_rc_DATA = \
318         data/rc.xml \
319         data/menu.xml
320
321 dist_xsd_DATA = \
322         data/rc.xsd \
323         data/menu.xsd
324
325 edit = $(SED) \
326         -e 's!@version\@!$(VERSION)!' \
327         -e 's!@xsddir\@!$(xsddir)!'
328
329 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
330         @echo make: creating $@
331         @rm -f $@
332         @mkdir data 2>/dev/null || true
333         @$(edit) $(srcdir)/data/rc.xml.in >$@
334
335 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
336         @echo make: creating $@
337         @rm -f $@
338         @mkdir data 2>/dev/null || true
339         @$(edit) $(srcdir)/data/menu.xml.in >$@
340
341 dist_desktopfiles_DATA = \
342         data/openbox.desktop
343
344 dist_noinst_DATA = \
345         tools/themeupdate/themeupdate.py \
346         version.h.in \
347         data/rc.xml.in \
348         data/menu.xml.in \
349         render/obrender-3.0.pc.in \
350         parser/obparser-3.0.pc.in
351
352 EXTRA_DIST = \
353         config.rpath \
354         mkinstalldirs \
355         CHANGELOG \
356         COMPLIANCE \
357         README \
358         COPYING \
359         AUTHORS
360
361 CLEANFILES = \
362         data/rc.xml \
363         data/menu.xml
364
365 #doc:
366 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
367
368 distclean-local:
369         for d in . m4 po render; do \
370                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
371                         rm -f "$$d/$$p"; \
372                 done \
373         done
374
375 .PHONY: doc