implement foreign-call
[bpt/guile.git] / test-suite / standalone / Makefile.am
CommitLineData
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.
24TESTS =
25noinst_LTLIBRARIES =
26check_PROGRAMS =
27check_SCRIPTS =
28BUILT_SOURCES =
56ae2148 29EXTRA_DIST =
6405ae86 30
e4ca305f 31TESTS_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.
37AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \
38 -I$(top_srcdir)/lib -I$(top_builddir)/lib
39
eedcb08a 40test_cflags = \
a6648037 41 -I$(top_srcdir)/test-suite/standalone -I. \
bfb2e113 42 $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
ae90bbb5 43
7108b7b8 44AM_LDFLAGS = $(GUILE_CFLAGS)
6405ae86 45
a6648037
KR
46snarfcppopts = \
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
50SUFFIXES = .x
51.c.x:
6405ae86
RB
52 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
53
8f9ae7fd 54CLEANFILES = *.x
6405ae86
RB
55
56.DELETE_ON_ERROR:
57
060ffedf
RB
58check_SCRIPTS += test-system-cmds
59TESTS += test-system-cmds
60
d69668b7
NJ
61check_SCRIPTS += test-bad-identifiers
62TESTS += test-bad-identifiers
63
87681707
RB
64check_SCRIPTS += test-require-extension
65TESTS += test-require-extension
66
6405ae86
RB
67# test-num2integral
68test_num2integral_SOURCES = test-num2integral.c
69test_num2integral_CFLAGS = ${test_cflags}
70test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
71check_PROGRAMS += test-num2integral
72TESTS += test-num2integral
73
be4381fa
KR
74# test-round
75test_round_CFLAGS = ${test_cflags}
76test_round_LDADD = ${top_builddir}/libguile/libguile.la
77check_PROGRAMS += test-round
78TESTS += test-round
79
6405ae86
RB
80# test-asmobs
81noinst_LTLIBRARIES += libtest-asmobs.la
8f9ae7fd 82libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
6405ae86 83libtest_asmobs_la_CFLAGS = ${test_cflags}
2e945bcc 84libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
6405ae86 85libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
8f9ae7fd 86BUILT_SOURCES += test-asmobs-lib.x
6405ae86
RB
87check_SCRIPTS += test-asmobs
88TESTS += test-asmobs
89
d7a88afe
KR
90# test-list
91test_list_SOURCES = test-list.c
92test_list_CFLAGS = ${test_cflags}
93test_list_LDADD = ${top_builddir}/libguile/libguile.la
94check_PROGRAMS += test-list
95TESTS += test-list
96
3c8fb18e
MV
97# test-unwind
98test_unwind_SOURCES = test-unwind.c
99test_unwind_CFLAGS = ${test_cflags}
100test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
101check_PROGRAMS += test-unwind
102TESTS += test-unwind
103
2aac7a48
MV
104# test-conversion
105test_conversion_SOURCES = test-conversion.c
106test_conversion_CFLAGS = ${test_cflags}
107test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
108check_PROGRAMS += test-conversion
109TESTS += test-conversion
110
440ae510
NJ
111# test-loose-ends
112test_loose_ends_SOURCES = test-loose-ends.c
113test_loose_ends_CFLAGS = ${test_cflags}
114test_loose_ends_LDADD = ${top_builddir}/libguile/libguile.la
115check_PROGRAMS += test-loose-ends
116TESTS += test-loose-ends
117
a9931e4e
NJ
118# test-fast-slot-ref
119check_SCRIPTS += test-fast-slot-ref
120TESTS += test-fast-slot-ref
121
23d72566 122# test-use-srfi
4505fbb1 123check_SCRIPTS += test-use-srfi
23d72566
KR
124TESTS += test-use-srfi
125
8e7ff773
LC
126# test-scm-c-read
127test_scm_c_read_SOURCES = test-scm-c-read.c
128test_scm_c_read_CFLAGS = ${test_cflags}
129test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
130check_PROGRAMS += test-scm-c-read
131TESTS += test-scm-c-read
132
05588a1a
LC
133# test-scm-take-locale-symbol
134test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
135test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
136test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la
137check_PROGRAMS += test-scm-take-locale-symbol
138TESTS += test-scm-take-locale-symbol
139
f538a070
LC
140# test-scm-take-u8vector
141test_scm_take_u8vector_SOURCES = test-scm-take-u8vector.c
142test_scm_take_u8vector_CFLAGS = ${test_cflags}
143test_scm_take_u8vector_LDADD = ${top_builddir}/libguile/libguile.la
144check_PROGRAMS += test-scm-take-u8vector
145TESTS += test-scm-take-u8vector
146
a44c4336
AW
147# test-extensions
148noinst_LTLIBRARIES += libtest-extensions.la
149libtest_extensions_la_SOURCES = test-extensions-lib.c
150libtest_extensions_la_CFLAGS = ${test_cflags}
151libtest_extensions_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
152libtest_extensions_la_LIBADD = ${top_builddir}/libguile/libguile.la
153check_SCRIPTS += test-extensions
154TESTS += test-extensions
155
05588a1a 156
56ae2148
LC
157if BUILD_PTHREAD_SUPPORT
158
3ac8359a
NJ
159# test-with-guile-module
160test_with_guile_module_CFLAGS = ${test_cflags}
161test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
162check_PROGRAMS += test-with-guile-module
163TESTS += test-with-guile-module
164
ccf1ca4a
LC
165test_scm_with_guile_CFLAGS = ${test_cflags}
166test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
167check_PROGRAMS += test-scm-with-guile
168TESTS += test-scm-with-guile
169
56ae2148
LC
170else
171
ccf1ca4a 172EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
56ae2148
LC
173
174endif
175
56ae2148 176EXTRA_DIST += ${check_SCRIPTS}