]> Dogcows Code - chaz/openbox/blob - Makefile.am
be621a079bc5746ae4a791a752186abf4f58e157
[chaz/openbox] / 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 xsddir = $(datadir)/openbox
12 userscriptdir = $(datadir)/openbox
13
14 theme = bear2
15
16 AUTOMAKE_OPTIONS = subdir-objects foreign
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 INCLUDES = -I.
21
22 check_PROGRAMS = \
23 render/rendertest
24
25 lib_LTLIBRARIES = \
26 parser/libobparser.la \
27 render/libobrender.la
28
29 bin_PROGRAMS = \
30 openbox/openbox \
31 tools/themetoxml/themetoxml \
32 tools/gnome-panel-control/gnome-panel-control
33
34 ## render ##
35
36 render_rendertest_CPPFLAGS = \
37 $(PANGO_CFLAGS) \
38 $(GLIB_CFLAGS) \
39 -DG_LOG_DOMAIN=\"RenderTest\"
40 render_rendertest_LDADD = \
41 parser/libobparser.la \
42 render/libobrender.la \
43 $(GLIB_LIBS) \
44 $(PANGO_LIBS) \
45 $(XML_LIBS) \
46 $(X_LIBS)
47 render_rendertest_SOURCES = render/test.c
48
49 render_libobrender_la_CPPFLAGS = \
50 $(X_CFLAGS) \
51 $(GLIB_CFLAGS) \
52 $(XML_CFLAGS) \
53 $(PANGO_CFLAGS) \
54 -DG_LOG_DOMAIN=\"ObRender\" \
55 -DDEFAULT_THEME=\"$(theme)\"
56 render_libobrender_la_LDFLAGS = \
57 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
58 render_libobrender_la_LIBADD = \
59 parser/libobparser.la \
60 $(X_LIBS) \
61 $(PANGO_LIBS) \
62 $(GLIB_LIBS) \
63 $(XML_LIBS)
64 render_libobrender_la_SOURCES = \
65 gettext.h \
66 render/color.h \
67 render/color.c \
68 render/font.h \
69 render/font.c \
70 render/geom.h \
71 render/gradient.h \
72 render/gradient.c \
73 render/icon.h \
74 render/image.h \
75 render/image.c \
76 render/instance.h \
77 render/instance.c \
78 render/mask.h \
79 render/mask.c \
80 render/render.h \
81 render/render.c \
82 render/theme.h \
83 render/theme.c
84
85 ## parser ##
86
87 parser_libobparser_la_CPPFLAGS = \
88 $(GLIB_CFLAGS) \
89 $(XML_CFLAGS) \
90 -DG_LOG_DOMAIN=\"ObParser\" \
91 -DLOCALEDIR=\"$(localedir)\" \
92 -DDATADIR=\"$(datadir)\" \
93 -DCONFIGDIR=\"$(configdir)\"
94 parser_libobparser_la_LDFLAGS = \
95 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
96 parser_libobparser_la_LIBADD = \
97 $(GLIB_LIBS) \
98 $(XML_LIBS)
99 parser_libobparser_la_SOURCES = \
100 parser/parse.h \
101 parser/parse.c
102
103 ## openbox ##
104
105 openbox_openbox_CPPFLAGS = \
106 $(X_CFLAGS) \
107 $(SM_CFLAGS) \
108 $(PANGO_CFLAGS) \
109 $(GLIB_CFLAGS) \
110 $(LIBSN_CFLAGS) \
111 $(XML_CFLAGS) \
112 -DLOCALEDIR=\"$(localedir)\" \
113 -DDATADIR=\"$(datadir)\" \
114 -DCONFIGDIR=\"$(configdir)\" \
115 -DG_LOG_DOMAIN=\"Openbox\"
116 openbox_openbox_LDADD = \
117 $(SM_LIBS) \
118 $(XINERAMA_LIBS) \
119 $(XKB_LIBS) \
120 $(XRANDR_LIBS) \
121 $(XSHAPE_LIBS) \
122 $(GLIB_LIBS) \
123 $(X_LIBS) \
124 $(LIBSN_LIBS) \
125 $(XML_LIBS) \
126 $(EFENCE_LIBS) \
127 $(LIBINTL) \
128 render/libobrender.la \
129 parser/libobparser.la
130 openbox_openbox_LDFLAGS = -export-dynamic
131 openbox_openbox_SOURCES = \
132 gettext.h \
133 openbox/action.c \
134 openbox/action.h \
135 openbox/client.c \
136 openbox/client.h \
137 openbox/client_list_menu.c \
138 openbox/client_list_combined_menu.c \
139 openbox/client_list_combined_menu.h \
140 openbox/client_menu.c \
141 openbox/client_menu.h \
142 openbox/config.c \
143 openbox/config.h \
144 openbox/debug.c \
145 openbox/debug.h \
146 openbox/dock.c \
147 openbox/dock.h \
148 openbox/event.c \
149 openbox/event.h \
150 openbox/extensions.c \
151 openbox/extensions.h \
152 openbox/focus.c \
153 openbox/focus.h \
154 openbox/frame.c \
155 openbox/frame.h \
156 openbox/framerender.c \
157 openbox/framerender.h \
158 openbox/geom.h \
159 openbox/grab.c \
160 openbox/grab.h \
161 openbox/group.c \
162 openbox/group.h \
163 openbox/keyboard.c \
164 openbox/keyboard.h \
165 openbox/keytree.c \
166 openbox/keytree.h \
167 openbox/mainloop.c \
168 openbox/mainloop.h \
169 openbox/menuframe.c \
170 openbox/menuframe.h \
171 openbox/menu.c \
172 openbox/menu.h \
173 openbox/misc.h \
174 openbox/mouse.c \
175 openbox/mouse.h \
176 openbox/moveresize.c \
177 openbox/moveresize.h \
178 openbox/mwm.h \
179 openbox/openbox.c \
180 openbox/openbox.h \
181 openbox/place.c \
182 openbox/place.h \
183 openbox/popup.c \
184 openbox/popup.h \
185 openbox/prop.c \
186 openbox/prop.h \
187 openbox/resist.c \
188 openbox/resist.h \
189 openbox/screen.c \
190 openbox/screen.h \
191 openbox/session.c \
192 openbox/session.h \
193 openbox/stacking.c \
194 openbox/stacking.h \
195 openbox/startupnotify.c \
196 openbox/startupnotify.h \
197 openbox/translate.c \
198 openbox/translate.h \
199 openbox/window.c \
200 openbox/window.h \
201 openbox/xerror.c \
202 openbox/xerror.h
203
204
205 ## themetoxml ##
206
207 tools_themetoxml_themetoxml_CPPFLAGS = \
208 $(X_CFLAGS) \
209 $(GLIB_CFLAGS) \
210 $(XML_CFLAGS)
211 tools_themetoxml_themetoxml_LDADD = \
212 $(X_LIBS) \
213 $(GLIB_LIBS) \
214 $(XML_LIBS)
215 tools_themetoxml_themetoxml_SOURCES = \
216 tools/themetoxml/themetoxml.c \
217 tools/themetoxml/themetoxml.h \
218 tools/themetoxml/rgb.h
219
220
221 ## gnome-panel-control ##
222
223 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
224 $(X_CFLAGS)
225 tools_gnome_panel_control_gnome_panel_control_LDADD = \
226 $(X_LIBS)
227 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
228 tools/gnome-panel-control/gnome-panel-control.c
229
230
231 ## themes ##
232
233 mikachu_themedir = $(themedir)/Mikachu/openbox-3
234 dist_mikachu_theme_DATA= \
235 themes/Mikachu/openbox-3/bullet.xbm \
236 themes/Mikachu/openbox-3/close.xbm \
237 themes/Mikachu/openbox-3/desk.xbm \
238 themes/Mikachu/openbox-3/iconify.xbm \
239 themes/Mikachu/openbox-3/max.xbm \
240 themes/Mikachu/openbox-3/themerc
241
242
243 natura_themedir = $(themedir)/Natura/openbox-3
244 dist_natura_theme_DATA= \
245 themes/Natura/openbox-3/close_hover.xbm \
246 themes/Natura/openbox-3/close.xbm \
247 themes/Natura/openbox-3/desk_toggled.xbm \
248 themes/Natura/openbox-3/desk.xbm \
249 themes/Natura/openbox-3/iconify_disabled.xbm \
250 themes/Natura/openbox-3/iconify_hover.xbm \
251 themes/Natura/openbox-3/iconify.xbm \
252 themes/Natura/openbox-3/max_disabled.xbm \
253 themes/Natura/openbox-3/max_hover.xbm \
254 themes/Natura/openbox-3/max_toggled.xbm \
255 themes/Natura/openbox-3/max.xbm \
256 themes/Natura/openbox-3/shade.xbm \
257 themes/Natura/openbox-3/themerc
258
259 artwizboxed_themedir = $(themedir)/artwiz-boxed/openbox-3
260 dist_artwizboxed_theme_DATA= \
261 themes/artwiz-boxed/openbox-3/bullet.xbm \
262 themes/artwiz-boxed/openbox-3/close.xbm \
263 themes/artwiz-boxed/openbox-3/desk_toggled.xbm \
264 themes/artwiz-boxed/openbox-3/desk.xbm \
265 themes/artwiz-boxed/openbox-3/iconify.xbm \
266 themes/artwiz-boxed/openbox-3/max_toggled.xbm \
267 themes/artwiz-boxed/openbox-3/max.xbm \
268 themes/artwiz-boxed/openbox-3/themerc
269
270 bear2_themedir = $(themedir)/bear2/openbox-3
271 dist_bear2_theme_DATA= \
272 themes/bear2/openbox-3/close_pressed.xbm \
273 themes/bear2/openbox-3/close.xbm \
274 themes/bear2/openbox-3/desk_toggled.xbm \
275 themes/bear2/openbox-3/desk.xbm \
276 themes/bear2/openbox-3/iconify_disabled.xbm \
277 themes/bear2/openbox-3/iconify_pressed.xbm \
278 themes/bear2/openbox-3/iconify.xbm \
279 themes/bear2/openbox-3/max_disabled.xbm \
280 themes/bear2/openbox-3/max_pressed.xbm \
281 themes/bear2/openbox-3/max_toggled.xbm \
282 themes/bear2/openbox-3/max.xbm \
283 themes/bear2/openbox-3/shade_pressed.xbm \
284 themes/bear2/openbox-3/shade.xbm \
285 themes/bear2/openbox-3/themerc
286
287 orang_themedir = $(themedir)/orang/openbox-3
288 dist_orang_theme_DATA= \
289 themes/orang/openbox-3/themerc
290
291 syscrash_themedir = $(themedir)/syscrash/openbox-3
292 dist_syscrash_theme_DATA= \
293 themes/syscrash/openbox-3/bullet.xbm \
294 themes/syscrash/openbox-3/close_disabled.xbm \
295 themes/syscrash/openbox-3/close.xbm \
296 themes/syscrash/openbox-3/desk_toggled.xbm \
297 themes/syscrash/openbox-3/desk.xbm \
298 themes/syscrash/openbox-3/iconify.xbm \
299 themes/syscrash/openbox-3/max_disabled.xbm \
300 themes/syscrash/openbox-3/max_pressed.xbm \
301 themes/syscrash/openbox-3/max_toggled.xbm \
302 themes/syscrash/openbox-3/max.xbm \
303 themes/syscrash/openbox-3/shade.xbm \
304 themes/syscrash/openbox-3/themerc
305
306 ## public headers ##
307
308 pubinclude_HEADERS = \
309 render/color.h \
310 render/font.h \
311 render/geom.h \
312 render/gradient.h \
313 render/image.h \
314 render/instance.h \
315 render/mask.h \
316 render/render.h \
317 render/theme.h \
318 parser/parse.h
319
320 nodist_pubinclude_HEADERS = \
321 version.h
322
323 nodist_pkgconfig_DATA = \
324 render/obrender-3.0.pc \
325 parser/obparser-3.0.pc
326
327 ## data ##
328
329 dist_pixmap_DATA = \
330 data/openbox.png
331
332 nodist_rc_DATA = \
333 data/rc.xml \
334 data/menu.xml
335
336 dist_xsd_DATA = \
337 data/rc.xsd \
338 data/menu.xsd
339
340 edit = $(SED) \
341 -e 's!@version\@!$(VERSION)!' \
342 -e 's!@xsddir\@!$(xsddir)!'
343
344 data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
345 @echo make: creating $@
346 @rm -f $@
347 @mkdir data 2>/dev/null || true
348 @$(edit) $(srcdir)/data/rc.xml.in >$@
349
350 data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
351 @echo make: creating $@
352 @rm -f $@
353 @mkdir data 2>/dev/null || true
354 @$(edit) $(srcdir)/data/menu.xml.in >$@
355
356 dist_userscript_DATA = \
357 tools/themeupdate/themeupdate.py
358
359 install-data-hook:
360 chmod +x $(DESTDIR)$(userscriptdir)/themeupdate.py
361
362 dist_desktopfiles_DATA = \
363 data/openbox.desktop
364
365 dist_noinst_DATA = \
366 version.h.in \
367 data/rc.xml.in \
368 data/menu.xml.in \
369 render/obrender-3.0.pc.in \
370 parser/obparser-3.0.pc.in
371
372 EXTRA_DIST = \
373 config.rpath \
374 mkinstalldirs \
375 CHANGELOG \
376 COMPLIANCE \
377 README \
378 COPYING \
379 AUTHORS
380
381 CLEANFILES = \
382 data/rc.xml \
383 data/menu.xml
384
385 #doc:
386 # $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
387
388 distclean-local:
389 for d in . m4 po render; do \
390 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
391 rm -f "$$d/$$p"; \
392 done \
393 done
394
395 .PHONY: doc
This page took 0.057245 seconds and 3 git commands to generate.