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