Commit | Line | Data |
---|---|---|
d7a88afe KR |
1 | ## Process this file with automake to produce Makefile.in. |
2 | ## | |
05588a1a | 3 | ## Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Software Foundation, Inc. |
d7a88afe KR |
4 | ## |
5 | ## This file is part of GUILE. | |
6 | ## | |
53befeb7 NJ |
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. | |
d7a88afe | 11 | ## |
53befeb7 NJ |
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. | |
d7a88afe | 16 | ## |
53befeb7 NJ |
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 | |
d7a88afe | 21 | |
6405ae86 RB |
22 | |
23 | # initializations so we can use += below. | |
24 | TESTS = | |
25 | noinst_LTLIBRARIES = | |
26 | check_PROGRAMS = | |
27 | check_SCRIPTS = | |
28 | BUILT_SOURCES = | |
56ae2148 | 29 | EXTRA_DIST = |
6405ae86 | 30 | |
e4ca305f | 31 | TESTS_ENVIRONMENT = \ |
5b98517a | 32 | builddir="$(builddir)" \ |
e4ca305f | 33 | GUILE_AUTO_COMPILE=0 "${top_builddir}/meta/uninstalled-env" |
6405ae86 | 34 | |
a6648037 KR |
35 | ## Check for headers in $(srcdir) and bulid dir before $(CPPFLAGS), which |
36 | ## may point us to an old, installed version of guile. | |
37 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \ | |
38 | -I$(top_srcdir)/lib -I$(top_builddir)/lib | |
39 | ||
eedcb08a | 40 | test_cflags = \ |
a6648037 | 41 | -I$(top_srcdir)/test-suite/standalone -I. \ |
bfb2e113 | 42 | $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS) |
ae90bbb5 | 43 | |
7108b7b8 | 44 | AM_LDFLAGS = $(GUILE_CFLAGS) |
6405ae86 | 45 | |
a6648037 KR |
46 | snarfcppopts = \ |
47 | -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir) \ | |
48 | -I. $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) | |
eedcb08a | 49 | |
23d72566 KR |
50 | SUFFIXES = .x |
51 | .c.x: | |
6405ae86 RB |
52 | ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts) |
53 | ||
8f9ae7fd | 54 | CLEANFILES = *.x |
6405ae86 RB |
55 | |
56 | .DELETE_ON_ERROR: | |
57 | ||
060ffedf RB |
58 | check_SCRIPTS += test-system-cmds |
59 | TESTS += test-system-cmds | |
60 | ||
d69668b7 NJ |
61 | check_SCRIPTS += test-bad-identifiers |
62 | TESTS += test-bad-identifiers | |
63 | ||
87681707 RB |
64 | check_SCRIPTS += test-require-extension |
65 | TESTS += test-require-extension | |
66 | ||
6405ae86 RB |
67 | # test-num2integral |
68 | test_num2integral_SOURCES = test-num2integral.c | |
69 | test_num2integral_CFLAGS = ${test_cflags} | |
70 | test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la | |
71 | check_PROGRAMS += test-num2integral | |
72 | TESTS += test-num2integral | |
73 | ||
be4381fa KR |
74 | # test-round |
75 | test_round_CFLAGS = ${test_cflags} | |
76 | test_round_LDADD = ${top_builddir}/libguile/libguile.la | |
77 | check_PROGRAMS += test-round | |
78 | TESTS += test-round | |
79 | ||
6405ae86 RB |
80 | # test-asmobs |
81 | noinst_LTLIBRARIES += libtest-asmobs.la | |
8f9ae7fd | 82 | libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x |
6405ae86 | 83 | libtest_asmobs_la_CFLAGS = ${test_cflags} |
2e945bcc | 84 | libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so |
6405ae86 | 85 | libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la |
8f9ae7fd | 86 | BUILT_SOURCES += test-asmobs-lib.x |
6405ae86 RB |
87 | check_SCRIPTS += test-asmobs |
88 | TESTS += test-asmobs | |
89 | ||
d7a88afe KR |
90 | # test-list |
91 | test_list_SOURCES = test-list.c | |
92 | test_list_CFLAGS = ${test_cflags} | |
93 | test_list_LDADD = ${top_builddir}/libguile/libguile.la | |
94 | check_PROGRAMS += test-list | |
95 | TESTS += test-list | |
96 | ||
3c8fb18e MV |
97 | # test-unwind |
98 | test_unwind_SOURCES = test-unwind.c | |
99 | test_unwind_CFLAGS = ${test_cflags} | |
100 | test_unwind_LDADD = ${top_builddir}/libguile/libguile.la | |
101 | check_PROGRAMS += test-unwind | |
102 | TESTS += test-unwind | |
103 | ||
2aac7a48 MV |
104 | # test-conversion |
105 | test_conversion_SOURCES = test-conversion.c | |
106 | test_conversion_CFLAGS = ${test_cflags} | |
107 | test_conversion_LDADD = ${top_builddir}/libguile/libguile.la | |
108 | check_PROGRAMS += test-conversion | |
109 | TESTS += test-conversion | |
110 | ||
440ae510 NJ |
111 | # test-loose-ends |
112 | test_loose_ends_SOURCES = test-loose-ends.c | |
113 | test_loose_ends_CFLAGS = ${test_cflags} | |
114 | test_loose_ends_LDADD = ${top_builddir}/libguile/libguile.la | |
115 | check_PROGRAMS += test-loose-ends | |
116 | TESTS += test-loose-ends | |
117 | ||
a9931e4e NJ |
118 | # test-fast-slot-ref |
119 | check_SCRIPTS += test-fast-slot-ref | |
120 | TESTS += test-fast-slot-ref | |
121 | ||
23d72566 | 122 | # test-use-srfi |
4505fbb1 | 123 | check_SCRIPTS += test-use-srfi |
23d72566 KR |
124 | TESTS += test-use-srfi |
125 | ||
8e7ff773 LC |
126 | # test-scm-c-read |
127 | test_scm_c_read_SOURCES = test-scm-c-read.c | |
128 | test_scm_c_read_CFLAGS = ${test_cflags} | |
129 | test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la | |
130 | check_PROGRAMS += test-scm-c-read | |
131 | TESTS += test-scm-c-read | |
132 | ||
05588a1a LC |
133 | # test-scm-take-locale-symbol |
134 | test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c | |
135 | test_scm_take_locale_symbol_CFLAGS = ${test_cflags} | |
136 | test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la | |
137 | check_PROGRAMS += test-scm-take-locale-symbol | |
138 | TESTS += test-scm-take-locale-symbol | |
139 | ||
f538a070 LC |
140 | # test-scm-take-u8vector |
141 | test_scm_take_u8vector_SOURCES = test-scm-take-u8vector.c | |
142 | test_scm_take_u8vector_CFLAGS = ${test_cflags} | |
143 | test_scm_take_u8vector_LDADD = ${top_builddir}/libguile/libguile.la | |
144 | check_PROGRAMS += test-scm-take-u8vector | |
145 | TESTS += test-scm-take-u8vector | |
146 | ||
a44c4336 AW |
147 | # test-extensions |
148 | noinst_LTLIBRARIES += libtest-extensions.la | |
149 | libtest_extensions_la_SOURCES = test-extensions-lib.c | |
150 | libtest_extensions_la_CFLAGS = ${test_cflags} | |
151 | libtest_extensions_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so | |
152 | libtest_extensions_la_LIBADD = ${top_builddir}/libguile/libguile.la | |
153 | check_SCRIPTS += test-extensions | |
154 | TESTS += test-extensions | |
155 | ||
05588a1a | 156 | |
56ae2148 LC |
157 | if BUILD_PTHREAD_SUPPORT |
158 | ||
3ac8359a NJ |
159 | # test-with-guile-module |
160 | test_with_guile_module_CFLAGS = ${test_cflags} | |
161 | test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la | |
162 | check_PROGRAMS += test-with-guile-module | |
163 | TESTS += test-with-guile-module | |
164 | ||
ccf1ca4a LC |
165 | test_scm_with_guile_CFLAGS = ${test_cflags} |
166 | test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la | |
167 | check_PROGRAMS += test-scm-with-guile | |
168 | TESTS += test-scm-with-guile | |
169 | ||
56ae2148 LC |
170 | else |
171 | ||
ccf1ca4a | 172 | EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c |
56ae2148 LC |
173 | |
174 | endif | |
175 | ||
56ae2148 | 176 | EXTRA_DIST += ${check_SCRIPTS} |