the kernel/ dir has been moved to openbox/
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/openbox/themes
4 localedir       = $(datadir)/locale
5 rcdir           = $(datadir)/openbox
6 desktopfilesdir = $(datadir)/gnome/wm-properties
7 pixmapdir       = $(datadir)/pixmaps
8
9 theme = thebear
10
11 AUTOMAKE_OPTIONS = subdir-objects
12 ACLOCAL_AMFLAGS = -I m4
13
14 INCLUDES = -I.
15
16 noinst_PROGRAMS = \
17         render/rendertest
18
19 lib_LTLIBRARIES = \
20         render/libobrender.la \
21         parser/libobparser.la
22
23 bin_PROGRAMS = \
24         openbox/openbox \
25         tools/kdetrayproxy/kdetrayproxy
26
27 if OBCONF
28 bin_PROGRAMS += \
29         tools/obconf/obconf
30 endif
31
32 ## render ##
33
34 render_rendertest_CPPFLAGS = \
35         $(XFT_CFLAGS) \
36         $(GLIB_CFLAGS) \
37         -DG_LOG_DOMAIN=\"RenderTest\"
38 render_rendertest_LDADD = render/libobrender.la
39 render_rendertest_SOURCES = render/test.c
40
41 render_libobrender_la_CPPFLAGS = \
42         $(X_CFLAGS) \
43         $(XFT_CFLAGS) \
44         $(GLIB_CFLAGS) \
45         -DG_LOG_DOMAIN=\"ObRender\" \
46         -DDEFAULT_THEME=\"$(theme)\" \
47         -DTHEMEDIR=\"$(themedir)\"
48 render_libobrender_la_LIBADD = \
49         $(X_LIBS) \
50         $(XFT_LIBS) \
51         $(GLIB_LIBS)
52 render_libobrender_la_SOURCES = \
53         gettext.h \
54         render/color.h \
55         render/color.c \
56         render/font.h \
57         render/font.c \
58         render/geom.h \
59         render/gradient.h \
60         render/gradient.c \
61         render/image.h \
62         render/image.c \
63         render/instance.h \
64         render/instance.c \
65         render/mask.h \
66         render/mask.c \
67         render/render.h \
68         render/render.c \
69         render/theme.h \
70         render/theme.c
71
72 ## parser ##
73
74 parser_libobparser_la_CPPFLAGS = \
75         $(GLIB_CFLAGS) \
76         $(XML_CFLAGS) \
77         -DG_LOG_DOMAIN=\"ObParser\" \
78         -DLOCALEDIR=\"$(localedir)\" \
79         -DRCDIR=\"$(rcdir)\"
80 parser_libobparser_la_LIBADD = \
81         $(GLIB_LIBS) \
82         $(XML_LIBS)
83 parser_libobparser_la_SOURCES = \
84         parser/parse.h \
85         parser/parse.c
86
87 ## openbox ##
88
89 openbox_openbox_CPPFLAGS = \
90         $(X_CFLAGS) \
91         $(SM_CFLAGS) \
92         $(XFT_CFLAGS) \
93         $(GLIB_CFLAGS) \
94         $(GMODULE_CFLAGS) \
95         $(LIBSN_CFLAGS) \
96         $(XML_CFLAGS) \
97         -DLOCALEDIR=\"$(localedir)\" \
98         -DRCDIR=\"$(rcdir)\" \
99         -DG_LOG_DOMAIN=\"Openbox\"
100 openbox_openbox_LDADD = \
101         $(SM_LIBS) \
102         $(XINERAMA_LIBS) \
103         $(XKB_LIBS) \
104         $(XRANDR_LIBS) \
105         $(VIDMODE_LIBS) \
106         $(XSHAPE_LIBS) \
107         $(GLIB_LIBS) \
108         $(GMODULE_LIBS) \
109         $(LIBSN_LIBS) \
110         $(XML_LIBS) \
111         $(EFENCE_LIBS) \
112         $(LIBINTL) \
113         render/libobrender.la \
114         parser/libobparser.la
115 openbox_openbox_LDFLAGS = -export-dynamic
116 openbox_openbox_SOURCES = \
117         gettext.h \
118         openbox/action.c \
119         openbox/action.h \
120         openbox/client.c \
121         openbox/client.h \
122         openbox/client_list_menu.c \
123         openbox/client_list_menu.h \
124         openbox/client_menu.c \
125         openbox/client_menu.h \
126         openbox/config.c \
127         openbox/config.h \
128         openbox/debug.c \
129         openbox/debug.h \
130         openbox/dock.c \
131         openbox/dock.h \
132         openbox/event.c \
133         openbox/event.h \
134         openbox/extensions.c \
135         openbox/extensions.h \
136         openbox/focus.c \
137         openbox/focus.h \
138         openbox/frame.c \
139         openbox/frame.h \
140         openbox/framerender.c \
141         openbox/framerender.h \
142         openbox/geom.h \
143         openbox/grab.c \
144         openbox/grab.h \
145         openbox/group.c \
146         openbox/group.h \
147         openbox/keyboard.c \
148         openbox/keyboard.h \
149         openbox/keytree.c \
150         openbox/keytree.h \
151         openbox/menuframe.c \
152         openbox/menuframe.h \
153         openbox/menu.c \
154         openbox/menu.h \
155         openbox/misc.h \
156         openbox/mouse.c \
157         openbox/mouse.h \
158         openbox/moveresize.c \
159         openbox/moveresize.h \
160         openbox/mwm.h \
161         openbox/openbox.c \
162         openbox/openbox.h \
163         openbox/place.c \
164         openbox/place.h \
165         openbox/popup.c \
166         openbox/popup.h \
167         openbox/prop.c \
168         openbox/prop.h \
169         openbox/resist.c \
170         openbox/resist.h \
171         openbox/screen.c \
172         openbox/screen.h \
173         openbox/session.c \
174         openbox/session.h \
175         openbox/stacking.c \
176         openbox/stacking.h \
177         openbox/startup.c \
178         openbox/startup.h \
179         openbox/timer.c \
180         openbox/timer.h \
181         openbox/translate.c \
182         openbox/translate.h \
183         openbox/window.c \
184         openbox/window.h \
185         openbox/xerror.c \
186         openbox/xerror.h
187
188 ## obconf ##
189
190 tools_obconf_obconf_CPPFLAGS = \
191         $(GTK_CFLAGS) \
192         $(GDK_PIXBUF_CFLAGS) \
193         $(XML_CFLAGS) \
194         -DLOCALEDIR=\"$(localedir)\" \
195         -DPLUGINDIR=\"$(plugindir)\" \
196         -DRCDIR=\"$(rcdir)\" \
197         -DPIXMAPDIR=\"$(pixmapdir)\" \
198         -DG_LOG_DOMAIN=\"Obconf\"
199 tools_obconf_obconf_LDADD = \
200         $(GTK_LIBS) \
201         $(GDK_PIXBUF_LIBS) \
202         $(LIBINTL) \
203         render/libobrender.la \
204         parser/libobparser.la
205 tools_obconf_obconf_SOURCES = \
206         gettext.h \
207         tools/obconf/main.c \
208         plugins/obconf_interface.h
209
210
211 ## kdetrayproxy ##
212
213 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
214         $(X_CFLAGS)
215 tools_kdetrayproxy_kdetrayproxy_LDADD = \
216         $(X_LIBS)
217 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
218         tools/kdetrayproxy/kdetrayproxy.c
219
220
221 ## themes ##
222
223 thebear_themedir = $(themedir)/thebear
224 dist_thebear_theme_DATA = \
225         themes/thebear/themerc
226
227 planton_themedir = $(themedir)/planton
228 dist_planton_theme_DATA = \
229         themes/planton/themerc \
230         themes/planton/max.xbm \
231         themes/planton/max_toggled.xbm \
232         themes/planton/desk.xbm \
233         themes/planton/desk_toggled.xbm \
234         themes/planton/shade.xbm \
235         themes/planton/shade_toggled.xbm \
236         themes/planton/iconify.xbm \
237         themes/planton/close.xbm
238
239 lightindustry_themedir = $(themedir)/Light-Industry
240 dist_lightindustry_theme_DATA = \
241         themes/Light-Industry/themerc \
242         themes/Light-Industry/max.xbm \
243         themes/Light-Industry/iconify.xbm \
244         themes/Light-Industry/close.xbm
245
246 lightindustrybig_themedir = $(themedir)/Light-Industry-big
247 dist_lightindustrybig_theme_DATA = \
248         themes/Light-Industry-big/themerc \
249         themes/Light-Industry-big/max.xbm \
250         themes/Light-Industry-big/iconify.xbm \
251         themes/Light-Industry-big/close.xbm
252
253 imerry_themedir = $(themedir)/I-merry
254 dist_imerry_theme_DATA = \
255         themes/I-merry/themerc \
256         themes/I-merry/max.xbm \
257         themes/I-merry/iconify.xbm \
258         themes/I-merry/close.xbm
259
260 greenz_themedir = $(themedir)/greenz
261 dist_greenz_theme_DATA = \
262         themes/greenz/themerc
263
264 bbstyle_themedir = $(themedir)/BBstylE
265 dist_bbstyle_theme_DATA = \
266         themes/BBstylE/themerc \
267         themes/BBstylE/max.xbm \
268         themes/BBstylE/max_toggled.xbm \
269         themes/BBstylE/desk.xbm \
270         themes/BBstylE/desk_toggled.xbm \
271         themes/BBstylE/shade.xbm \
272         themes/BBstylE/shade_toggled.xbm \
273         themes/BBstylE/iconify.xbm \
274         themes/BBstylE/close.xbm
275
276 om4ob_themedir = $(themedir)/om4ob
277 dist_om4ob_theme_DATA = \
278         themes/om4ob/themerc \
279         themes/om4ob/close_hover.xbm \
280         themes/om4ob/close.xbm \
281         themes/om4ob/desk_hover.xbm \
282         themes/om4ob/desk_toggled.xbm \
283         themes/om4ob/desk.xbm \
284         themes/om4ob/iconify_hover.xbm \
285         themes/om4ob/iconify_pressed.xbm \
286         themes/om4ob/iconify.xbm \
287         themes/om4ob/max_disabled.xbm \
288         themes/om4ob/max_hover.xbm \
289         themes/om4ob/max_pressed.xbm \
290         themes/om4ob/max_toggled.xbm \
291         themes/om4ob/max.xbm \
292         themes/om4ob/shade_disabled.xbm \
293         themes/om4ob/shade_hover.xbm \
294         themes/om4ob/shade_toggled.xbm \
295         themes/om4ob/shade.xbm
296
297
298 ## data ##
299
300 dist_rc_DATA = \
301         data/rc3 \
302         data/menu
303
304 dist_desktopfiles_DATA = \
305         data/openbox.desktop
306
307 EXTRA_DIST = \
308         config.rpath \
309         mkinstalldirs \
310         README \
311         COPYING \
312         AUTHORS
313
314 #doc:
315 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
316
317 distclean-local:
318         for d in . m4 po render; do \
319                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
320                         rm -f "$$d/$$p"; \
321                 done \
322         done
323
324 .PHONY: doc