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