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