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