Commit | Line | Data |
---|---|---|
d7a88afe KR |
1 | ## Process this file with automake to produce Makefile.in. |
2 | ## | |
2ddf0851 LC |
3 | ## Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
4 | ## 2011 Free Software Foundation, Inc. | |
d7a88afe KR |
5 | ## |
6 | ## This file is part of GUILE. | |
7 | ## | |
53befeb7 NJ |
8 | ## GUILE is free software; you can redistribute it and/or modify it |
9 | ## under the terms of the GNU Lesser General Public License as | |
10 | ## published by the Free Software Foundation; either version 3, or | |
11 | ## (at your option) any later version. | |
d7a88afe | 12 | ## |
53befeb7 NJ |
13 | ## GUILE is distributed in the hope that it will be useful, but |
14 | ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ## GNU Lesser General Public License for more details. | |
d7a88afe | 17 | ## |
53befeb7 NJ |
18 | ## You should have received a copy of the GNU Lesser General Public |
19 | ## License along with GUILE; see the file COPYING.LESSER. If not, | |
20 | ## write to the Free Software Foundation, Inc., 51 Franklin Street, | |
21 | ## Fifth Floor, Boston, MA 02110-1301 USA | |
d7a88afe | 22 | |
a572fc95 | 23 | include $(top_srcdir)/am/snarf |
6405ae86 RB |
24 | |
25 | # initializations so we can use += below. | |
26 | TESTS = | |
27 | noinst_LTLIBRARIES = | |
28 | check_PROGRAMS = | |
29 | check_SCRIPTS = | |
30 | BUILT_SOURCES = | |
56ae2148 | 31 | EXTRA_DIST = |
6405ae86 | 32 | |
e4ca305f | 33 | TESTS_ENVIRONMENT = \ |
5b98517a | 34 | builddir="$(builddir)" \ |
e4ca305f | 35 | GUILE_AUTO_COMPILE=0 "${top_builddir}/meta/uninstalled-env" |
6405ae86 | 36 | |
a6648037 KR |
37 | ## Check for headers in $(srcdir) and bulid dir before $(CPPFLAGS), which |
38 | ## may point us to an old, installed version of guile. | |
39 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \ | |
40 | -I$(top_srcdir)/lib -I$(top_builddir)/lib | |
41 | ||
eedcb08a | 42 | test_cflags = \ |
a6648037 | 43 | -I$(top_srcdir)/test-suite/standalone -I. \ |
bfb2e113 | 44 | $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS) |
ae90bbb5 | 45 | |
7108b7b8 | 46 | AM_LDFLAGS = $(GUILE_CFLAGS) |
6405ae86 | 47 | |
6a94e6e1 LC |
48 | # How to link with libguile (same as `Libs' in `guile-2.0.pc'.) |
49 | LIBGUILE_LDADD = \ | |
50 | ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la \ | |
51 | $(BDW_GC_LIBS) | |
52 | ||
53 | ||
a6648037 KR |
54 | snarfcppopts = \ |
55 | -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir) \ | |
56 | -I. $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) | |
eedcb08a | 57 | |
23d72566 KR |
58 | SUFFIXES = .x |
59 | .c.x: | |
a572fc95 | 60 | $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) |
6405ae86 | 61 | |
8f9ae7fd | 62 | CLEANFILES = *.x |
6405ae86 RB |
63 | |
64 | .DELETE_ON_ERROR: | |
65 | ||
060ffedf RB |
66 | check_SCRIPTS += test-system-cmds |
67 | TESTS += test-system-cmds | |
68 | ||
d69668b7 NJ |
69 | check_SCRIPTS += test-bad-identifiers |
70 | TESTS += test-bad-identifiers | |
71 | ||
87681707 RB |
72 | check_SCRIPTS += test-require-extension |
73 | TESTS += test-require-extension | |
74 | ||
2dea6a4d BT |
75 | check_SCRIPTS += test-guile-snarf |
76 | TESTS += test-guile-snarf | |
77 | ||
6405ae86 RB |
78 | # test-num2integral |
79 | test_num2integral_SOURCES = test-num2integral.c | |
80 | test_num2integral_CFLAGS = ${test_cflags} | |
6a94e6e1 | 81 | test_num2integral_LDADD = $(LIBGUILE_LDADD) |
6405ae86 RB |
82 | check_PROGRAMS += test-num2integral |
83 | TESTS += test-num2integral | |
84 | ||
be4381fa KR |
85 | # test-round |
86 | test_round_CFLAGS = ${test_cflags} | |
6a94e6e1 | 87 | test_round_LDADD = $(LIBGUILE_LDADD) |
be4381fa KR |
88 | check_PROGRAMS += test-round |
89 | TESTS += test-round | |
90 | ||
2ddf0851 LC |
91 | if HAVE_SHARED_LIBRARIES |
92 | ||
6405ae86 RB |
93 | # test-asmobs |
94 | noinst_LTLIBRARIES += libtest-asmobs.la | |
a150c156 | 95 | libtest_asmobs_la_SOURCES = test-asmobs-lib.c |
6405ae86 | 96 | libtest_asmobs_la_CFLAGS = ${test_cflags} |
cb26e97a | 97 | libtest_asmobs_la_LDFLAGS = -module -no-undefined -rpath `pwd` # so libtool will really build an .so |
6a94e6e1 | 98 | libtest_asmobs_la_LIBADD = $(LIBGUILE_LDADD) |
8f9ae7fd | 99 | BUILT_SOURCES += test-asmobs-lib.x |
6405ae86 RB |
100 | check_SCRIPTS += test-asmobs |
101 | TESTS += test-asmobs | |
102 | ||
37371ea1 AW |
103 | # test-ffi |
104 | noinst_LTLIBRARIES += libtest-ffi.la | |
a150c156 | 105 | libtest_ffi_la_SOURCES = test-ffi-lib.c |
37371ea1 | 106 | libtest_ffi_la_CFLAGS = ${test_cflags} |
cb26e97a | 107 | libtest_ffi_la_LDFLAGS = -module -no-undefined -rpath `pwd` # so libtool will really build an .so |
6a94e6e1 | 108 | libtest_ffi_la_LIBADD = $(LIBGUILE_LDADD) |
37371ea1 AW |
109 | check_SCRIPTS += test-ffi |
110 | TESTS += test-ffi | |
111 | ||
2ddf0851 LC |
112 | endif HAVE_SHARED_LIBRARIES |
113 | ||
d7a88afe KR |
114 | # test-list |
115 | test_list_SOURCES = test-list.c | |
116 | test_list_CFLAGS = ${test_cflags} | |
6a94e6e1 | 117 | test_list_LDADD = $(LIBGUILE_LDADD) |
d7a88afe KR |
118 | check_PROGRAMS += test-list |
119 | TESTS += test-list | |
120 | ||
3c8fb18e MV |
121 | # test-unwind |
122 | test_unwind_SOURCES = test-unwind.c | |
123 | test_unwind_CFLAGS = ${test_cflags} | |
6a94e6e1 | 124 | test_unwind_LDADD = $(LIBGUILE_LDADD) |
3c8fb18e MV |
125 | check_PROGRAMS += test-unwind |
126 | TESTS += test-unwind | |
127 | ||
2aac7a48 MV |
128 | # test-conversion |
129 | test_conversion_SOURCES = test-conversion.c | |
130 | test_conversion_CFLAGS = ${test_cflags} | |
6a94e6e1 | 131 | test_conversion_LDADD = $(LIBGUILE_LDADD) |
2aac7a48 MV |
132 | check_PROGRAMS += test-conversion |
133 | TESTS += test-conversion | |
134 | ||
440ae510 NJ |
135 | # test-loose-ends |
136 | test_loose_ends_SOURCES = test-loose-ends.c | |
137 | test_loose_ends_CFLAGS = ${test_cflags} | |
6a94e6e1 | 138 | test_loose_ends_LDADD = $(LIBGUILE_LDADD) |
440ae510 NJ |
139 | check_PROGRAMS += test-loose-ends |
140 | TESTS += test-loose-ends | |
141 | ||
a9931e4e NJ |
142 | # test-fast-slot-ref |
143 | check_SCRIPTS += test-fast-slot-ref | |
144 | TESTS += test-fast-slot-ref | |
145 | ||
23d72566 | 146 | # test-use-srfi |
4505fbb1 | 147 | check_SCRIPTS += test-use-srfi |
23d72566 KR |
148 | TESTS += test-use-srfi |
149 | ||
8e7ff773 LC |
150 | # test-scm-c-read |
151 | test_scm_c_read_SOURCES = test-scm-c-read.c | |
152 | test_scm_c_read_CFLAGS = ${test_cflags} | |
6a94e6e1 | 153 | test_scm_c_read_LDADD = $(LIBGUILE_LDADD) |
8e7ff773 LC |
154 | check_PROGRAMS += test-scm-c-read |
155 | TESTS += test-scm-c-read | |
156 | ||
05588a1a LC |
157 | # test-scm-take-locale-symbol |
158 | test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c | |
159 | test_scm_take_locale_symbol_CFLAGS = ${test_cflags} | |
6a94e6e1 | 160 | test_scm_take_locale_symbol_LDADD = $(LIBGUILE_LDADD) |
05588a1a LC |
161 | check_PROGRAMS += test-scm-take-locale-symbol |
162 | TESTS += test-scm-take-locale-symbol | |
163 | ||
f538a070 LC |
164 | # test-scm-take-u8vector |
165 | test_scm_take_u8vector_SOURCES = test-scm-take-u8vector.c | |
166 | test_scm_take_u8vector_CFLAGS = ${test_cflags} | |
6a94e6e1 | 167 | test_scm_take_u8vector_LDADD = $(LIBGUILE_LDADD) |
f538a070 LC |
168 | check_PROGRAMS += test-scm-take-u8vector |
169 | TESTS += test-scm-take-u8vector | |
170 | ||
2ddf0851 LC |
171 | if HAVE_SHARED_LIBRARIES |
172 | ||
a44c4336 AW |
173 | # test-extensions |
174 | noinst_LTLIBRARIES += libtest-extensions.la | |
175 | libtest_extensions_la_SOURCES = test-extensions-lib.c | |
176 | libtest_extensions_la_CFLAGS = ${test_cflags} | |
cb26e97a | 177 | libtest_extensions_la_LDFLAGS = -module -no-undefined -rpath `pwd` # so libtool will really build an .so |
6a94e6e1 | 178 | libtest_extensions_la_LIBADD = $(LIBGUILE_LDADD) |
a44c4336 AW |
179 | check_SCRIPTS += test-extensions |
180 | TESTS += test-extensions | |
181 | ||
2ddf0851 LC |
182 | endif HAVE_SHARED_LIBRARIES |
183 | ||
56ae2148 LC |
184 | if BUILD_PTHREAD_SUPPORT |
185 | ||
3ac8359a NJ |
186 | # test-with-guile-module |
187 | test_with_guile_module_CFLAGS = ${test_cflags} | |
6a94e6e1 | 188 | test_with_guile_module_LDADD = $(LIBGUILE_LDADD) |
3ac8359a NJ |
189 | check_PROGRAMS += test-with-guile-module |
190 | TESTS += test-with-guile-module | |
191 | ||
ccf1ca4a | 192 | test_scm_with_guile_CFLAGS = ${test_cflags} |
6a94e6e1 | 193 | test_scm_with_guile_LDADD = $(LIBGUILE_LDADD) |
ccf1ca4a LC |
194 | check_PROGRAMS += test-scm-with-guile |
195 | TESTS += test-scm-with-guile | |
196 | ||
56ae2148 LC |
197 | else |
198 | ||
ccf1ca4a | 199 | EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c |
56ae2148 LC |
200 | |
201 | endif | |
202 | ||
56ae2148 | 203 | EXTRA_DIST += ${check_SCRIPTS} |