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