]> git.donarmstrong.com Git - lilypond.git/blobdiff - guile18/examples/Makefile.am
Import guile-1.8 as multiple upstream tarball component
[lilypond.git] / guile18 / examples / Makefile.am
diff --git a/guile18/examples/Makefile.am b/guile18/examples/Makefile.am
new file mode 100644 (file)
index 0000000..1b995b5
--- /dev/null
@@ -0,0 +1,94 @@
+## Process this file with Automake to create Makefile.in
+##
+##   Copyright (C) 2001, 2006, 2008, 2009 Free Software Foundation, Inc.
+##
+##   This file is part of GUILE.
+##   
+##   GUILE is free software; you can redistribute it and/or modify
+##   it under the terms of the GNU General Public License as
+##   published by the Free Software Foundation; either version 2, or
+##   (at your option) any later version.
+##   
+##   GUILE is distributed in the hope that it will be useful, but
+##   WITHOUT ANY WARRANTY; without even the implied warranty of
+##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+##   GNU General Public License for more details.
+##   
+##   You should have received a copy of the GNU General Public
+##   License along with GUILE; see the file COPYING.  If not, write
+##   to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+##   Floor, Boston, MA 02110-1301 USA
+
+EXTRA_DIST = README ChangeLog-2008 check.test                          \
+                                                                       \
+ scripts/README scripts/simple-hello.scm scripts/hello                 \
+ scripts/fact                                                          \
+                                                                       \
+ box/README box/box.c                                                  \
+                                                                       \
+ box-module/README box-module/box.c                                    \
+                                                                       \
+ box-dynamic/README box-dynamic/box.c                                  \
+                                                                       \
+ box-dynamic-module/README box-dynamic-module/box.c                    \
+ box-dynamic-module/box-module.scm box-dynamic-module/box-mixed.scm    \
+                                                                       \
+ modules/README modules/module-0.scm modules/module-1.scm              \
+ modules/module-2.scm modules/main                                     \
+                                                                       \
+ safe/README safe/safe safe/untrusted.scm safe/evil.scm
+
+AM_CFLAGS = `$(bindir)/guile-config compile`
+AM_LIBS   = `$(bindir)/guile-config link`
+
+
+box/box: box/box.o
+       -$(MKDIR_P) box
+       $(CC) $< $(AM_LIBS) -o $@
+
+box/box.o: box/box.c
+       -$(MKDIR_P) box
+       $(CC) $(AM_CFLAGS) -c $< -o $@
+
+
+box-module/box: box-module/box.o
+       -$(MKDIR_P) box-module
+       $(CC) $< $(AM_LIBS) -o $@
+
+box-module/box.o: box-module/box.c
+       -$(MKDIR_P) box-module
+       $(CC) $(AM_CFLAGS) -c $< -o $@
+
+
+libbox.la: box-dynamic/box.lo
+       $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
+
+box-dynamic/box.lo: box-dynamic/box.c
+       -$(MKDIR_P) box-dynamic
+       $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@
+
+
+libbox-module.la: box-dynamic-module/box.lo
+       $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
+
+box-dynamic-module/box.lo: box-dynamic-module/box.c
+       -$(MKDIR_P) box-dynamic-module
+       $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@
+
+
+installcheck: box/box box-module/box libbox.la libbox-module.la
+       LD_LIBRARY_PATH="$(libdir):$$LD_LIBRARY_PATH"           \
+         LTDL_LIBRARY_PATH="$(builddir):$$LTDL_LIBRARY_PATH"   \
+         GUILE_LOAD_PATH="$(abs_top_srcdir):$$GUILE_LOAD_PATH" \
+         PATH="$(bindir):$$PATH"                               \
+         srcdir="$(srcdir)"                                    \
+         $(srcdir)/check.test
+
+CLEANFILES =                                   \
+  box/box box/box.o                            \
+  box-module/box box-module/box.o
+
+clean-local:
+       $(top_builddir)/libtool --mode=clean rm -f      \
+         box-dynamic/box.lo libbox.la                  \
+         box-dynamic-module/box.lo libbox-module.la