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