| 1 | ## Process this file with Automake to create Makefile.in |
| 2 | ## |
| 3 | ## Copyright (C) 2001, 2006, 2008, 2009, 2010 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 it |
| 8 | ## under the terms of the GNU Lesser General Public License as |
| 9 | ## published by the Free Software Foundation; either version 3, 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 Lesser General Public License for more details. |
| 16 | ## |
| 17 | ## You should have received a copy of the GNU Lesser General Public |
| 18 | ## License along with GUILE; see the file COPYING.LESSER. If not, |
| 19 | ## write to the Free Software Foundation, Inc., 51 Franklin Street, |
| 20 | ## Fifth 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 | web/hello.scm web/debug-sxml.scm |
| 42 | |
| 43 | AM_CFLAGS = `PATH=$(bindir)$(PATH_SEPARATOR)$$PATH PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config compile` |
| 44 | AM_LIBS = `PATH=$(bindir)$(PATH_SEPARATOR)$$PATH PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config link` |
| 45 | |
| 46 | |
| 47 | box/box: box/box.o |
| 48 | -$(MKDIR_P) box |
| 49 | $(CC) $< $(AM_LIBS) -o $@ |
| 50 | |
| 51 | box/box.o: box/box.c |
| 52 | -$(MKDIR_P) box |
| 53 | $(CC) $(AM_CFLAGS) -c $< -o $@ |
| 54 | |
| 55 | |
| 56 | box-module/box: box-module/box.o |
| 57 | -$(MKDIR_P) box-module |
| 58 | $(CC) $< $(AM_LIBS) -o $@ |
| 59 | |
| 60 | box-module/box.o: box-module/box.c |
| 61 | -$(MKDIR_P) box-module |
| 62 | $(CC) $(AM_CFLAGS) -c $< -o $@ |
| 63 | |
| 64 | |
| 65 | libbox.la: box-dynamic/box.lo |
| 66 | $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@ |
| 67 | |
| 68 | box-dynamic/box.lo: box-dynamic/box.c |
| 69 | -$(MKDIR_P) box-dynamic |
| 70 | $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@ |
| 71 | |
| 72 | |
| 73 | libbox-module.la: box-dynamic-module/box.lo |
| 74 | $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@ |
| 75 | |
| 76 | box-dynamic-module/box.lo: box-dynamic-module/box.c |
| 77 | -$(MKDIR_P) box-dynamic-module |
| 78 | $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@ |
| 79 | |
| 80 | |
| 81 | installcheck: box/box box-module/box libbox.la libbox-module.la |
| 82 | LD_LIBRARY_PATH="$(libdir)$(PATH_SEPARATOR)$$LD_LIBRARY_PATH" \ |
| 83 | LTDL_LIBRARY_PATH="$(builddir)$(PATH_SEPARATOR)$$LTDL_LIBRARY_PATH" \ |
| 84 | GUILE_LOAD_PATH="$(abs_top_srcdir)$(PATH_SEPARATOR)$$GUILE_LOAD_PATH" \ |
| 85 | PATH="$(bindir)$(PATH_SEPARATOR)$$PATH" \ |
| 86 | GUILE_AUTO_COMPILE=0 \ |
| 87 | srcdir="$(srcdir)" \ |
| 88 | $(srcdir)/check.test |
| 89 | |
| 90 | CLEANFILES = \ |
| 91 | box/box box/box.o \ |
| 92 | box-module/box box-module/box.o |
| 93 | |
| 94 | clean-local: |
| 95 | $(top_builddir)/libtool --mode=clean rm -f \ |
| 96 | box-dynamic/box.lo libbox.la \ |
| 97 | box-dynamic-module/box.lo libbox-module.la |