]> icculus.org git repositories - mikachu/openbox.git/blob - Makefile.am
recent changes
[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 pkgconfigdir    = $(libdir)/pkgconfig
8 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
9 pixmapdir       = $(datadir)/pixmaps
10
11 theme = thebear
12
13 AUTOMAKE_OPTIONS = subdir-objects
14 ACLOCAL_AMFLAGS = -I m4
15
16 INCLUDES = -I.
17
18 noinst_PROGRAMS = \
19         render/rendertest
20
21 lib_LTLIBRARIES = \
22         render/libobrender.la \
23         parser/libobparser.la
24
25 bin_PROGRAMS = \
26         openbox/openbox \
27         tools/kdetrayproxy/kdetrayproxy
28
29 ## render ##
30
31 render_rendertest_CPPFLAGS = \
32         $(XFT_CFLAGS) \
33         $(GLIB_CFLAGS) \
34         -DG_LOG_DOMAIN=\"RenderTest\"
35 render_rendertest_LDADD = render/libobrender.la
36 render_rendertest_SOURCES = render/test.c
37
38 render_libobrender_la_CPPFLAGS = \
39         $(X_CFLAGS) \
40         $(XFT_CFLAGS) \
41         $(GLIB_CFLAGS) \
42         -DG_LOG_DOMAIN=\"ObRender\" \
43         -DDEFAULT_THEME=\"$(theme)\" \
44         -DTHEMEDIR=\"$(themedir)\"
45 render_libobrender_la_LIBADD = \
46         $(X_LIBS) \
47         $(XFT_LIBS) \
48         $(GLIB_LIBS)
49 render_libobrender_la_SOURCES = \
50         gettext.h \
51         render/color.h \
52         render/color.c \
53         render/font.h \
54         render/font.c \
55         render/geom.h \
56         render/gradient.h \
57         render/gradient.c \
58         render/icon.h \
59         render/image.h \
60         render/image.c \
61         render/instance.h \
62         render/instance.c \
63         render/mask.h \
64         render/mask.c \
65         render/render.h \
66         render/render.c \
67         render/theme.h \
68         render/theme.c
69
70 ## parser ##
71
72 parser_libobparser_la_CPPFLAGS = \
73         $(GLIB_CFLAGS) \
74         $(XML_CFLAGS) \
75         -DG_LOG_DOMAIN=\"ObParser\" \
76         -DLOCALEDIR=\"$(localedir)\" \
77         -DRCDIR=\"$(rcdir)\"
78 parser_libobparser_la_LIBADD = \
79         $(GLIB_LIBS) \
80         $(XML_LIBS)
81 parser_libobparser_la_SOURCES = \
82         parser/parse.h \
83         parser/parse.c
84
85 ## openbox ##
86
87 openbox_openbox_CPPFLAGS = \
88         $(X_CFLAGS) \
89         $(SM_CFLAGS) \
90         $(XFT_CFLAGS) \
91         $(GLIB_CFLAGS) \
92         $(LIBSN_CFLAGS) \
93         $(XML_CFLAGS) \
94         -DLOCALEDIR=\"$(localedir)\" \
95         -DRCDIR=\"$(rcdir)\" \
96         -DG_LOG_DOMAIN=\"Openbox\"
97 openbox_openbox_LDADD = \
98         $(SM_LIBS) \
99         $(XINERAMA_LIBS) \
100         $(XKB_LIBS) \
101         $(XRANDR_LIBS) \
102         $(VIDMODE_LIBS) \
103         $(XSHAPE_LIBS) \
104         $(GLIB_LIBS) \
105         $(LIBSN_LIBS) \
106         $(XML_LIBS) \
107         $(EFENCE_LIBS) \
108         $(LIBINTL) \
109         render/libobrender.la \
110         parser/libobparser.la
111 openbox_openbox_LDFLAGS = -export-dynamic
112 openbox_openbox_SOURCES = \
113         gettext.h \
114         openbox/action.c \
115         openbox/action.h \
116         openbox/client.c \
117         openbox/client.h \
118         openbox/client_list_menu.c \
119         openbox/client_list_menu.h \
120         openbox/client_menu.c \
121         openbox/client_menu.h \
122         openbox/config.c \
123         openbox/config.h \
124         openbox/debug.c \
125         openbox/debug.h \
126         openbox/dock.c \
127         openbox/dock.h \
128         openbox/event.c \
129         openbox/event.h \
130         openbox/extensions.c \
131         openbox/extensions.h \
132         openbox/focus.c \
133         openbox/focus.h \
134         openbox/frame.c \
135         openbox/frame.h \
136         openbox/framerender.c \
137         openbox/framerender.h \
138         openbox/geom.h \
139         openbox/grab.c \
140         openbox/grab.h \
141         openbox/group.c \
142         openbox/group.h \
143         openbox/keyboard.c \
144         openbox/keyboard.h \
145         openbox/keytree.c \
146         openbox/keytree.h \
147         openbox/mainloop.c \
148         openbox/mainloop.h \
149         openbox/menuframe.c \
150         openbox/menuframe.h \
151         openbox/menu.c \
152         openbox/menu.h \
153         openbox/misc.h \
154         openbox/mouse.c \
155         openbox/mouse.h \
156         openbox/moveresize.c \
157         openbox/moveresize.h \
158         openbox/mwm.h \
159         openbox/openbox.c \
160         openbox/openbox.h \
161         openbox/place.c \
162         openbox/place.h \
163         openbox/popup.c \
164         openbox/popup.h \
165         openbox/prop.c \
166         openbox/prop.h \
167         openbox/resist.c \
168         openbox/resist.h \
169         openbox/screen.c \
170         openbox/screen.h \
171         openbox/session.c \
172         openbox/session.h \
173         openbox/stacking.c \
174         openbox/stacking.h \
175         openbox/startupnotify.c \
176         openbox/startupnotify.h \
177         openbox/translate.c \
178         openbox/translate.h \
179         openbox/window.c \
180         openbox/window.h \
181         openbox/xerror.c \
182         openbox/xerror.h
183
184
185 ## kdetrayproxy ##
186
187 tools_kdetrayproxy_kdetrayproxy_CPPFLAGS = \
188         $(X_CFLAGS)
189 tools_kdetrayproxy_kdetrayproxy_LDADD = \
190         $(X_LIBS)
191 tools_kdetrayproxy_kdetrayproxy_SOURCES = \
192         tools/kdetrayproxy/kdetrayproxy.c
193
194
195 ## themes ##
196
197 allegro_themedir = $(themedir)/allegro
198 dist_allegro_theme_DATA = \
199         themes/allegro/themerc \
200         themes/allegro/bullet.xbm
201
202 artwiz_themedir = $(themedir)/artwiz
203 dist_artwiz_theme_DATA = \
204         themes/artwiz/themerc
205
206 blah41_themedir = $(themedir)/blah41
207 dist_blah41_theme_DATA = \
208         themes/blah41/themerc
209
210 om4ob_themedir = $(themedir)/om4ob
211 dist_om4ob_theme_DATA = \
212         themes/om4ob/themerc \
213         themes/om4ob/close_hover.xbm \
214         themes/om4ob/close.xbm \
215         themes/om4ob/desk_hover.xbm \
216         themes/om4ob/desk_toggled.xbm \
217         themes/om4ob/desk.xbm \
218         themes/om4ob/iconify_hover.xbm \
219         themes/om4ob/iconify_pressed.xbm \
220         themes/om4ob/iconify.xbm \
221         themes/om4ob/max_disabled.xbm \
222         themes/om4ob/max_hover.xbm \
223         themes/om4ob/max_pressed.xbm \
224         themes/om4ob/max_toggled.xbm \
225         themes/om4ob/max.xbm \
226         themes/om4ob/shade_disabled.xbm \
227         themes/om4ob/shade_hover.xbm \
228         themes/om4ob/shade_toggled.xbm \
229         themes/om4ob/shade.xbm
230
231 thebear_themedir = $(themedir)/thebear
232 dist_thebear_theme_DATA = \
233         themes/thebear/themerc
234
235
236 ## public headers ##
237
238 pubinclude_HEADERS = \
239         render/render.h \
240         render/theme.h \
241         parser/parse.h
242
243 nodist_pkgconfig_DATA = \
244         render/obrender-3.0.pc \
245         parser/obparser-3.0.pc
246
247 ## data ##
248
249 dist_pixmap_DATA = \
250         data/openbox.png
251
252 dist_rc_DATA = \
253         data/rc.xml \
254         data/menu.xml
255
256 dist_desktopfiles_DATA = \
257         data/openbox.desktop
258
259 dist_noinst_DATA = \
260         render/obrender-3.0.pc.in \
261         parser/obparser-3.0.pc.in \
262         tools/themeupdate/themeupdate.py
263
264 EXTRA_DIST = \
265         config.rpath \
266         mkinstalldirs \
267         README \
268         COPYING \
269         AUTHORS
270
271 #doc:
272 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
273
274 distclean-local:
275         for d in . m4 po render; do \
276                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
277                         rm -f "$$d/$$p"; \
278                 done \
279         done
280
281 .PHONY: doc