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