1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00
guile/examples/Makefile.am
Neil Jerram 53befeb700 Change Guile license to LGPLv3+
(Not quite finished, the following will be done tomorrow.
   module/srfi/*.scm
   module/rnrs/*.scm
   module/scripts/*.scm
   testsuite/*.scm
   guile-readline/*
)
2009-06-17 00:22:09 +01:00

94 lines
3.1 KiB
Makefile

## 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 Lesser General Public License as
## published by the Free Software Foundation; either version 3, 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 Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with GUILE; see the file COPYING.LESSER. 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 = `PATH=$(bindir):$$PATH PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config compile`
AM_LIBS = `PATH=$(bindir):$$PATH PKG_CONFIG_PATH=$(libdir)/pkgconfig $(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