Don't build any generated source file at "make dist" time.
[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, 2010 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 builddir="$(builddir)" \
33 GUILE_AUTO_COMPILE=0 "${top_builddir}/meta/uninstalled-env"
34
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
40 test_cflags = \
41 -I$(top_srcdir)/test-suite/standalone -I. \
42 $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
43
44 AM_LDFLAGS = $(GUILE_CFLAGS)
45
46 snarfcppopts = \
47 -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir) \
48 -I. $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS)
49
50 SUFFIXES = .x
51 .c.x:
52 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
53
54 CLEANFILES = *.x
55
56 .DELETE_ON_ERROR:
57
58 check_SCRIPTS += test-system-cmds
59 TESTS += test-system-cmds
60
61 check_SCRIPTS += test-bad-identifiers
62 TESTS += test-bad-identifiers
63
64 check_SCRIPTS += test-require-extension
65 TESTS += test-require-extension
66
67 # test-num2integral
68 test_num2integral_SOURCES = test-num2integral.c
69 test_num2integral_CFLAGS = ${test_cflags}
70 test_num2integral_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
71 check_PROGRAMS += test-num2integral
72 TESTS += test-num2integral
73
74 # test-round
75 test_round_CFLAGS = ${test_cflags}
76 test_round_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
77 check_PROGRAMS += test-round
78 TESTS += test-round
79
80 # test-asmobs
81 noinst_LTLIBRARIES += libtest-asmobs.la
82 libtest_asmobs_la_SOURCES = test-asmobs-lib.c
83 libtest_asmobs_la_CFLAGS = ${test_cflags}
84 libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
85 libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
86 BUILT_SOURCES += test-asmobs-lib.x
87 check_SCRIPTS += test-asmobs
88 TESTS += test-asmobs
89
90 # test-ffi
91 noinst_LTLIBRARIES += libtest-ffi.la
92 libtest_ffi_la_SOURCES = test-ffi-lib.c
93 libtest_ffi_la_CFLAGS = ${test_cflags}
94 libtest_ffi_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
95 libtest_ffi_la_LIBADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
96 check_SCRIPTS += test-ffi
97 TESTS += test-ffi
98
99 # test-list
100 test_list_SOURCES = test-list.c
101 test_list_CFLAGS = ${test_cflags}
102 test_list_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
103 check_PROGRAMS += test-list
104 TESTS += test-list
105
106 # test-unwind
107 test_unwind_SOURCES = test-unwind.c
108 test_unwind_CFLAGS = ${test_cflags}
109 test_unwind_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
110 check_PROGRAMS += test-unwind
111 TESTS += test-unwind
112
113 # test-conversion
114 test_conversion_SOURCES = test-conversion.c
115 test_conversion_CFLAGS = ${test_cflags}
116 test_conversion_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
117 check_PROGRAMS += test-conversion
118 TESTS += test-conversion
119
120 # test-loose-ends
121 test_loose_ends_SOURCES = test-loose-ends.c
122 test_loose_ends_CFLAGS = ${test_cflags}
123 test_loose_ends_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
124 check_PROGRAMS += test-loose-ends
125 TESTS += test-loose-ends
126
127 # test-fast-slot-ref
128 check_SCRIPTS += test-fast-slot-ref
129 TESTS += test-fast-slot-ref
130
131 # test-use-srfi
132 check_SCRIPTS += test-use-srfi
133 TESTS += test-use-srfi
134
135 # test-scm-c-read
136 test_scm_c_read_SOURCES = test-scm-c-read.c
137 test_scm_c_read_CFLAGS = ${test_cflags}
138 test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
139 check_PROGRAMS += test-scm-c-read
140 TESTS += test-scm-c-read
141
142 # test-scm-take-locale-symbol
143 test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
144 test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
145 test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
146 check_PROGRAMS += test-scm-take-locale-symbol
147 TESTS += test-scm-take-locale-symbol
148
149 # test-scm-take-u8vector
150 test_scm_take_u8vector_SOURCES = test-scm-take-u8vector.c
151 test_scm_take_u8vector_CFLAGS = ${test_cflags}
152 test_scm_take_u8vector_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
153 check_PROGRAMS += test-scm-take-u8vector
154 TESTS += test-scm-take-u8vector
155
156 # test-extensions
157 noinst_LTLIBRARIES += libtest-extensions.la
158 libtest_extensions_la_SOURCES = test-extensions-lib.c
159 libtest_extensions_la_CFLAGS = ${test_cflags}
160 libtest_extensions_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
161 libtest_extensions_la_LIBADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
162 check_SCRIPTS += test-extensions
163 TESTS += test-extensions
164
165
166 if BUILD_PTHREAD_SUPPORT
167
168 # test-with-guile-module
169 test_with_guile_module_CFLAGS = ${test_cflags}
170 test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
171 check_PROGRAMS += test-with-guile-module
172 TESTS += test-with-guile-module
173
174 test_scm_with_guile_CFLAGS = ${test_cflags}
175 test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la
176 check_PROGRAMS += test-scm-with-guile
177 TESTS += test-scm-with-guile
178
179 else
180
181 EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
182
183 endif
184
185 EXTRA_DIST += ${check_SCRIPTS}