move the resistance plugin into the kernel. dont resist when move/resizing with the...
[dana/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/openbox/themes
4 localedir       = $(datadir)/locale
5 rcdir           = $(datadir)/openbox
6 plugindir       = $(libdir)/openbox/plugins
7 desktopfilesdir = $(datadir)/gnome/wm-properties
8 pixmapdir       = $(datadir)/pixmaps
9
10 theme = thebear
11
12 AUTOMAKE_OPTIONS = subdir-objects
13 ACLOCAL_AMFLAGS = -I m4
14
15 INCLUDES = -I.
16
17 noinst_PROGRAMS = \
18         render/rendertest
19
20 lib_LTLIBRARIES = \
21         render/libobrender.la \
22         parser/libobparser.la
23
24 bin_PROGRAMS = \
25         kernel/openbox \
26         tools/kdetrayproxy/kdetrayproxy
27
28 plugin_LTLIBRARIES = \
29         plugins/placement/placement.la \
30         plugins/menu/timed_menu.la \
31         plugins/menu/fifo_menu.la \
32         plugins/menu/client_menu.la \
33         plugins/menu/include_menu.la
34
35 if OBCONF
36 bin_PROGRAMS += \
37         tools/obconf/obconf
38 endif
39
40 ## render ##
41
42 render_rendertest_CPPFLAGS = \
43         $(XFT_CFLAGS) \
44         $(GLIB_CFLAGS) \
45         -DG_LOG_DOMAIN=\"RenderTest\"
46 render_rendertest_LDADD = render/libobrender.la
47 render_rendertest_SOURCES = render/test.c
48
49 render_libobrender_la_CPPFLAGS = \
50         $(X_CFLAGS) \
51         $(XFT_CFLAGS) \
52         $(GLIB_CFLAGS) \
53         -DG_LOG_DOMAIN=\"ObRender\" \
54         -DDEFAULT_THEME=\"$(theme)\" \
55         -DTHEMEDIR=\"$(themedir)\"
56 render_libobrender_la_LIBADD = \
57         $(X_LIBS) \
58         $(XFT_LIBS) \
59         $(GLIB_LIBS)
60 render_libobrender_la_SOURCES = \
61         gettext.h \
62         render/color.h \
63         render/color.c \
64         render/font.h \
65         render/font.c \
66         render/geom.h \
67         render/gradient.h \
68         render/gradient.c \
69         render/image.h \
70         render/image.c \
71         render/instance.h \
72         render/instance.c \
73         render/mask.h \
74         render/mask.c \
75         render/render.h \
76         render/render.c \
77         render/theme.h \
78         render/theme.c
79
80 ## parser ##
81
82 parser_libobparser_la_CPPFLAGS = \
83         $(GLIB_CFLAGS) \
84         $(XML_CFLAGS) \
85         -DG_LOG_DOMAIN=\"ObParser\" \
86         -DLOCALEDIR=\"$(localedir)\" \
87         -DRCDIR=\"$(rcdir)\"
88 parser_libobparser_la_LIBADD = \
89         $(GLIB_LIBS) \
90         $(XML_LIBS)
91 parser_libobparser_la_SOURCES = \
92         parser/parse.h \
93         parser/parse.c
94
95 ## kernel ##
96
97 kernel_openbox_CPPFLAGS = \
98         $(X_CFLAGS) \
99         $(SM_CFLAGS) \
100         $(XFT_CFLAGS) \
101         $(GLIB_CFLAGS) \
102         $(GMODULE_CFLAGS) \
103         $(LIBSN_CFLAGS) \
104         $(XML_CFLAGS) \
105         -DLOCALEDIR=\"$(localedir)\" \
106         -DPLUGINDIR=\"$(plugindir)\" \
107         -DRCDIR=\"$(rcdir)\" \
108         -DG_LOG_DOMAIN=\"Openbox\"
109 kernel_openbox_LDADD = \
110         $(SM_LIBS) \
111         $(XINERAMA_LIBS) \
112         $(XKB_LIBS) \
113         $(XRANDR_LIBS) \
114         $(VIDMODE_LIBS) \
115         $(XSHAPE_LIBS) \
116         $(GLIB_LIBS) \
117         $(GMODULE_LIBS) \
118         $(LIBSN_LIBS) \
119         $(XML_LIBS) \
120         $(EFENCE_LIBS) \
121         $(LIBINTL) \
122         render/libobrender.la \
123         parser/libobparser.la
124 kernel_openbox_LDFLAGS = -export-dynamic
125 kernel_openbox_SOURCES = \
126         gettext.h \
127         kernel/action.c \
128         kernel/action.h \
129         kernel/client.c \
130         kernel/client.h \
131         kernel/config.c \
132         kernel/config.h \
133         kernel/debug.c \
134         kernel/debug.h \
135         kernel/dispatch.c \
136         kernel/dispatch.h \
137         kernel/dock.c \
138         kernel/dock.h \
139         kernel/event.c \
140         kernel/event.h \
141         kernel/extensions.c \
142         kernel/extensions.h \
143         kernel/focus.c \
144         kernel/focus.h \
145         kernel/frame.c \
146         kernel/frame.h \
147         kernel/framerender.c \
148         kernel/framerender.h \
149         kernel/geom.h \
150         kernel/grab.c \
151         kernel/grab.h \
152         kernel/group.c \
153         kernel/group.h \
154         kernel/keyboard.c \
155         kernel/keyboard.h \
156         kernel/keytree.c \
157         kernel/keytree.h \
158         kernel/menu.c \
159         kernel/menu.h \
160         kernel/menu_render.c \
161         kernel/misc.h \
162         kernel/mouse.c \
163         kernel/mouse.h \
164         kernel/moveresize.c \
165         kernel/moveresize.h \
166         kernel/mwm.h \
167         kernel/openbox.c \
168         kernel/openbox.h \
169         kernel/plugin.c \
170         kernel/plugin.h \
171         kernel/popup.c \
172         kernel/popup.h \
173         kernel/prop.c \
174         kernel/prop.h \
175         kernel/resist.c \
176         kernel/resist.h \
177         kernel/screen.c \
178         kernel/screen.h \
179         kernel/session.c \
180         kernel/session.h \
181         kernel/stacking.c \
182         kernel/stacking.h \
183         kernel/startup.c \
184         kernel/startup.h \
185         kernel/timer.c \
186         kernel/timer.h \
187         kernel/translate.c \
188         kernel/translate.h \
189         kernel/window.c \
190         kernel/window.h \
191         kernel/xerror.c \
192         kernel/xerror.h \
193         plugins/interface.h
194
195 ## plugins/placement ##
196
197 plugins_placement_placement_la_CPPFLAGS = \
198         $(XFT_CFLAGS) \
199         $(GLIB_CFLAGS) \
200         $(LIBSN_CFLAGS) \
201         $(XML_CFLAGS) \
202         -DPLUGINDIR=\"$(plugindir)\" \
203         -DG_LOG_DOMAIN=\"Plugin-Placement\"
204 plugins_placement_placement_la_LDFLAGS = \
205         -module \
206         -avoid-version
207 plugins_placement_placement_la_SOURCES = \
208         plugins/placement/placement.c \
209         plugins/placement/history.c \
210         plugins/placement/history.h
211
212 ## plugins/menu ##
213
214 plugins_menu_timed_menu_la_CPPFLAGS = \
215         $(XFT_CFLAGS) \
216         $(GLIB_CFLAGS) \
217         $(LIBSN_CFLAGS) \
218         $(XML_CFLAGS) \
219         -DPLUGINDIR=\"$(plugindir)\" \
220         -DG_LOG_DOMAIN=\"Plugin-Timed-Menu\"
221 plugins_menu_timed_menu_la_LDFLAGS = \
222         -module \
223         -avoid-version
224 plugins_menu_timed_menu_la_SOURCES = \
225         plugins/menu/timed_menu.c \
226         plugins/menu/timed_menu.h
227
228 plugins_menu_fifo_menu_la_CPPFLAGS = \
229         $(XFT_CFLAGS) \
230         $(GLIB_CFLAGS) \
231         $(LIBSN_CFLAGS) \
232         $(XML_CFLAGS) \
233         -DPLUGINDIR=\"$(plugindir)\" \
234         -DG_LOG_DOMAIN=\"Plugin-Fifo-Menu\"
235 plugins_menu_fifo_menu_la_LDFLAGS = \
236         -module \
237         -avoid-version
238 plugins_menu_fifo_menu_la_SOURCES = \
239         plugins/menu/fifo_menu.c \
240         plugins/menu/fifo_menu.h
241
242 plugins_menu_client_menu_la_CPPFLAGS = \
243         $(XFT_CFLAGS) \
244         $(GLIB_CFLAGS) \
245         $(LIBSN_CFLAGS) \
246         $(XML_CFLAGS) \
247         -DPLUGINDIR=\"$(plugindir)\" \
248         -DG_LOG_DOMAIN=\"Plugin-Client-Menu\"
249 plugins_menu_client_menu_la_LDFLAGS = \
250         -module \
251         -avoid-version
252 plugins_menu_client_menu_la_SOURCES = \
253         plugins/menu/client_menu.c
254
255 plugins_menu_include_menu_la_CPPFLAGS = \
256         $(XFT_CFLAGS) \
257         $(GLIB_CFLAGS) \
258         $(LIBSN_CFLAGS) \
259         $(XML_CFLAGS) \
260         -DPLUGINDIR=\"$(plugindir)\" \
261         -DG_LOG_DOMAIN=\"Plugin-Include-Menu\"
262 plugins_menu_include_menu_la_LDFLAGS = \
263         -module \
264         -avoid-version
265 plugins_menu_include_menu_la_SOURCES = \
266         plugins/menu/include_menu.c
267
268
269 ## obconf ##
270
271 tools_obconf_obconf_CPPFLAGS = \
272         $(GTK_CFLAGS) \
273         $(GDK_PIXBUF_CFLAGS) \
274         $(XML_CFLAGS) \
275         -DLOCALEDIR=\"$(localedir)\" \
276         -DPLUGINDIR=\"$(plugindir)\" \
277         -DRCDIR=\"$(rcdir)\" \
278         -DPIXMAPDIR=\"$(pixmapdir)\" \
279         -DG_LOG_DOMAIN=\"Obconf\"
280 tools_obconf_obconf_LDADD = \
281         $(GTK_LIBS) \
282         $(GDK_PIXBUF_LIBS) \
283         $(LIBINTL) \
284         render/libobrender.la \
285         parser/libobparser.la
286 tools_obconf_obconf_SOURCES = \
287         gettext.h \
288         tools/obconf/main.c \
289         plugins/obconf_interface.h
290
291
292 ## kdetrayproxy ##
293
294 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
295         $(X_CFLAGS)
296 tools_kdetrayproxy_kdetrayproxy_LDADD = \
297         $(X_LIBS)
298 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
299         tools/kdetrayproxy/kdetrayproxy.c
300
301
302 ## themes ##
303
304 thebear_themedir = $(themedir)/thebear
305 dist_thebear_theme_DATA = \
306         themes/thebear/themerc
307
308 planton_themedir = $(themedir)/planton
309 dist_planton_theme_DATA = \
310         themes/planton/themerc \
311         themes/planton/max.xbm \
312         themes/planton/max_toggled.xbm \
313         themes/planton/desk.xbm \
314         themes/planton/desk_toggled.xbm \
315         themes/planton/shade.xbm \
316         themes/planton/shade_toggled.xbm \
317         themes/planton/iconify.xbm \
318         themes/planton/close.xbm
319
320 lightindustry_themedir = $(themedir)/Light-Industry
321 dist_lightindustry_theme_DATA = \
322         themes/Light-Industry/themerc \
323         themes/Light-Industry/max.xbm \
324         themes/Light-Industry/iconify.xbm \
325         themes/Light-Industry/close.xbm
326
327 lightindustrybig_themedir = $(themedir)/Light-Industry-big
328 dist_lightindustrybig_theme_DATA = \
329         themes/Light-Industry-big/themerc \
330         themes/Light-Industry-big/max.xbm \
331         themes/Light-Industry-big/iconify.xbm \
332         themes/Light-Industry-big/close.xbm
333
334 imerry_themedir = $(themedir)/I-merry
335 dist_imerry_theme_DATA = \
336         themes/I-merry/themerc \
337         themes/I-merry/max.xbm \
338         themes/I-merry/iconify.xbm \
339         themes/I-merry/close.xbm
340
341 greenz_themedir = $(themedir)/greenz
342 dist_greenz_theme_DATA = \
343         themes/greenz/themerc
344
345 bbstyle_themedir = $(themedir)/BBstylE
346 dist_bbstyle_theme_DATA = \
347         themes/BBstylE/themerc \
348         themes/BBstylE/max.xbm \
349         themes/BBstylE/max_toggled.xbm \
350         themes/BBstylE/desk.xbm \
351         themes/BBstylE/desk_toggled.xbm \
352         themes/BBstylE/shade.xbm \
353         themes/BBstylE/shade_toggled.xbm \
354         themes/BBstylE/iconify.xbm \
355         themes/BBstylE/close.xbm
356
357 om4ob_themedir = $(themedir)/om4ob
358 dist_om4ob_theme_DATA = \
359         themes/om4ob/themerc \
360         themes/om4ob/close_hover.xbm \
361         themes/om4ob/close.xbm \
362         themes/om4ob/desk_hover.xbm \
363         themes/om4ob/desk_toggled.xbm \
364         themes/om4ob/desk.xbm \
365         themes/om4ob/iconify_hover.xbm \
366         themes/om4ob/iconify_pressed.xbm \
367         themes/om4ob/iconify.xbm \
368         themes/om4ob/max_disabled.xbm \
369         themes/om4ob/max_hover.xbm \
370         themes/om4ob/max_pressed.xbm \
371         themes/om4ob/max_toggled.xbm \
372         themes/om4ob/max.xbm \
373         themes/om4ob/shade_disabled.xbm \
374         themes/om4ob/shade_hover.xbm \
375         themes/om4ob/shade_toggled.xbm \
376         themes/om4ob/shade.xbm
377
378
379 ## data ##
380
381 dist_rc_DATA = \
382         data/rc3 \
383         data/menu
384
385 dist_desktopfiles_DATA = \
386         data/openbox.desktop
387
388 EXTRA_DIST = \
389         config.rpath \
390         mkinstalldirs \
391         README \
392         COPYING \
393         AUTHORS
394
395 #doc:
396 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
397
398 distclean-local:
399         for d in . m4 po render; do \
400                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
401                         rm -f "$$d/$$p"; \
402                 done \
403         done
404
405 .PHONY: doc