Makefile.am 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. EXTRA_DIST = README ChangeLog-2008 check.test \
  22. \
  23. scripts/README scripts/simple-hello.scm scripts/hello \
  24. scripts/fact \
  25. \
  26. box/README box/box.c \
  27. \
  28. box-module/README box-module/box.c \
  29. \
  30. box-dynamic/README box-dynamic/box.c \
  31. \
  32. box-dynamic-module/README box-dynamic-module/box.c \
  33. box-dynamic-module/box-module.scm box-dynamic-module/box-mixed.scm \
  34. \
  35. modules/README modules/module-0.scm modules/module-1.scm \
  36. modules/module-2.scm modules/main \
  37. \
  38. safe/README safe/safe safe/untrusted.scm safe/evil.scm
  39. AM_CFLAGS = `$(bindir)/guile-config compile`
  40. AM_LIBS = `$(bindir)/guile-config link`
  41. box/box: box/box.o
  42. -$(MKDIR_P) box
  43. $(CC) $< $(AM_LIBS) -o $@
  44. box/box.o: box/box.c
  45. -$(MKDIR_P) box
  46. $(CC) $(AM_CFLAGS) -c $< -o $@
  47. box-module/box: box-module/box.o
  48. -$(MKDIR_P) box-module
  49. $(CC) $< $(AM_LIBS) -o $@
  50. box-module/box.o: box-module/box.c
  51. -$(MKDIR_P) box-module
  52. $(CC) $(AM_CFLAGS) -c $< -o $@
  53. libbox.la: box-dynamic/box.lo
  54. $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
  55. box-dynamic/box.lo: box-dynamic/box.c
  56. -$(MKDIR_P) box-dynamic
  57. $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@
  58. libbox-module.la: box-dynamic-module/box.lo
  59. $(top_builddir)/libtool --mode=link $(CC) $< $(AM_LIBS) -rpath $(libdir) -o $@
  60. box-dynamic-module/box.lo: box-dynamic-module/box.c
  61. -$(MKDIR_P) box-dynamic-module
  62. $(top_builddir)/libtool --mode=compile $(CC) $(AM_CFLAGS) -c $< -o $@
  63. installcheck: box/box box-module/box libbox.la libbox-module.la
  64. LD_LIBRARY_PATH="$(libdir):$$LD_LIBRARY_PATH" \
  65. LTDL_LIBRARY_PATH="$(builddir):$$LTDL_LIBRARY_PATH" \
  66. GUILE_LOAD_PATH="$(abs_top_srcdir):$$GUILE_LOAD_PATH" \
  67. PATH="$(bindir):$$PATH" \
  68. srcdir="$(srcdir)" \
  69. $(srcdir)/check.test
  70. CLEANFILES = \
  71. box/box box/box.o \
  72. box-module/box box-module/box.o
  73. clean-local:
  74. $(top_builddir)/libtool --mode=clean rm -f \
  75. box-dynamic/box.lo libbox.la \
  76. box-dynamic-module/box.lo libbox-module.la