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