1 ## Process this file with Automake to create Makefile.in
3 ## Copyright (C) 2001, 2006, 2008, 2009 Free Software Foundation, Inc.
5 ## This file is part of GUILE.
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.
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.
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
22 EXTRA_DIST = README ChangeLog-2008 check.test \
24 scripts/README scripts/simple-hello.scm scripts/hello \
27 box/README box/box.c \
29 box-module/README box-module/box.c \
31 box-dynamic/README box-dynamic/box.c \
33 box-dynamic-module/README box-dynamic-module/box.c \
34 box-dynamic-module/box-module.scm box-dynamic-module/box-mixed.scm \
36 modules/README modules/module-0.scm modules/module-1.scm \
37 modules/module-2.scm modules/main \
39 safe/README safe/safe safe/untrusted.scm safe/evil.scm
41 AM_CFLAGS = `$(bindir)/guile-config compile`
42 AM_LIBS = `$(bindir)/guile-config link`
47 $(CC) $< $(AM_LIBS) -o $@
51 $(CC) $(AM_CFLAGS) -c $< -o $@
54 box-module/box: box-module/box.o
55 -$(MKDIR_P) box-module
56 $(CC) $< $(AM_LIBS) -o $@
58 box-module/box.o: box-module/box.c
59 -$(MKDIR_P) box-module
60 $(CC) $(AM_CFLAGS) -c $< -o $@
63 libbox.la: box-dynamic/box.lo
64 $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
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 $@
71 libbox-module.la: box-dynamic-module/box.lo
72 $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
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 $@
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" \
89 box-module/box box-module/box.o
92 $(top_builddir)/libtool --mode=clean rm -f \
93 box-dynamic/box.lo libbox.la \
94 box-dynamic-module/box.lo libbox-module.la