make interactive actions a type and not special cases.
[mikachu/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir        = $(datadir)/openbox/themes
4 localedir       = $(datadir)/locale
5 rcdir           = $(datadir)/openbox
6 desktopfilesdir = $(datadir)/gnome/wm-properties
7 pixmapdir       = $(datadir)/pixmaps
8
9 theme = thebear
10
11 AUTOMAKE_OPTIONS = subdir-objects
12 ACLOCAL_AMFLAGS = -I m4
13
14 INCLUDES = -I.
15
16 noinst_PROGRAMS = \
17         render/rendertest
18
19 lib_LTLIBRARIES = \
20         render/libobrender.la \
21         parser/libobparser.la
22
23 bin_PROGRAMS = \
24         openbox/openbox \
25         tools/kdetrayproxy/kdetrayproxy
26
27 if OBCONF
28 bin_PROGRAMS += \
29         tools/obconf/obconf
30 endif
31
32 ## render ##
33
34 render_rendertest_CPPFLAGS = \
35         $(XFT_CFLAGS) \
36         $(GLIB_CFLAGS) \
37         -DG_LOG_DOMAIN=\"RenderTest\"
38 render_rendertest_LDADD = render/libobrender.la
39 render_rendertest_SOURCES = render/test.c
40
41 render_libobrender_la_CPPFLAGS = \
42         $(X_CFLAGS) \
43         $(XFT_CFLAGS) \
44         $(GLIB_CFLAGS) \
45         -DG_LOG_DOMAIN=\"ObRender\" \
46         -DDEFAULT_THEME=\"$(theme)\" \
47         -DTHEMEDIR=\"$(themedir)\"
48 render_libobrender_la_LIBADD = \
49         $(X_LIBS) \
50         $(XFT_LIBS) \
51         $(GLIB_LIBS)
52 render_libobrender_la_SOURCES = \
53         gettext.h \
54         render/color.h \
55         render/color.c \
56         render/font.h \
57         render/font.c \
58         render/geom.h \
59         render/gradient.h \
60         render/gradient.c \
61         render/image.h \
62         render/image.c \
63         render/instance.h \
64         render/instance.c \
65         render/mask.h \
66         render/mask.c \
67         render/render.h \
68         render/render.c \
69         render/theme.h \
70         render/theme.c
71
72 ## parser ##
73
74 parser_libobparser_la_CPPFLAGS = \
75         $(GLIB_CFLAGS) \
76         $(XML_CFLAGS) \
77         -DG_LOG_DOMAIN=\"ObParser\" \
78         -DLOCALEDIR=\"$(localedir)\" \
79         -DRCDIR=\"$(rcdir)\"
80 parser_libobparser_la_LIBADD = \
81         $(GLIB_LIBS) \
82         $(XML_LIBS)
83 parser_libobparser_la_SOURCES = \
84         parser/parse.h \
85         parser/parse.c
86
87 ## openbox ##
88
89 openbox_openbox_CPPFLAGS = \
90         $(X_CFLAGS) \
91         $(SM_CFLAGS) \
92         $(XFT_CFLAGS) \
93         $(GLIB_CFLAGS) \
94         $(LIBSN_CFLAGS) \
95         $(XML_CFLAGS) \
96         -DLOCALEDIR=\"$(localedir)\" \
97         -DRCDIR=\"$(rcdir)\" \
98         -DG_LOG_DOMAIN=\"Openbox\"
99 openbox_openbox_LDADD = \
100         $(SM_LIBS) \
101         $(XINERAMA_LIBS) \
102         $(XKB_LIBS) \
103         $(XRANDR_LIBS) \
104         $(VIDMODE_LIBS) \
105         $(XSHAPE_LIBS) \
106         $(GLIB_LIBS) \
107         $(LIBSN_LIBS) \
108         $(XML_LIBS) \
109         $(EFENCE_LIBS) \
110         $(LIBINTL) \
111         render/libobrender.la \
112         parser/libobparser.la
113 openbox_openbox_LDFLAGS = -export-dynamic
114 openbox_openbox_SOURCES = \
115         gettext.h \
116         openbox/action.c \
117         openbox/action.h \
118         openbox/client.c \
119         openbox/client.h \
120         openbox/client_list_menu.c \
121         openbox/client_list_menu.h \
122         openbox/client_menu.c \
123         openbox/client_menu.h \
124         openbox/config.c \
125         openbox/config.h \
126         openbox/debug.c \
127         openbox/debug.h \
128         openbox/dock.c \
129         openbox/dock.h \
130         openbox/event.c \
131         openbox/event.h \
132         openbox/extensions.c \
133         openbox/extensions.h \
134         openbox/focus.c \
135         openbox/focus.h \
136         openbox/frame.c \
137         openbox/frame.h \
138         openbox/framerender.c \
139         openbox/framerender.h \
140         openbox/geom.h \
141         openbox/grab.c \
142         openbox/grab.h \
143         openbox/group.c \
144         openbox/group.h \
145         openbox/keyboard.c \
146         openbox/keyboard.h \
147         openbox/keytree.c \
148         openbox/keytree.h \
149         openbox/mainloop.c \
150         openbox/mainloop.h \
151         openbox/menuframe.c \
152         openbox/menuframe.h \
153         openbox/menu.c \
154         openbox/menu.h \
155         openbox/misc.h \
156         openbox/mouse.c \
157         openbox/mouse.h \
158         openbox/moveresize.c \
159         openbox/moveresize.h \
160         openbox/mwm.h \
161         openbox/openbox.c \
162         openbox/openbox.h \
163         openbox/place.c \
164         openbox/place.h \
165         openbox/popup.c \
166         openbox/popup.h \
167         openbox/prop.c \
168         openbox/prop.h \
169         openbox/resist.c \
170         openbox/resist.h \
171         openbox/screen.c \
172         openbox/screen.h \
173         openbox/session.c \
174         openbox/session.h \
175         openbox/stacking.c \
176         openbox/stacking.h \
177         openbox/startup.c \
178         openbox/startup.h \
179         openbox/translate.c \
180         openbox/translate.h \
181         openbox/window.c \
182         openbox/window.h \
183         openbox/xerror.c \
184         openbox/xerror.h
185
186 ## obconf ##
187
188 tools_obconf_obconf_CPPFLAGS = \
189         $(GTK_CFLAGS) \
190         $(GDK_PIXBUF_CFLAGS) \
191         $(XML_CFLAGS) \
192         -DLOCALEDIR=\"$(localedir)\" \
193         -DPLUGINDIR=\"$(plugindir)\" \
194         -DRCDIR=\"$(rcdir)\" \
195         -DPIXMAPDIR=\"$(pixmapdir)\" \
196         -DG_LOG_DOMAIN=\"Obconf\"
197 tools_obconf_obconf_LDADD = \
198         $(GTK_LIBS) \
199         $(GDK_PIXBUF_LIBS) \
200         $(LIBINTL) \
201         render/libobrender.la \
202         parser/libobparser.la
203 tools_obconf_obconf_SOURCES = \
204         gettext.h \
205         tools/obconf/main.c \
206         plugins/obconf_interface.h
207
208
209 ## kdetrayproxy ##
210
211 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
212         $(X_CFLAGS)
213 tools_kdetrayproxy_kdetrayproxy_LDADD = \
214         $(X_LIBS)
215 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
216         tools/kdetrayproxy/kdetrayproxy.c
217
218
219 ## themes ##
220
221 thebear_themedir = $(themedir)/thebear
222 dist_thebear_theme_DATA = \
223         themes/thebear/themerc
224
225 planton_themedir = $(themedir)/planton
226 dist_planton_theme_DATA = \
227         themes/planton/themerc \
228         themes/planton/max.xbm \
229         themes/planton/max_toggled.xbm \
230         themes/planton/desk.xbm \
231         themes/planton/desk_toggled.xbm \
232         themes/planton/shade.xbm \
233         themes/planton/shade_toggled.xbm \
234         themes/planton/iconify.xbm \
235         themes/planton/close.xbm
236
237 lightindustry_themedir = $(themedir)/Light-Industry
238 dist_lightindustry_theme_DATA = \
239         themes/Light-Industry/themerc \
240         themes/Light-Industry/max.xbm \
241         themes/Light-Industry/iconify.xbm \
242         themes/Light-Industry/close.xbm
243
244 lightindustrybig_themedir = $(themedir)/Light-Industry-big
245 dist_lightindustrybig_theme_DATA = \
246         themes/Light-Industry-big/themerc \
247         themes/Light-Industry-big/max.xbm \
248         themes/Light-Industry-big/iconify.xbm \
249         themes/Light-Industry-big/close.xbm
250
251 imerry_themedir = $(themedir)/I-merry
252 dist_imerry_theme_DATA = \
253         themes/I-merry/themerc \
254         themes/I-merry/max.xbm \
255         themes/I-merry/iconify.xbm \
256         themes/I-merry/close.xbm
257
258 greenz_themedir = $(themedir)/greenz
259 dist_greenz_theme_DATA = \
260         themes/greenz/themerc
261
262 bbstyle_themedir = $(themedir)/BBstylE
263 dist_bbstyle_theme_DATA = \
264         themes/BBstylE/themerc \
265         themes/BBstylE/max.xbm \
266         themes/BBstylE/max_toggled.xbm \
267         themes/BBstylE/desk.xbm \
268         themes/BBstylE/desk_toggled.xbm \
269         themes/BBstylE/shade.xbm \
270         themes/BBstylE/shade_toggled.xbm \
271         themes/BBstylE/iconify.xbm \
272         themes/BBstylE/close.xbm
273
274 om4ob_themedir = $(themedir)/om4ob
275 dist_om4ob_theme_DATA = \
276         themes/om4ob/themerc \
277         themes/om4ob/close_hover.xbm \
278         themes/om4ob/close.xbm \
279         themes/om4ob/desk_hover.xbm \
280         themes/om4ob/desk_toggled.xbm \
281         themes/om4ob/desk.xbm \
282         themes/om4ob/iconify_hover.xbm \
283         themes/om4ob/iconify_pressed.xbm \
284         themes/om4ob/iconify.xbm \
285         themes/om4ob/max_disabled.xbm \
286         themes/om4ob/max_hover.xbm \
287         themes/om4ob/max_pressed.xbm \
288         themes/om4ob/max_toggled.xbm \
289         themes/om4ob/max.xbm \
290         themes/om4ob/shade_disabled.xbm \
291         themes/om4ob/shade_hover.xbm \
292         themes/om4ob/shade_toggled.xbm \
293         themes/om4ob/shade.xbm
294
295
296 ## data ##
297
298 dist_rc_DATA = \
299         data/rc3 \
300         data/menu
301
302 dist_desktopfiles_DATA = \
303         data/openbox.desktop
304
305 EXTRA_DIST = \
306         config.rpath \
307         mkinstalldirs \
308         README \
309         COPYING \
310         AUTHORS
311
312 #doc:
313 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
314
315 distclean-local:
316         for d in . m4 po render; do \
317                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
318                         rm -f "$$d/$$p"; \
319                 done \
320         done
321
322 .PHONY: doc