]> icculus.org git repositories - dana/openbox.git/blob - Makefile.am
free rgba texture caches
[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/client_menu.la \
31         plugins/menu/client_list_menu.la
32 #       plugins/menu/timed_menu.la \
33 #       plugins/menu/fifo_menu.la \
34 #       plugins/menu/include_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/menuframe.c \
160         kernel/menuframe.h \
161         kernel/menu.c \
162         kernel/menu.h \
163         kernel/misc.h \
164         kernel/mouse.c \
165         kernel/mouse.h \
166         kernel/moveresize.c \
167         kernel/moveresize.h \
168         kernel/mwm.h \
169         kernel/openbox.c \
170         kernel/openbox.h \
171         kernel/plugin.c \
172         kernel/plugin.h \
173         kernel/popup.c \
174         kernel/popup.h \
175         kernel/prop.c \
176         kernel/prop.h \
177         kernel/resist.c \
178         kernel/resist.h \
179         kernel/screen.c \
180         kernel/screen.h \
181         kernel/session.c \
182         kernel/session.h \
183         kernel/stacking.c \
184         kernel/stacking.h \
185         kernel/startup.c \
186         kernel/startup.h \
187         kernel/timer.c \
188         kernel/timer.h \
189         kernel/translate.c \
190         kernel/translate.h \
191         kernel/window.c \
192         kernel/window.h \
193         kernel/xerror.c \
194         kernel/xerror.h \
195         plugins/interface.h
196
197 ## plugins/placement ##
198
199 plugins_placement_placement_la_CPPFLAGS = \
200         $(XFT_CFLAGS) \
201         $(GLIB_CFLAGS) \
202         $(LIBSN_CFLAGS) \
203         $(XML_CFLAGS) \
204         -DPLUGINDIR=\"$(plugindir)\" \
205         -DG_LOG_DOMAIN=\"Plugin-Placement\"
206 plugins_placement_placement_la_LDFLAGS = \
207         -module \
208         -avoid-version
209 plugins_placement_placement_la_SOURCES = \
210         plugins/placement/placement.c \
211         plugins/placement/history.c \
212         plugins/placement/history.h
213
214 ## plugins/menu ##
215
216 plugins_menu_timed_menu_la_CPPFLAGS = \
217         $(XFT_CFLAGS) \
218         $(GLIB_CFLAGS) \
219         $(LIBSN_CFLAGS) \
220         $(XML_CFLAGS) \
221         -DPLUGINDIR=\"$(plugindir)\" \
222         -DG_LOG_DOMAIN=\"Plugin-Timed-Menu\"
223 plugins_menu_timed_menu_la_LDFLAGS = \
224         -module \
225         -avoid-version
226 plugins_menu_timed_menu_la_SOURCES = \
227         plugins/menu/timed_menu.c \
228         plugins/menu/timed_menu.h
229
230 plugins_menu_fifo_menu_la_CPPFLAGS = \
231         $(XFT_CFLAGS) \
232         $(GLIB_CFLAGS) \
233         $(LIBSN_CFLAGS) \
234         $(XML_CFLAGS) \
235         -DPLUGINDIR=\"$(plugindir)\" \
236         -DG_LOG_DOMAIN=\"Plugin-Fifo-Menu\"
237 plugins_menu_fifo_menu_la_LDFLAGS = \
238         -module \
239         -avoid-version
240 plugins_menu_fifo_menu_la_SOURCES = \
241         plugins/menu/fifo_menu.c \
242         plugins/menu/fifo_menu.h
243
244 plugins_menu_client_menu_la_CPPFLAGS = \
245         $(XFT_CFLAGS) \
246         $(GLIB_CFLAGS) \
247         $(LIBSN_CFLAGS) \
248         $(XML_CFLAGS) \
249         -DPLUGINDIR=\"$(plugindir)\" \
250         -DG_LOG_DOMAIN=\"Plugin-Client-Menu\"
251 plugins_menu_client_menu_la_LDFLAGS = \
252         -module \
253         -avoid-version
254 plugins_menu_client_menu_la_SOURCES = \
255         plugins/menu/client_menu.c
256
257 plugins_menu_include_menu_la_CPPFLAGS = \
258         $(XFT_CFLAGS) \
259         $(GLIB_CFLAGS) \
260         $(LIBSN_CFLAGS) \
261         $(XML_CFLAGS) \
262         -DPLUGINDIR=\"$(plugindir)\" \
263         -DG_LOG_DOMAIN=\"Plugin-Include-Menu\"
264 plugins_menu_include_menu_la_LDFLAGS = \
265         -module \
266         -avoid-version
267 plugins_menu_include_menu_la_SOURCES = \
268         plugins/menu/include_menu.c
269
270 plugins_menu_client_list_menu_la_CPPFLAGS = \
271         $(XFT_CFLAGS) \
272         $(GLIB_CFLAGS) \
273         $(LIBSN_CFLAGS) \
274         $(XML_CFLAGS) \
275         -DPLUGINDIR=\"$(plugindir)\" \
276         -DG_LOG_DOMAIN=\"Plugin-Client-List-Menu\"
277 plugins_menu_client_list_menu_la_LDFLAGS = \
278         -module \
279         -avoid-version
280 plugins_menu_client_list_menu_la_SOURCES = \
281 o       plugins/menu/client_list_menu.c
282
283
284 ## obconf ##
285
286 tools_obconf_obconf_CPPFLAGS = \
287         $(GTK_CFLAGS) \
288         $(GDK_PIXBUF_CFLAGS) \
289         $(XML_CFLAGS) \
290         -DLOCALEDIR=\"$(localedir)\" \
291         -DPLUGINDIR=\"$(plugindir)\" \
292         -DRCDIR=\"$(rcdir)\" \
293         -DPIXMAPDIR=\"$(pixmapdir)\" \
294         -DG_LOG_DOMAIN=\"Obconf\"
295 tools_obconf_obconf_LDADD = \
296         $(GTK_LIBS) \
297         $(GDK_PIXBUF_LIBS) \
298         $(LIBINTL) \
299         render/libobrender.la \
300         parser/libobparser.la
301 tools_obconf_obconf_SOURCES = \
302         gettext.h \
303         tools/obconf/main.c \
304         plugins/obconf_interface.h
305
306
307 ## kdetrayproxy ##
308
309 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
310         $(X_CFLAGS)
311 tools_kdetrayproxy_kdetrayproxy_LDADD = \
312         $(X_LIBS)
313 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
314         tools/kdetrayproxy/kdetrayproxy.c
315
316
317 ## themes ##
318
319 thebear_themedir = $(themedir)/thebear
320 dist_thebear_theme_DATA = \
321         themes/thebear/themerc
322
323 planton_themedir = $(themedir)/planton
324 dist_planton_theme_DATA = \
325         themes/planton/themerc \
326         themes/planton/max.xbm \
327         themes/planton/max_toggled.xbm \
328         themes/planton/desk.xbm \
329         themes/planton/desk_toggled.xbm \
330         themes/planton/shade.xbm \
331         themes/planton/shade_toggled.xbm \
332         themes/planton/iconify.xbm \
333         themes/planton/close.xbm
334
335 lightindustry_themedir = $(themedir)/Light-Industry
336 dist_lightindustry_theme_DATA = \
337         themes/Light-Industry/themerc \
338         themes/Light-Industry/max.xbm \
339         themes/Light-Industry/iconify.xbm \
340         themes/Light-Industry/close.xbm
341
342 lightindustrybig_themedir = $(themedir)/Light-Industry-big
343 dist_lightindustrybig_theme_DATA = \
344         themes/Light-Industry-big/themerc \
345         themes/Light-Industry-big/max.xbm \
346         themes/Light-Industry-big/iconify.xbm \
347         themes/Light-Industry-big/close.xbm
348
349 imerry_themedir = $(themedir)/I-merry
350 dist_imerry_theme_DATA = \
351         themes/I-merry/themerc \
352         themes/I-merry/max.xbm \
353         themes/I-merry/iconify.xbm \
354         themes/I-merry/close.xbm
355
356 greenz_themedir = $(themedir)/greenz
357 dist_greenz_theme_DATA = \
358         themes/greenz/themerc
359
360 bbstyle_themedir = $(themedir)/BBstylE
361 dist_bbstyle_theme_DATA = \
362         themes/BBstylE/themerc \
363         themes/BBstylE/max.xbm \
364         themes/BBstylE/max_toggled.xbm \
365         themes/BBstylE/desk.xbm \
366         themes/BBstylE/desk_toggled.xbm \
367         themes/BBstylE/shade.xbm \
368         themes/BBstylE/shade_toggled.xbm \
369         themes/BBstylE/iconify.xbm \
370         themes/BBstylE/close.xbm
371
372 om4ob_themedir = $(themedir)/om4ob
373 dist_om4ob_theme_DATA = \
374         themes/om4ob/themerc \
375         themes/om4ob/close_hover.xbm \
376         themes/om4ob/close.xbm \
377         themes/om4ob/desk_hover.xbm \
378         themes/om4ob/desk_toggled.xbm \
379         themes/om4ob/desk.xbm \
380         themes/om4ob/iconify_hover.xbm \
381         themes/om4ob/iconify_pressed.xbm \
382         themes/om4ob/iconify.xbm \
383         themes/om4ob/max_disabled.xbm \
384         themes/om4ob/max_hover.xbm \
385         themes/om4ob/max_pressed.xbm \
386         themes/om4ob/max_toggled.xbm \
387         themes/om4ob/max.xbm \
388         themes/om4ob/shade_disabled.xbm \
389         themes/om4ob/shade_hover.xbm \
390         themes/om4ob/shade_toggled.xbm \
391         themes/om4ob/shade.xbm
392
393
394 ## data ##
395
396 dist_rc_DATA = \
397         data/rc3 \
398         data/menu
399
400 dist_desktopfiles_DATA = \
401         data/openbox.desktop
402
403 EXTRA_DIST = \
404         config.rpath \
405         mkinstalldirs \
406         README \
407         COPYING \
408         AUTHORS
409
410 #doc:
411 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
412
413 distclean-local:
414         for d in . m4 po render; do \
415                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
416                         rm -f "$$d/$$p"; \
417                 done \
418         done
419
420 .PHONY: doc