]> git.donarmstrong.com Git - lilypond.git/blob - guile18/examples/Makefile.am
Import guile-1.8 as multiple upstream tarball component
[lilypond.git] / guile18 / examples / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2 ##
3 ##   Copyright (C) 2001, 2006, 2008, 2009 Free Software Foundation, Inc.
4 ##
5 ##   This file is part of GUILE.
6 ##   
7 ##   GUILE is free software; you can redistribute it and/or modify
8 ##   it under the terms of the GNU General Public License as
9 ##   published by the Free Software Foundation; either version 2, or
10 ##   (at your option) any later version.
11 ##   
12 ##   GUILE is distributed in the hope that it will be useful, but
13 ##   WITHOUT ANY WARRANTY; without even the implied warranty of
14 ##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ##   GNU General Public License for more details.
16 ##   
17 ##   You should have received a copy of the GNU General Public
18 ##   License along with GUILE; see the file COPYING.  If not, write
19 ##   to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
20 ##   Floor, Boston, MA 02110-1301 USA
21
22 EXTRA_DIST = README ChangeLog-2008 check.test                           \
23                                                                         \
24  scripts/README scripts/simple-hello.scm scripts/hello                  \
25  scripts/fact                                                           \
26                                                                         \
27  box/README box/box.c                                                   \
28                                                                         \
29  box-module/README box-module/box.c                                     \
30                                                                         \
31  box-dynamic/README box-dynamic/box.c                                   \
32                                                                         \
33  box-dynamic-module/README box-dynamic-module/box.c                     \
34  box-dynamic-module/box-module.scm box-dynamic-module/box-mixed.scm     \
35                                                                         \
36  modules/README modules/module-0.scm modules/module-1.scm               \
37  modules/module-2.scm modules/main                                      \
38                                                                         \
39  safe/README safe/safe safe/untrusted.scm safe/evil.scm
40
41 AM_CFLAGS = `$(bindir)/guile-config compile`
42 AM_LIBS   = `$(bindir)/guile-config link`
43
44
45 box/box: box/box.o
46         -$(MKDIR_P) box
47         $(CC) $< $(AM_LIBS) -o $@
48
49 box/box.o: box/box.c
50         -$(MKDIR_P) box
51         $(CC) $(AM_CFLAGS) -c $< -o $@
52
53
54 box-module/box: box-module/box.o
55         -$(MKDIR_P) box-module
56         $(CC) $< $(AM_LIBS) -o $@
57
58 box-module/box.o: box-module/box.c
59         -$(MKDIR_P) box-module
60         $(CC) $(AM_CFLAGS) -c $< -o $@
61
62
63 libbox.la: box-dynamic/box.lo
64         $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
65
66 box-dynamic/box.lo: box-dynamic/box.c
67         -$(MKDIR_P) box-dynamic
68         $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@
69
70
71 libbox-module.la: box-dynamic-module/box.lo
72         $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
73
74 box-dynamic-module/box.lo: box-dynamic-module/box.c
75         -$(MKDIR_P) box-dynamic-module
76         $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@
77
78
79 installcheck: box/box box-module/box libbox.la libbox-module.la
80         LD_LIBRARY_PATH="$(libdir):$$LD_LIBRARY_PATH"           \
81           LTDL_LIBRARY_PATH="$(builddir):$$LTDL_LIBRARY_PATH"   \
82           GUILE_LOAD_PATH="$(abs_top_srcdir):$$GUILE_LOAD_PATH" \
83           PATH="$(bindir):$$PATH"                               \
84           srcdir="$(srcdir)"                                    \
85           $(srcdir)/check.test
86
87 CLEANFILES =                                    \
88   box/box box/box.o                             \
89   box-module/box box-module/box.o
90
91 clean-local:
92         $(top_builddir)/libtool --mode=clean rm -f      \
93           box-dynamic/box.lo libbox.la                  \
94           box-dynamic-module/box.lo libbox-module.la