Turn off auto-compilation to stand-alone tests.
[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 test_cflags = \
35 -I$(top_srcdir)/test-suite/standalone \
36 -I$(top_srcdir) -I$(top_builddir) \
37 -I$(top_srcdir)/lib -I$(top_builddir)/lib \
38 $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
39
40 AM_LDFLAGS = $(GUILE_CFLAGS)
41
42 snarfcppopts = \
43 $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) -I$(top_srcdir) \
44 -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir)
45
46 SUFFIXES = .x
47 .c.x:
48 ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts)
49
50 CLEANFILES = *.x
51
52 .DELETE_ON_ERROR:
53
54 check_SCRIPTS += test-system-cmds
55 TESTS += test-system-cmds
56
57 check_SCRIPTS += test-bad-identifiers
58 TESTS += test-bad-identifiers
59
60 check_SCRIPTS += test-require-extension
61 TESTS += test-require-extension
62
63 # test-num2integral
64 test_num2integral_SOURCES = test-num2integral.c
65 test_num2integral_CFLAGS = ${test_cflags}
66 test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la
67 check_PROGRAMS += test-num2integral
68 TESTS += test-num2integral
69
70 # test-round
71 test_round_CFLAGS = ${test_cflags}
72 test_round_LDADD = ${top_builddir}/libguile/libguile.la
73 check_PROGRAMS += test-round
74 TESTS += test-round
75
76 # test-asmobs
77 noinst_LTLIBRARIES += libtest-asmobs.la
78 libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x
79 libtest_asmobs_la_CFLAGS = ${test_cflags}
80 libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
81 libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la
82 BUILT_SOURCES += test-asmobs-lib.x
83 check_SCRIPTS += test-asmobs
84 TESTS += test-asmobs
85
86 # test-list
87 test_list_SOURCES = test-list.c
88 test_list_CFLAGS = ${test_cflags}
89 test_list_LDADD = ${top_builddir}/libguile/libguile.la
90 check_PROGRAMS += test-list
91 TESTS += test-list
92
93 # test-unwind
94 test_unwind_SOURCES = test-unwind.c
95 test_unwind_CFLAGS = ${test_cflags}
96 test_unwind_LDADD = ${top_builddir}/libguile/libguile.la
97 check_PROGRAMS += test-unwind
98 TESTS += test-unwind
99
100 # test-conversion
101 test_conversion_SOURCES = test-conversion.c
102 test_conversion_CFLAGS = ${test_cflags}
103 test_conversion_LDADD = ${top_builddir}/libguile/libguile.la
104 check_PROGRAMS += test-conversion
105 TESTS += test-conversion
106
107 # test-fast-slot-ref
108 check_SCRIPTS += test-fast-slot-ref
109 TESTS += test-fast-slot-ref
110
111 # test-use-srfi
112 check_SCRIPTS += test-use-srfi
113 TESTS += test-use-srfi
114
115 # test-scm-c-read
116 test_scm_c_read_SOURCES = test-scm-c-read.c
117 test_scm_c_read_CFLAGS = ${test_cflags}
118 test_scm_c_read_LDADD = ${top_builddir}/libguile/libguile.la
119 check_PROGRAMS += test-scm-c-read
120 TESTS += test-scm-c-read
121
122 # test-scm-take-locale-symbol
123 test_scm_take_locale_symbol_SOURCES = test-scm-take-locale-symbol.c
124 test_scm_take_locale_symbol_CFLAGS = ${test_cflags}
125 test_scm_take_locale_symbol_LDADD = ${top_builddir}/libguile/libguile.la
126 check_PROGRAMS += test-scm-take-locale-symbol
127 TESTS += test-scm-take-locale-symbol
128
129 # test-extensions
130 noinst_LTLIBRARIES += libtest-extensions.la
131 libtest_extensions_la_SOURCES = test-extensions-lib.c
132 libtest_extensions_la_CFLAGS = ${test_cflags}
133 libtest_extensions_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so
134 libtest_extensions_la_LIBADD = ${top_builddir}/libguile/libguile.la
135 check_SCRIPTS += test-extensions
136 TESTS += test-extensions
137
138
139 if BUILD_PTHREAD_SUPPORT
140
141 # test-with-guile-module
142 test_with_guile_module_CFLAGS = ${test_cflags}
143 test_with_guile_module_LDADD = ${top_builddir}/libguile/libguile.la
144 check_PROGRAMS += test-with-guile-module
145 TESTS += test-with-guile-module
146
147 test_scm_with_guile_CFLAGS = ${test_cflags}
148 test_scm_with_guile_LDADD = ${top_builddir}/libguile/libguile.la
149 check_PROGRAMS += test-scm-with-guile
150 TESTS += test-scm-with-guile
151
152 else
153
154 EXTRA_DIST += test-with-guile-module.c test-scm-with-guile.c
155
156 endif
157
158 EXTRA_DIST += ${check_SCRIPTS}