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