Merge branch 'boehm-demers-weiser-gc' into bdw-gc-static-alloc
[bpt/guile.git] / test-suite / standalone / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2 ##
3 ## Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Software Foundation, Inc.
4 ##
5 ## This file is part of GUILE.
6 ##
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.
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 Lesser General Public License for more details.
16 ##
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
21
22
23 # initializations so we can use += below.
24 TESTS =
25 noinst_LTLIBRARIES =
26 check_PROGRAMS =
27 check_SCRIPTS =
28 BUILT_SOURCES =
29 EXTRA_DIST =
30
31 TESTS_ENVIRONMENT = \
32 GUILE_AUTO_COMPILE=0 "${top_builddir}/meta/uninstalled-env"
33
34 ## Check for headers in $(srcdir) and bulid dir before $(CPPFLAGS), which
35 ## may point us to an old, installed version of guile.
36 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \
37 -I$(top_srcdir)/lib -I$(top_builddir)/lib
38
39 test_cflags = \
40 -I$(top_srcdir)/test-suite/standalone -I. \
41 $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
42
43 AM_LDFLAGS = $(GUILE_CFLAGS)
44
45 snarfcppopts = \
46 -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir) \
47 -I. $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS)
48
49 SUFFIXES = .x
50 .c.x:
51 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
52
53 CLEANFILES = *.x
54
55 .DELETE_ON_ERROR:
56
57 check_SCRIPTS += test-system-cmds
58 TESTS += test-system-cmds
59
60 check_SCRIPTS += test-bad-identifiers
61 TESTS += test-bad-identifiers
62
63 check_SCRIPTS += test-require-extension
64 TESTS += test-require-extension
65
66 # test-num2integral
67 test_num2integral_SOURCES = test-num2integral.c
68 test_num2integral_CFLAGS = ${test_cflags}
69 test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
70 check_PROGRAMS += test-num2integral
71 TESTS += test-num2integral
72
73 # test-round
74 test_round_CFLAGS = ${test_cflags}
75 test_round_LDADD = ${top_builddir}/libguile/libguile.la
76 check_PROGRAMS += test-round
77 TESTS += test-round
78
79 # test-asmobs
80 noinst_LTLIBRARIES += libtest-asmobs.la
81 libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
82 libtest_asmobs_la_CFLAGS = ${test_cflags}
83 libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
84 libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
85 BUILT_SOURCES += test-asmobs-lib.x
86 check_SCRIPTS += test-asmobs
87 TESTS += test-asmobs
88
89 # test-list
90 test_list_SOURCES = test-list.c
91 test_list_CFLAGS = ${test_cflags}
92 test_list_LDADD = ${top_builddir}/libguile/libguile.la
93 check_PROGRAMS += test-list
94 TESTS += test-list
95
96 # test-unwind
97 test_unwind_SOURCES = test-unwind.c
98 test_unwind_CFLAGS = ${test_cflags}
99 test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
100 check_PROGRAMS += test-unwind
101 TESTS += test-unwind
102
103 # test-conversion
104 test_conversion_SOURCES = test-conversion.c
105 test_conversion_CFLAGS = ${test_cflags}
106 test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
107 check_PROGRAMS += test-conversion
108 TESTS += test-conversion
109
110 # test-fast-slot-ref
111 check_SCRIPTS += test-fast-slot-ref
112 TESTS += test-fast-slot-ref
113
114 # test-use-srfi
115 check_SCRIPTS += test-use-srfi
116 TESTS += test-use-srfi
117
118 # test-scm-c-read
119 test_scm_c_read_SOURCES = test-scm-c-read.c
120 test_scm_c_read_CFLAGS = ${test_cflags}
121 test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
122 check_PROGRAMS += test-scm-c-read
123 TESTS += test-scm-c-read
124
125 # test-scm-take-locale-symbol
126 test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
127 test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
128 test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la
129 check_PROGRAMS += test-scm-take-locale-symbol
130 TESTS += test-scm-take-locale-symbol
131
132 # test-extensions
133 noinst_LTLIBRARIES += libtest-extensions.la
134 libtest_extensions_la_SOURCES = test-extensions-lib.c
135 libtest_extensions_la_CFLAGS = ${test_cflags}
136 libtest_extensions_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
137 libtest_extensions_la_LIBADD = ${top_builddir}/libguile/libguile.la
138 check_SCRIPTS += test-extensions
139 TESTS += test-extensions
140
141
142 if BUILD_PTHREAD_SUPPORT
143
144 # test-with-guile-module
145 test_with_guile_module_CFLAGS = ${test_cflags}
146 test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
147 check_PROGRAMS += test-with-guile-module
148 TESTS += test-with-guile-module
149
150 test_scm_with_guile_CFLAGS = ${test_cflags}
151 test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
152 check_PROGRAMS += test-scm-with-guile
153 TESTS += test-scm-with-guile
154
155 else
156
157 EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
158
159 endif
160
161 EXTRA_DIST += ${check_SCRIPTS}