]> icculus.org git repositories - dana/openbox.git/blob - Makefile.am
add ob_main_loop_timeout_remove_data.
[dana/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         -DRCDIR=\"$(rcdir)\" \
194         -DPIXMAPDIR=\"$(pixmapdir)\" \
195         -DG_LOG_DOMAIN=\"Obconf\"
196 tools_obconf_obconf_LDADD = \
197         $(GTK_LIBS) \
198         $(GDK_PIXBUF_LIBS) \
199         $(LIBINTL) \
200         render/libobrender.la \
201         parser/libobparser.la
202 tools_obconf_obconf_SOURCES = \
203         gettext.h \
204         tools/obconf/main.c
205
206
207 ## kdetrayproxy ##
208
209 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
210         $(X_CFLAGS)
211 tools_kdetrayproxy_kdetrayproxy_LDADD = \
212         $(X_LIBS)
213 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
214         tools/kdetrayproxy/kdetrayproxy.c
215
216
217 ## themes ##
218
219 allegro_themedir = $(themedir)/allegro
220 dist_allegro_theme_DATA = \
221         themes/allegro/themerc \
222         themes/allegro/bullet.xbm
223
224 artwiz_themedir = $(themedir)/artwiz
225 dist_artwiz_theme_DATA = \
226         themes/artwiz/themerc
227
228 blah41_themedir = $(themedir)/blah41
229 dist_blah41_theme_DATA = \
230         themes/blah41/themerc
231
232 om4ob_themedir = $(themedir)/om4ob
233 dist_om4ob_theme_DATA = \
234         themes/om4ob/themerc \
235         themes/om4ob/close_hover.xbm \
236         themes/om4ob/close.xbm \
237         themes/om4ob/desk_hover.xbm \
238         themes/om4ob/desk_toggled.xbm \
239         themes/om4ob/desk.xbm \
240         themes/om4ob/iconify_hover.xbm \
241         themes/om4ob/iconify_pressed.xbm \
242         themes/om4ob/iconify.xbm \
243         themes/om4ob/max_disabled.xbm \
244         themes/om4ob/max_hover.xbm \
245         themes/om4ob/max_pressed.xbm \
246         themes/om4ob/max_toggled.xbm \
247         themes/om4ob/max.xbm \
248         themes/om4ob/shade_disabled.xbm \
249         themes/om4ob/shade_hover.xbm \
250         themes/om4ob/shade_toggled.xbm \
251         themes/om4ob/shade.xbm
252
253 thebear_themedir = $(themedir)/thebear
254 dist_thebear_theme_DATA = \
255         themes/thebear/themerc
256
257
258 ## data ##
259
260 dist_rc_DATA = \
261         data/rc.xml \
262         data/menu.xml
263
264 dist_desktopfiles_DATA = \
265         data/openbox.desktop
266
267 dist_noinst_DATA = \
268         tools/themeupdate/themeupdate.py
269
270 EXTRA_DIST = \
271         config.rpath \
272         mkinstalldirs \
273         README \
274         COPYING \
275         AUTHORS
276
277 #doc:
278 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
279
280 distclean-local:
281         for d in . m4 po render; do \
282                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
283                         rm -f "$$d/$$p"; \
284                 done \
285         done
286
287 .PHONY: doc