Commit | Line | Data |
---|---|---|
d7a88afe KR |
1 | ## Process this file with automake to produce Makefile.in. |
2 | ## | |
3 | ## Copyright 2003, 2004, 2005, 2006 Software Foundation, Inc. | |
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. | |
24 | TESTS = | |
25 | noinst_LTLIBRARIES = | |
26 | check_PROGRAMS = | |
27 | check_SCRIPTS = | |
28 | BUILT_SOURCES = | |
29 | ||
30 | TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env" | |
31 | ||
23d72566 | 32 | test_cflags = \ |
6405ae86 RB |
33 | -I$(top_srcdir)/test-suite/standalone \ |
34 | -I$(top_srcdir) \ | |
ae90bbb5 MV |
35 | -I$(top_srcdir)/libguile-ltdl $(EXTRA_DEFS) $(GUILE_CFLAGS) |
36 | ||
7108b7b8 | 37 | AM_LDFLAGS = $(GUILE_CFLAGS) |
6405ae86 | 38 | |
f1efbdf3 MD |
39 | snarfcppopts = \ |
40 | $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) -I$(top_srcdir) | |
23d72566 KR |
41 | SUFFIXES = .x |
42 | .c.x: | |
6405ae86 RB |
43 | ${top_builddir}/libguile/guile-snarf -o $@ $< $(snarfcppopts) |
44 | ||
8f9ae7fd | 45 | CLEANFILES = *.x |
6405ae86 RB |
46 | |
47 | .DELETE_ON_ERROR: | |
48 | ||
060ffedf RB |
49 | check_SCRIPTS += test-system-cmds |
50 | TESTS += test-system-cmds | |
51 | ||
87681707 RB |
52 | check_SCRIPTS += test-require-extension |
53 | TESTS += test-require-extension | |
54 | ||
6405ae86 RB |
55 | # test-num2integral |
56 | test_num2integral_SOURCES = test-num2integral.c | |
57 | test_num2integral_CFLAGS = ${test_cflags} | |
58 | test_num2integral_LDADD = ${top_builddir}/libguile/libguile.la | |
59 | check_PROGRAMS += test-num2integral | |
60 | TESTS += test-num2integral | |
61 | ||
be4381fa KR |
62 | # test-round |
63 | test_round_CFLAGS = ${test_cflags} | |
64 | test_round_LDADD = ${top_builddir}/libguile/libguile.la | |
65 | check_PROGRAMS += test-round | |
66 | TESTS += test-round | |
67 | ||
6405ae86 RB |
68 | # test-gh |
69 | test_gh_SOURCES = test-gh.c | |
70 | test_gh_CFLAGS = ${test_cflags} | |
71 | test_gh_LDADD = ${top_builddir}/libguile/libguile.la | |
72 | check_PROGRAMS += test-gh | |
73 | TESTS += test-gh | |
74 | ||
75 | # test-asmobs | |
76 | noinst_LTLIBRARIES += libtest-asmobs.la | |
8f9ae7fd | 77 | libtest_asmobs_la_SOURCES = test-asmobs-lib.c test-asmobs-lib.x |
6405ae86 | 78 | libtest_asmobs_la_CFLAGS = ${test_cflags} |
2e945bcc | 79 | libtest_asmobs_la_LDFLAGS = -no-undefined -rpath `pwd` # so libtool will really build an .so |
6405ae86 | 80 | libtest_asmobs_la_LIBADD = ${top_builddir}/libguile/libguile.la |
8f9ae7fd | 81 | BUILT_SOURCES += test-asmobs-lib.x |
6405ae86 RB |
82 | check_SCRIPTS += test-asmobs |
83 | TESTS += test-asmobs | |
84 | ||
d7a88afe KR |
85 | # test-list |
86 | test_list_SOURCES = test-list.c | |
87 | test_list_CFLAGS = ${test_cflags} | |
88 | test_list_LDADD = ${top_builddir}/libguile/libguile.la | |
89 | check_PROGRAMS += test-list | |
90 | TESTS += test-list | |
91 | ||
3c8fb18e MV |
92 | # test-unwind |
93 | test_unwind_SOURCES = test-unwind.c | |
94 | test_unwind_CFLAGS = ${test_cflags} | |
95 | test_unwind_LDADD = ${top_builddir}/libguile/libguile.la | |
96 | check_PROGRAMS += test-unwind | |
97 | TESTS += test-unwind | |
98 | ||
2aac7a48 MV |
99 | # test-conversion |
100 | test_conversion_SOURCES = test-conversion.c | |
101 | test_conversion_CFLAGS = ${test_cflags} | |
102 | test_conversion_LDADD = ${top_builddir}/libguile/libguile.la | |
103 | check_PROGRAMS += test-conversion | |
104 | TESTS += test-conversion | |
105 | ||
23d72566 KR |
106 | # test-use-srfi |
107 | TESTS += test-use-srfi | |
108 | ||
6405ae86 RB |
109 | all-local: |
110 | cd ${srcdir} && chmod u+x ${check_SCRIPTS} | |
111 | ||
112 | EXTRA_DIST = ${check_SCRIPTS} |