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