Merge branch 'master' into boehm-demers-weiser-gc
[bpt/guile.git] / test-suite / standalone / Makefile.am
CommitLineData
d7a88afe
KR
1## Process this file with automake to produce Makefile.in.
2##
b226295a 3## Copyright 2003, 2004, 2005, 2006, 2007, 2008 Software Foundation, Inc.
d7a88afe
KR
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
6405ae86
RB
22
23# initializations so we can use += below.
24TESTS =
25noinst_LTLIBRARIES =
26check_PROGRAMS =
27check_SCRIPTS =
28BUILT_SOURCES =
56ae2148 29EXTRA_DIST =
6405ae86
RB
30
31TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
32
eedcb08a
LC
33test_cflags = \
34 -I$(top_srcdir)/test-suite/standalone \
3394818c 35 -I$(top_srcdir) -I$(top_builddir) \
eedcb08a 36 -I$(top_srcdir)/lib -I$(top_builddir)/lib \
bfb2e113 37 $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
ae90bbb5 38
7108b7b8 39AM_LDFLAGS = $(GUILE_CFLAGS)
6405ae86 40
eedcb08a
LC
41snarfcppopts = \
42 $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) -I$(top_srcdir) \
3394818c 43 -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir)
eedcb08a 44
23d72566
KR
45SUFFIXES = .x
46.c.x:
6405ae86
RB
47 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
48
8f9ae7fd 49CLEANFILES = *.x
6405ae86
RB
50
51.DELETE_ON_ERROR:
52
060ffedf
RB
53check_SCRIPTS += test-system-cmds
54TESTS += test-system-cmds
55
d69668b7
NJ
56check_SCRIPTS += test-bad-identifiers
57TESTS += test-bad-identifiers
58
87681707
RB
59check_SCRIPTS += test-require-extension
60TESTS += test-require-extension
61
6405ae86
RB
62# test-num2integral
63test_num2integral_SOURCES = test-num2integral.c
64test_num2integral_CFLAGS = ${test_cflags}
65test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
66check_PROGRAMS += test-num2integral
67TESTS += test-num2integral
68
be4381fa
KR
69# test-round
70test_round_CFLAGS = ${test_cflags}
71test_round_LDADD = ${top_builddir}/libguile/libguile.la
72check_PROGRAMS += test-round
73TESTS += test-round
74
6405ae86
RB
75# test-asmobs
76noinst_LTLIBRARIES += libtest-asmobs.la
8f9ae7fd 77libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
6405ae86 78libtest_asmobs_la_CFLAGS = ${test_cflags}
2e945bcc 79libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
6405ae86 80libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
8f9ae7fd 81BUILT_SOURCES += test-asmobs-lib.x
6405ae86
RB
82check_SCRIPTS += test-asmobs
83TESTS += test-asmobs
84
d7a88afe
KR
85# test-list
86test_list_SOURCES = test-list.c
87test_list_CFLAGS = ${test_cflags}
88test_list_LDADD = ${top_builddir}/libguile/libguile.la
89check_PROGRAMS += test-list
90TESTS += test-list
91
3c8fb18e
MV
92# test-unwind
93test_unwind_SOURCES = test-unwind.c
94test_unwind_CFLAGS = ${test_cflags}
95test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
96check_PROGRAMS += test-unwind
97TESTS += test-unwind
98
2aac7a48
MV
99# test-conversion
100test_conversion_SOURCES = test-conversion.c
101test_conversion_CFLAGS = ${test_cflags}
102test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
103check_PROGRAMS += test-conversion
104TESTS += test-conversion
105
a9931e4e
NJ
106# test-fast-slot-ref
107check_SCRIPTS += test-fast-slot-ref
108TESTS += test-fast-slot-ref
109
23d72566 110# test-use-srfi
4505fbb1 111check_SCRIPTS += test-use-srfi
23d72566
KR
112TESTS += test-use-srfi
113
8e7ff773
LC
114# test-scm-c-read
115test_scm_c_read_SOURCES = test-scm-c-read.c
116test_scm_c_read_CFLAGS = ${test_cflags}
117test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
118check_PROGRAMS += test-scm-c-read
119TESTS += test-scm-c-read
120
56ae2148
LC
121if BUILD_PTHREAD_SUPPORT
122
3ac8359a
NJ
123# test-with-guile-module
124test_with_guile_module_CFLAGS = ${test_cflags}
125test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
126check_PROGRAMS += test-with-guile-module
127TESTS += test-with-guile-module
128
ccf1ca4a
LC
129test_scm_with_guile_CFLAGS = ${test_cflags}
130test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
131check_PROGRAMS += test-scm-with-guile
132TESTS += test-scm-with-guile
133
56ae2148
LC
134else
135
ccf1ca4a 136EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
56ae2148
LC
137
138endif
139
6405ae86
RB
140all-local:
141 cd ${srcdir} && chmod u+x ${check_SCRIPTS}
142
56ae2148 143EXTRA_DIST += ${check_SCRIPTS}