1 ## Process this file with automake to produce Makefile.in.
3 ## Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 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
23 # initializations so we can use += below.
32 builddir="$(builddir)" \
33 "${top_builddir}/pre-inst-guile-env"
36 -I$(top_srcdir)/test-suite/standalone \
37 -I$(top_srcdir) -I$(top_builddir) \
38 $(EXTRA_DEFS) $(GUILE_CFLAGS)
40 AM_LDFLAGS = $(GUILE_CFLAGS)
43 $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) \
44 -I$(top_srcdir) -I$(top_builddir)
48 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
54 check_SCRIPTS += test-system-cmds
55 TESTS += test-system-cmds
57 check_SCRIPTS += test-require-extension
58 TESTS += test-require-extension
60 check_SCRIPTS += test-bad-identifiers
61 TESTS += test-bad-identifiers
64 test_num2integral_SOURCES = test-num2integral.c
65 test_num2integral_CFLAGS = ${test_cflags}
66 test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
67 check_PROGRAMS += test-num2integral
68 TESTS += test-num2integral
71 test_round_CFLAGS = ${test_cflags}
72 test_round_LDADD = ${top_builddir}/libguile/libguile.la
73 check_PROGRAMS += test-round
77 test_gh_SOURCES = test-gh.c
78 test_gh_CFLAGS = ${test_cflags}
79 test_gh_LDADD = ${top_builddir}/libguile/libguile.la
80 check_PROGRAMS += test-gh
84 noinst_LTLIBRARIES += libtest-asmobs.la
85 libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
86 libtest_asmobs_la_CFLAGS = ${test_cflags}
87 libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
88 libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
89 BUILT_SOURCES += test-asmobs-lib.x
90 check_SCRIPTS += test-asmobs
94 test_list_SOURCES = test-list.c
95 test_list_CFLAGS = ${test_cflags}
96 test_list_LDADD = ${top_builddir}/libguile/libguile.la
97 check_PROGRAMS += test-list
101 test_unwind_SOURCES = test-unwind.c
102 test_unwind_CFLAGS = ${test_cflags}
103 test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
104 check_PROGRAMS += test-unwind
108 test_conversion_SOURCES = test-conversion.c
109 test_conversion_CFLAGS = ${test_cflags}
110 test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
111 check_PROGRAMS += test-conversion
112 TESTS += test-conversion
115 check_SCRIPTS += test-fast-slot-ref
116 TESTS += test-fast-slot-ref
119 check_SCRIPTS += test-use-srfi
120 TESTS += test-use-srfi
123 test_scm_c_read_SOURCES = test-scm-c-read.c
124 test_scm_c_read_CFLAGS = ${test_cflags}
125 test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
126 check_PROGRAMS += test-scm-c-read
127 TESTS += test-scm-c-read
129 # test-scm-take-locale-symbol
130 test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
131 test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
132 test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la
133 check_PROGRAMS += test-scm-take-locale-symbol
134 TESTS += test-scm-take-locale-symbol
137 if BUILD_PTHREAD_SUPPORT
139 # test-with-guile-module
140 test_with_guile_module_CFLAGS = ${test_cflags}
141 test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
142 check_PROGRAMS += test-with-guile-module
143 TESTS += test-with-guile-module
145 test_scm_with_guile_CFLAGS = ${test_cflags}
146 test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
147 check_PROGRAMS += test-scm-with-guile
148 TESTS += test-scm-with-guile
152 EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
157 cd ${srcdir} && chmod u+x ${check_SCRIPTS}
159 EXTRA_DIST += ${check_SCRIPTS}