Makefile.am 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. ## Process this file with automake to produce Makefile.in.
  2. ##
  3. ## Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 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. # initializations so we can use += below.
  22. TESTS =
  23. noinst_LTLIBRARIES =
  24. check_PROGRAMS =
  25. check_SCRIPTS =
  26. BUILT_SOURCES =
  27. EXTRA_DIST =
  28. TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
  29. test_cflags = \
  30. -I$(top_srcdir)/test-suite/standalone \
  31. -I$(top_srcdir) -I$(top_builddir) \
  32. $(EXTRA_DEFS) $(GUILE_CFLAGS)
  33. AM_LDFLAGS = $(GUILE_CFLAGS)
  34. snarfcppopts = \
  35. $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) \
  36. -I$(top_srcdir) -I$(top_builddir)
  37. SUFFIXES = .x
  38. .c.x:
  39. ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
  40. CLEANFILES = *.x
  41. .DELETE_ON_ERROR:
  42. check_SCRIPTS += test-system-cmds
  43. TESTS += test-system-cmds
  44. check_SCRIPTS += test-require-extension
  45. TESTS += test-require-extension
  46. check_SCRIPTS += test-bad-identifiers
  47. TESTS += test-bad-identifiers
  48. # test-num2integral
  49. test_num2integral_SOURCES = test-num2integral.c
  50. test_num2integral_CFLAGS = ${test_cflags}
  51. test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
  52. check_PROGRAMS += test-num2integral
  53. TESTS += test-num2integral
  54. # test-round
  55. test_round_CFLAGS = ${test_cflags}
  56. test_round_LDADD = ${top_builddir}/libguile/libguile.la
  57. check_PROGRAMS += test-round
  58. TESTS += test-round
  59. # test-gh
  60. test_gh_SOURCES = test-gh.c
  61. test_gh_CFLAGS = ${test_cflags}
  62. test_gh_LDADD = ${top_builddir}/libguile/libguile.la
  63. check_PROGRAMS += test-gh
  64. TESTS += test-gh
  65. # test-asmobs
  66. noinst_LTLIBRARIES += libtest-asmobs.la
  67. libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
  68. libtest_asmobs_la_CFLAGS = ${test_cflags}
  69. libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
  70. libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
  71. BUILT_SOURCES += test-asmobs-lib.x
  72. check_SCRIPTS += test-asmobs
  73. TESTS += test-asmobs
  74. # test-list
  75. test_list_SOURCES = test-list.c
  76. test_list_CFLAGS = ${test_cflags}
  77. test_list_LDADD = ${top_builddir}/libguile/libguile.la
  78. check_PROGRAMS += test-list
  79. TESTS += test-list
  80. # test-unwind
  81. test_unwind_SOURCES = test-unwind.c
  82. test_unwind_CFLAGS = ${test_cflags}
  83. test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
  84. check_PROGRAMS += test-unwind
  85. TESTS += test-unwind
  86. # test-conversion
  87. test_conversion_SOURCES = test-conversion.c
  88. test_conversion_CFLAGS = ${test_cflags}
  89. test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
  90. check_PROGRAMS += test-conversion
  91. TESTS += test-conversion
  92. # test-fast-slot-ref
  93. check_SCRIPTS += test-fast-slot-ref
  94. TESTS += test-fast-slot-ref
  95. # test-use-srfi
  96. check_SCRIPTS += test-use-srfi
  97. TESTS += test-use-srfi
  98. # test-scm-c-read
  99. test_scm_c_read_SOURCES = test-scm-c-read.c
  100. test_scm_c_read_CFLAGS = ${test_cflags}
  101. test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
  102. check_PROGRAMS += test-scm-c-read
  103. TESTS += test-scm-c-read
  104. # test-scm-take-locale-symbol
  105. test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
  106. test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
  107. test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la
  108. check_PROGRAMS += test-scm-take-locale-symbol
  109. TESTS += test-scm-take-locale-symbol
  110. if BUILD_PTHREAD_SUPPORT
  111. # test-with-guile-module
  112. test_with_guile_module_CFLAGS = ${test_cflags}
  113. test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
  114. check_PROGRAMS += test-with-guile-module
  115. TESTS += test-with-guile-module
  116. test_scm_with_guile_CFLAGS = ${test_cflags}
  117. test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
  118. check_PROGRAMS += test-scm-with-guile
  119. TESTS += test-scm-with-guile
  120. else
  121. EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
  122. endif
  123. all-local:
  124. cd ${srcdir} && chmod u+x ${check_SCRIPTS}
  125. EXTRA_DIST += ${check_SCRIPTS}