a27eba242215e3f21e016913baa4c6938ad5372f
[dana/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 obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt
12 rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/render
13 pixmapdir       = $(datadir)/pixmaps
14 xsddir          = $(datadir)/openbox
15
16 theme = Clearlooks
17
18 AUTOMAKE_OPTIONS = subdir-objects foreign
19
20 ACLOCAL_AMFLAGS = -I m4
21
22 INCLUDES = -I.
23
24 check_PROGRAMS = \
25         render/rendertest
26
27 lib_LTLIBRARIES = \
28         render/libobrender.la \
29         obt/libobt.la
30
31 bin_PROGRAMS = \
32         openbox/openbox \
33         tools/gnome-panel-control/gnome-panel-control
34
35 nodist_bin_SCRIPTS = \
36         data/xsession/openbox-session \
37         data/xsession/openbox-gnome-session \
38         data/xsession/openbox-kde-session
39
40 ## render ##
41
42 render_rendertest_CPPFLAGS = \
43         $(PANGO_CFLAGS) \
44         $(XFT_CFLAGS) \
45         $(GLIB_CFLAGS) \
46         -DG_LOG_DOMAIN=\"RenderTest\"
47 render_rendertest_LDADD = \
48         obt/libobt.la \
49         render/libobrender.la \
50         $(GLIB_LIBS) \
51         $(PANGO_LIBS) \
52         $(XFT_LIBS) \
53         $(XML_LIBS) \
54         $(X_LIBS)
55 render_rendertest_SOURCES = render/test.c
56
57 render_libobrender_la_CPPFLAGS = \
58         $(X_CFLAGS) \
59         $(GLIB_CFLAGS) \
60         $(XML_CFLAGS) \
61         $(PANGO_CFLAGS) \
62         $(XFT_CFLAGS) \
63         -DG_LOG_DOMAIN=\"ObRender\" \
64         -DDEFAULT_THEME=\"$(theme)\"
65 render_libobrender_la_LDFLAGS = \
66         -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
67 render_libobrender_la_LIBADD = \
68         obt/libobt.la \
69         $(X_LIBS) \
70         $(PANGO_LIBS) \
71         $(XFT_LIBS) \
72         $(GLIB_LIBS) \
73         $(XML_LIBS)
74 render_libobrender_la_SOURCES = \
75         gettext.h \
76         render/color.h \
77         render/color.c \
78         render/font.h \
79         render/font.c \
80         render/geom.h \
81         render/gradient.h \
82         render/gradient.c \
83         render/icon.h \
84         render/image.h \
85         render/image.c \
86         render/instance.h \
87         render/instance.c \
88         render/mask.h \
89         render/mask.c \
90         render/render.h \
91         render/render.c \
92         render/theme.h \
93         render/theme.c
94
95 ## obt ##
96
97 obt_libobt_la_CPPFLAGS = \
98         $(XINERAMA_CFLAGS) \
99         $(XKB_CFLAGS) \
100         $(XRANDR_CFLAGS) \
101         $(XSHAPE_CFLAGS) \
102         $(XSYNC_CFLAGS) \
103         $(XRENDER_CFLAGS) \
104         $(XDAMAGE_CFLAGS) \
105         $(XCOMPOSITE_CFLAGS) \
106         $(GLIB_CFLAGS) \
107         $(XML_CFLAGS) \
108         -DG_LOG_DOMAIN=\"Obt\" \
109         -DLOCALEDIR=\"$(localedir)\" \
110         -DDATADIR=\"$(datadir)\" \
111         -DCONFIGDIR=\"$(configdir)\"
112 obt_libobt_la_LDFLAGS = \
113         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
114 obt_libobt_la_LIBADD = \
115         $(XINERAMA_LIBS) \
116         $(XKB_LIBS) \
117         $(XRANDR_LIBS) \
118         $(XSHAPE_LIBS) \
119         $(XSYNC_LIBS) \
120         $(XRENDER_LIBS) \
121         $(XDAMAGE_LIBS) \
122         $(XCOMPOSITE_LIBS) \
123         $(GLIB_LIBS) \
124         $(XML_LIBS)
125 obt_libobt_la_SOURCES = \
126         obt/display.h \
127         obt/display.c \
128         obt/internal.h \
129         obt/keyboard.h \
130         obt/keyboard.c \
131         obt/mainloop.h \
132         obt/mainloop.c \
133         obt/parse.h \
134         obt/parse.c \
135         obt/paths.h \
136         obt/paths.c \
137         obt/prop.h \
138         obt/prop.c \
139         obt/util.h \
140         obt/xevent.h \
141         obt/xevent.c
142
143 ## openbox ##
144
145 openbox_openbox_CPPFLAGS = \
146         $(SM_CFLAGS) \
147         $(X_CFLAGS) \
148         $(XCURSOR_CFLAGS) \
149         $(SM_CFLAGS) \
150         $(PANGO_CFLAGS) \
151         $(GLIB_CFLAGS) \
152         $(LIBSN_CFLAGS) \
153         $(XML_CFLAGS) \
154         -DLOCALEDIR=\"$(localedir)\" \
155         -DDATADIR=\"$(datadir)\" \
156         -DCONFIGDIR=\"$(configdir)\" \
157         -DG_LOG_DOMAIN=\"Openbox\"
158 openbox_openbox_LDADD = \
159         $(SM_LIBS) \
160         $(GLIB_LIBS) \
161         $(X_LIBS) \
162         $(XCURSOR_LIBS) \
163         $(LIBSN_LIBS) \
164         $(XML_LIBS) \
165         $(EFENCE_LIBS) \
166         $(LIBINTL) \
167         render/libobrender.la \
168         obt/libobt.la
169 openbox_openbox_LDFLAGS = -export-dynamic
170 openbox_openbox_SOURCES = \
171         gettext.h \
172         openbox/actions/all.c \
173         openbox/actions/all.h \
174         openbox/actions/addremovedesktop.c \
175         openbox/actions/breakchroot.c \
176         openbox/actions/close.c \
177         openbox/actions/cyclewindows.c \
178         openbox/actions/debug.c \
179         openbox/actions/decorations.c \
180         openbox/actions/desktop.c \
181         openbox/actions/dockautohide.c \
182         openbox/actions/directionalwindows.c \
183         openbox/actions/execute.c \
184         openbox/actions/exit.c \
185         openbox/actions/focus.c \
186         openbox/actions/focustobottom.c \
187         openbox/actions/fullscreen.c \
188         openbox/actions/growtoedge.c \
189         openbox/actions/iconify.c \
190         openbox/actions/if.c \
191         openbox/actions/kill.c \
192         openbox/actions/layer.c \
193         openbox/actions/lower.c \
194         openbox/actions/maximize.c \
195         openbox/actions/move.c \
196         openbox/actions/moverelative.c \
197         openbox/actions/moveresizeto.c \
198         openbox/actions/movetoedge.c \
199         openbox/actions/omnipresent.c \
200         openbox/actions/raise.c \
201         openbox/actions/raiselower.c \
202         openbox/actions/reconfigure.c \
203         openbox/actions/resize.c \
204         openbox/actions/resizerelative.c \
205         openbox/actions/restart.c \
206         openbox/actions/shade.c \
207         openbox/actions/showdesktop.c \
208         openbox/actions/showmenu.c \
209         openbox/actions/unfocus.c \
210         openbox/actions.c \
211         openbox/actions.h \
212         openbox/client.c \
213         openbox/client.h \
214         openbox/client_list_menu.c \
215         openbox/client_list_menu.h \
216         openbox/client_list_combined_menu.c \
217         openbox/client_list_combined_menu.h \
218         openbox/client_menu.c \
219         openbox/client_menu.h \
220         openbox/config.c \
221         openbox/config.h \
222         openbox/debug.c \
223         openbox/debug.h \
224         openbox/dock.c \
225         openbox/dock.h \
226         openbox/event.c \
227         openbox/event.h \
228         openbox/focus.c \
229         openbox/focus.h \
230         openbox/focus_cycle.c \
231         openbox/focus_cycle.h \
232         openbox/focus_cycle_indicator.c \
233         openbox/focus_cycle_indicator.h \
234         openbox/focus_cycle_popup.c \
235         openbox/focus_cycle_popup.h \
236         openbox/frame.c \
237         openbox/frame.h \
238         openbox/framerender.c \
239         openbox/framerender.h \
240         openbox/geom.h \
241         openbox/grab.c \
242         openbox/grab.h \
243         openbox/group.c \
244         openbox/group.h \
245         openbox/keyboard.c \
246         openbox/keyboard.h \
247         openbox/keytree.c \
248         openbox/keytree.h \
249         openbox/menuframe.c \
250         openbox/menuframe.h \
251         openbox/menu.c \
252         openbox/menu.h \
253         openbox/misc.h \
254         openbox/mouse.c \
255         openbox/mouse.h \
256         openbox/moveresize.c \
257         openbox/moveresize.h \
258         openbox/mwm.h \
259         openbox/openbox.c \
260         openbox/openbox.h \
261         openbox/ping.c \
262         openbox/ping.h \
263         openbox/place.c \
264         openbox/place.h \
265         openbox/popup.c \
266         openbox/popup.h \
267         openbox/resist.c \
268         openbox/resist.h \
269         openbox/screen.c \
270         openbox/screen.h \
271         openbox/session.c \
272         openbox/session.h \
273         openbox/stacking.c \
274         openbox/stacking.h \
275         openbox/startupnotify.c \
276         openbox/startupnotify.h \
277         openbox/translate.c \
278         openbox/translate.h \
279         openbox/window.c \
280         openbox/window.h
281
282 ## gnome-panel-control ##
283
284 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
285         $(X_CFLAGS)
286 tools_gnome_panel_control_gnome_panel_control_LDADD = \
287         $(X_LIBS)
288 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
289         tools/gnome-panel-control/gnome-panel-control.c
290
291
292 ## default button masks ##
293 dist_docxbm_DATA = \
294         data/xbm/bullet.xbm \
295         data/xbm/close.xbm \
296         data/xbm/desk_toggled.xbm \
297         data/xbm/desk.xbm \
298         data/xbm/iconify.xbm \
299         data/xbm/max_toggled.xbm \
300         data/xbm/max.xbm \
301         data/xbm/shade_toggled.xbm \
302         data/xbm/shade.xbm
303
304
305 ## themes ##
306
307 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
308 dist_clearlooks_theme_DATA= \
309         themes/Clearlooks/openbox-3/themerc
310
311 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
312 dist_clearlooks34_theme_DATA= \
313         themes/Clearlooks-3.4/openbox-3/themerc
314
315 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
316 dist_clearlooksolive_theme_DATA= \
317         themes/Clearlooks-Olive/openbox-3/themerc
318
319 mikachu_themedir = $(themedir)/Mikachu/openbox-3
320 dist_mikachu_theme_DATA= \
321         themes/Mikachu/openbox-3/bullet.xbm \
322         themes/Mikachu/openbox-3/close.xbm \
323         themes/Mikachu/openbox-3/desk.xbm \
324         themes/Mikachu/openbox-3/iconify.xbm \
325         themes/Mikachu/openbox-3/max.xbm \
326         themes/Mikachu/openbox-3/themerc
327
328
329 natura_themedir = $(themedir)/Natura/openbox-3
330 dist_natura_theme_DATA= \
331         themes/Natura/openbox-3/close_hover.xbm \
332         themes/Natura/openbox-3/close.xbm \
333         themes/Natura/openbox-3/desk_toggled.xbm \
334         themes/Natura/openbox-3/desk_hover.xbm \
335         themes/Natura/openbox-3/desk.xbm \
336         themes/Natura/openbox-3/iconify_hover.xbm \
337         themes/Natura/openbox-3/iconify.xbm \
338         themes/Natura/openbox-3/max_hover.xbm \
339         themes/Natura/openbox-3/max_toggled.xbm \
340         themes/Natura/openbox-3/max.xbm \
341         themes/Natura/openbox-3/shade.xbm \
342         themes/Natura/openbox-3/shade_hover.xbm \
343         themes/Natura/openbox-3/themerc
344
345 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
346 dist_artwizboxed_theme_DATA= \
347         themes/Artwiz-boxed/openbox-3/themerc
348
349 bear2_themedir = $(themedir)/Bear2/openbox-3
350 dist_bear2_theme_DATA= \
351         themes/Bear2/openbox-3/close_pressed.xbm \
352         themes/Bear2/openbox-3/close.xbm \
353         themes/Bear2/openbox-3/desk_toggled.xbm \
354         themes/Bear2/openbox-3/desk.xbm \
355         themes/Bear2/openbox-3/iconify_pressed.xbm \
356         themes/Bear2/openbox-3/iconify.xbm \
357         themes/Bear2/openbox-3/max_pressed.xbm \
358         themes/Bear2/openbox-3/max_toggled.xbm \
359         themes/Bear2/openbox-3/max.xbm \
360         themes/Bear2/openbox-3/shade_pressed.xbm \
361         themes/Bear2/openbox-3/shade.xbm \
362         themes/Bear2/openbox-3/themerc
363
364 orang_themedir = $(themedir)/Orang/openbox-3
365 dist_orang_theme_DATA= \
366         themes/Orang/openbox-3/themerc
367
368 onyx_themedir = $(themedir)/Onyx/openbox-3
369 dist_onyx_theme_DATA= \
370         themes/Onyx/openbox-3/themerc
371
372 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
373 dist_onyxcitrus_theme_DATA= \
374         themes/Onyx-Citrus/openbox-3/themerc
375
376 syscrash_themedir = $(themedir)/Syscrash/openbox-3
377 dist_syscrash_theme_DATA= \
378         themes/Syscrash/openbox-3/max_disabled.xbm \
379         themes/Syscrash/openbox-3/max_pressed.xbm \
380         themes/Syscrash/openbox-3/max_toggled.xbm \
381         themes/Syscrash/openbox-3/max.xbm \
382         themes/Syscrash/openbox-3/themerc
383
384 ## public headers ##
385
386 rrpubinclude_HEADERS = \
387         render/color.h \
388         render/font.h \
389         render/geom.h \
390         render/gradient.h \
391         render/image.h \
392         render/instance.h \
393         render/mask.h \
394         render/render.h \
395         render/theme.h \
396         render/version.h
397
398 obtpubinclude_HEADERS = \
399         obt/display.h \
400         obt/keyboard.h \
401         obt/mainloop.h \
402         obt/parse.h \
403         obt/paths.h \
404         obt/prop.h \
405         obt/util.h \
406         obt/version.h \
407         obt/xevent.h
408
409 nodist_pkgconfig_DATA = \
410         render/obrender-4.0.pc \
411         obt/obt-4.0.pc
412
413 ## data ##
414
415 dist_pixmap_DATA = \
416         data/openbox.png
417
418 dist_rc_DATA = \
419         data/autostart.sh \
420         data/rc.xml \
421         data/menu.xml
422
423 edit = $(SED) \
424         -e 's!@version\@!$(VERSION)!' \
425         -e 's!@configdir\@!$(configdir)!' \
426         -e 's!@bindir\@!$(bindir)!'
427
428 %.desktop: %.desktop.in Makefile
429         @echo make: creating $@
430         @$(edit) $< >$@ 
431
432 %-session: %-session.in Makefile
433         @echo make: creating $@
434         @$(edit) $< >$@ 
435
436 %.1.in: %.1.sgml
437         @echo make: creating $@
438         @docbook-to-man $< >$@
439
440 %.1: %.1.in Makefile
441         @echo make: creating $@
442         @$(edit) $< >$@ 
443
444 dist_gnomewmfiles_DATA = \
445         data/gnome-wm-properties/openbox.desktop
446
447 nodist_xsessions_DATA = \
448         data/xsession/openbox.desktop \
449         data/xsession/openbox-gnome.desktop \
450         data/xsession/openbox-kde.desktop
451
452 dist_noinst_DATA = \
453         data/rc.xsd \
454         data/menu.xsd \
455         data/xsession/openbox.desktop.in \
456         data/xsession/openbox-gnome.desktop.in \
457         data/xsession/openbox-kde.desktop.in \
458         data/xsession/openbox-session.in \
459         data/xsession/openbox-gnome-session.in \
460         data/xsession/openbox-kde-session.in \
461         doc/openbox.1.sgml \
462         doc/openbox.1.in \
463         doc/openbox-session.1.sgml \
464         doc/openbox-session.1.in \
465         doc/openbox-gnome-session.1.sgml \
466         doc/openbox-gnome-session.1.in \
467         doc/openbox-kde-session.1.sgml \
468         doc/openbox-kde-session.1.in \
469         render/version.h.in \
470         render/obrender-4.0.pc.in \
471         obt/obt-4.0.pc.in \
472         obt/version.h.in \
473         tools/themeupdate/themeupdate.py \
474         tests/hideshow.py \
475         tests/Makefile \
476         tests/aspect.c \
477         tests/fullscreen.c \
478         tests/grav.c \
479         tests/grouptran.c \
480         tests/icons.c \
481         tests/modal2.c \
482         tests/modal3.c \
483         tests/modal.c \
484         tests/noresize.c \
485         tests/override.c \
486         tests/positioned.c \
487         tests/strut.c \
488         tests/title.c \
489         tests/urgent.c
490
491 dist_doc_DATA = \
492         COMPLIANCE \
493         README \
494         AUTHORS \
495         CHANGELOG \
496         COPYING \
497         data/rc.xsd \
498         data/menu.xsd \
499         doc/rc-mouse-focus.xml
500
501 nodist_man_MANS = \
502         doc/openbox.1 \
503         doc/openbox-session.1 \
504         doc/openbox-gnome-session.1 \
505         doc/openbox-kde-session.1
506
507 EXTRA_DIST = \
508         config.rpath
509
510 # make clean doesn't delete these for some reason, even though they are
511 # built by make
512 CLEANFILES = \
513         doc/openbox.1 \
514         doc/openbox-session.1 \
515         doc/openbox-gnome-session.1 \
516         doc/openbox-kde-session.1 \
517         data/xsession/openbox-session \
518         data/xsession/openbox-gnome-session \
519         data/xsession/openbox-kde-session \
520         data/xsession/openbox.desktop \
521         data/xsession/openbox-gnome.desktop \
522         data/xsession/openbox-kde.desktop
523
524 #doc:
525 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
526
527 distclean-local:
528         for d in . m4 po render parser obt openbox; do \
529                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
530                         rm -f "$$d/$$p"; \
531                 done \
532         done
533
534 .PHONY: doc