patch to fix some xft linking
[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 userscriptdir   = $(datadir)/openbox
13
14 theme = TheBear
15
16 AUTOMAKE_OPTIONS = subdir-objects foreign
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 INCLUDES = -I.
21
22 noinst_PROGRAMS = \
23         render/rendertest
24
25 lib_LTLIBRARIES = \
26         parser/libobparser.la \
27         render/libobrender.la
28
29 bin_PROGRAMS = \
30         openbox/openbox \
31         tools/kdetrayproxy/kdetrayproxy \
32         tools/gnome-panel-control/gnome-panel-control
33
34 ## render ##
35
36 render_rendertest_CPPFLAGS = \
37         $(XFT_CFLAGS) \
38         $(GLIB_CFLAGS) \
39         -DG_LOG_DOMAIN=\"RenderTest\"
40 render_rendertest_LDADD = \
41         parser/libobparser.la \
42         render/libobrender.la \
43         $(XFT_LIBS) \
44         $(GLIB_LIBS) \
45         $(XML_LIBS) \
46         $(X_LIBS)
47 render_rendertest_SOURCES = render/test.c
48
49 render_libobrender_la_CPPFLAGS = \
50         $(X_CFLAGS) \
51         $(XFT_CFLAGS) \
52         $(GLIB_CFLAGS) \
53         $(XML_CFLAGS) \
54         -DG_LOG_DOMAIN=\"ObRender\" \
55         -DDEFAULT_THEME=\"$(theme)\"
56 render_libobrender_la_LDFLAGS = \
57         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
58 render_libobrender_la_LIBADD = \
59         $(X_LIBS) \
60         $(XFT_LIBS) \
61         $(GLIB_LIBS) \
62         $(XML_LIBS) 
63 render_libobrender_la_SOURCES = \
64         gettext.h \
65         render/color.h \
66         render/color.c \
67         render/font.h \
68         render/font.c \
69         render/geom.h \
70         render/gradient.h \
71         render/gradient.c \
72         render/icon.h \
73         render/image.h \
74         render/image.c \
75         render/instance.h \
76         render/instance.c \
77         render/mask.h \
78         render/mask.c \
79         render/render.h \
80         render/render.c \
81         render/theme.h \
82         render/theme.c
83
84 ## parser ##
85
86 parser_libobparser_la_CPPFLAGS = \
87         $(GLIB_CFLAGS) \
88         $(XML_CFLAGS) \
89         -DG_LOG_DOMAIN=\"ObParser\" \
90         -DLOCALEDIR=\"$(localedir)\" \
91         -DDATADIR=\"$(datadir)\" \
92         -DCONFIGDIR=\"$(configdir)\"
93 parser_libobparser_la_LDFLAGS = \
94         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
95 parser_libobparser_la_SOURCES = \
96         parser/parse.h \
97         parser/parse.c
98
99 ## openbox ##
100
101 openbox_openbox_CPPFLAGS = \
102         $(X_CFLAGS) \
103         $(SM_CFLAGS) \
104         $(XFT_CFLAGS) \
105         $(GLIB_CFLAGS) \
106         $(LIBSN_CFLAGS) \
107         $(XML_CFLAGS) \
108         -DLOCALEDIR=\"$(localedir)\" \
109         -DDATADIR=\"$(datadir)\" \
110         -DCONFIGDIR=\"$(configdir)\" \
111         -DG_LOG_DOMAIN=\"Openbox\"
112 openbox_openbox_LDADD = \
113         $(SM_LIBS) \
114         $(XFT_LIBS) \
115         $(XINERAMA_LIBS) \
116         $(XKB_LIBS) \
117         $(XRANDR_LIBS) \
118         $(VIDMODE_LIBS) \
119         $(XSHAPE_LIBS) \
120         $(GLIB_LIBS) \
121         $(X_LIBS) \
122         $(LIBSN_LIBS) \
123         $(XML_LIBS) \
124         $(EFENCE_LIBS) \
125         $(LIBINTL) \
126         render/libobrender.la \
127         parser/libobparser.la
128 openbox_openbox_LDFLAGS = -export-dynamic
129 openbox_openbox_SOURCES = \
130         gettext.h \
131         openbox/action.c \
132         openbox/action.h \
133         openbox/client.c \
134         openbox/client.h \
135         openbox/client_list_menu.c \
136         openbox/client_list_menu.h \
137         openbox/client_menu.c \
138         openbox/client_menu.h \
139         openbox/config.c \
140         openbox/config.h \
141         openbox/debug.c \
142         openbox/debug.h \
143         openbox/dock.c \
144         openbox/dock.h \
145         openbox/event.c \
146         openbox/event.h \
147         openbox/extensions.c \
148         openbox/extensions.h \
149         openbox/focus.c \
150         openbox/focus.h \
151         openbox/frame.c \
152         openbox/frame.h \
153         openbox/framerender.c \
154         openbox/framerender.h \
155         openbox/geom.h \
156         openbox/grab.c \
157         openbox/grab.h \
158         openbox/group.c \
159         openbox/group.h \
160         openbox/keyboard.c \
161         openbox/keyboard.h \
162         openbox/keytree.c \
163         openbox/keytree.h \
164         openbox/mainloop.c \
165         openbox/mainloop.h \
166         openbox/menuframe.c \
167         openbox/menuframe.h \
168         openbox/menu.c \
169         openbox/menu.h \
170         openbox/misc.h \
171         openbox/mouse.c \
172         openbox/mouse.h \
173         openbox/moveresize.c \
174         openbox/moveresize.h \
175         openbox/mwm.h \
176         openbox/openbox.c \
177         openbox/openbox.h \
178         openbox/place.c \
179         openbox/place.h \
180         openbox/popup.c \
181         openbox/popup.h \
182         openbox/prop.c \
183         openbox/prop.h \
184         openbox/resist.c \
185         openbox/resist.h \
186         openbox/screen.c \
187         openbox/screen.h \
188         openbox/session.c \
189         openbox/session.h \
190         openbox/stacking.c \
191         openbox/stacking.h \
192         openbox/startupnotify.c \
193         openbox/startupnotify.h \
194         openbox/translate.c \
195         openbox/translate.h \
196         openbox/window.c \
197         openbox/window.h \
198         openbox/xerror.c \
199         openbox/xerror.h
200
201
202 ## kdetrayproxy ##
203
204 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
205         $(X_CFLAGS)
206 tools_kdetrayproxy_kdetrayproxy_LDADD = \
207         $(X_LIBS)
208 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
209         tools/kdetrayproxy/kdetrayproxy.c
210
211
212 ## gnome-panel-control ##
213
214 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
215         $(X_CFLAGS)
216 tools_gnome_panel_control_gnome_panel_control_LDADD = \
217         $(X_LIBS)
218 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
219         tools/gnome-panel-control/gnome-panel-control.c
220
221
222 ## themes ##
223
224 allegro_themedir = $(themedir)/Allegro/openbox-3
225 dist_allegro_theme_DATA = \
226         themes/Allegro/openbox-3/themerc \
227         themes/Allegro/openbox-3/bullet.xbm
228
229 artwiz_themedir = $(themedir)/Artwiz/openbox-3
230 dist_artwiz_theme_DATA = \
231         themes/Artwiz/openbox-3/themerc
232
233 blah41_themedir = $(themedir)/Blah41/openbox-3
234 dist_blah41_theme_DATA = \
235         themes/Blah41/openbox-3/themerc
236
237 om4ob_themedir = $(themedir)/Om4Ob/openbox-3
238 dist_om4ob_theme_DATA = \
239         themes/Om4Ob/openbox-3/themerc \
240         themes/Om4Ob/openbox-3/close_hover.xbm \
241         themes/Om4Ob/openbox-3/close.xbm \
242         themes/Om4Ob/openbox-3/desk_hover.xbm \
243         themes/Om4Ob/openbox-3/desk_toggled.xbm \
244         themes/Om4Ob/openbox-3/desk.xbm \
245         themes/Om4Ob/openbox-3/iconify_hover.xbm \
246         themes/Om4Ob/openbox-3/iconify_pressed.xbm \
247         themes/Om4Ob/openbox-3/iconify.xbm \
248         themes/Om4Ob/openbox-3/max_disabled.xbm \
249         themes/Om4Ob/openbox-3/max_hover.xbm \
250         themes/Om4Ob/openbox-3/max_pressed.xbm \
251         themes/Om4Ob/openbox-3/max_toggled.xbm \
252         themes/Om4Ob/openbox-3/max.xbm \
253         themes/Om4Ob/openbox-3/shade_disabled.xbm \
254         themes/Om4Ob/openbox-3/shade_hover.xbm \
255         themes/Om4Ob/openbox-3/shade_toggled.xbm \
256         themes/Om4Ob/openbox-3/shade.xbm
257
258 thebear_themedir = $(themedir)/TheBear/openbox-3
259 dist_thebear_theme_DATA = \
260         themes/TheBear/openbox-3/themerc
261
262
263 ## public headers ##
264
265 pubinclude_HEADERS = \
266         render/render.h \
267         render/theme.h \
268         parser/parse.h
269
270 nodist_pubinclude_HEADERS = \
271         version.h
272
273 nodist_pkgconfig_DATA = \
274         render/obrender-3.0.pc \
275         parser/obparser-3.0.pc
276
277 ## data ##
278
279 dist_pixmap_DATA = \
280         data/openbox.png
281
282 nodist_rc_DATA = \
283         data/rc.xml \
284         data/menu.xml
285
286 dist_xsd_DATA = \
287         data/rc.xsd \
288         data/menu.xsd
289
290 edit = $(SED) \
291         -e 's!@version\@!$(VERSION)!' \
292         -e 's!@xsddir\@!$(xsddir)!'
293
294 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
295         @echo make: creating $@
296         @rm -f $@
297         @mkdir data 2>/dev/null || true
298         @$(edit) $(srcdir)/data/rc.xml.in >$@
299
300 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
301         @echo make: creating $@
302         @rm -f $@
303         @mkdir data 2>/dev/null || true
304         @$(edit) $(srcdir)/data/menu.xml.in >$@
305
306 dist_userscript_DATA = \
307         tools/themeupdate/themeupdate.py
308
309 install-data-hook:
310         chmod +x $(DESTDIR)$(userscriptdir)/themeupdate.py
311
312 dist_desktopfiles_DATA = \
313         data/openbox.desktop
314
315 dist_noinst_DATA = \
316         version.h.in \
317         data/rc.xml.in \
318         data/menu.xml.in \
319         render/obrender-3.0.pc.in \
320         parser/obparser-3.0.pc.in
321
322 EXTRA_DIST = \
323         config.rpath \
324         mkinstalldirs \
325         CHANGELOG \
326         COMPLIANCE \
327         README \
328         COPYING \
329         AUTHORS
330
331 CLEANFILES = \
332         data/rc.xml \
333         data/menu.xml
334
335 #doc:
336 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
337
338 distclean-local:
339         for d in . m4 po render; do \
340                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
341                         rm -f "$$d/$$p"; \
342                 done \
343         done
344
345 .PHONY: doc