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