1 ## Process this file with automake to generate Makefile.in
3 # Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5 # This file is part of the GNU MP Library.
7 # The GNU MP Library is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or (at your
10 # option) any later version.
12 # The GNU MP Library is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 # License for more details.
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
21 # LDADD has an explicit -L of $(top_builddir)/.libs for the benefit of gcc
22 # 3.2 on itanium2-hp-hpux11.22. Without this option, the libgmp.sl.6
23 # required by libgmpxx.sl (ie. in its NEEDED records) is not found by the
24 # linker. FIXME: Presumably libtool should do something about this itself.
26 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
27 LDADD = -L$(top_builddir)/.libs \
28 $(top_builddir)/tests/libtests.la \
29 $(top_builddir)/libgmpxx.la \
30 $(top_builddir)/libgmp.la
33 check_PROGRAMS = t-assign t-binary t-cast t-constr t-headers \
34 t-istream t-locale t-misc t-ops t-ostream t-prec t-rand t-ternary t-unary
35 TESTS = $(check_PROGRAMS)
38 t_assign_SOURCES = t-assign.cc
39 t_binary_SOURCES = t-binary.cc
40 t_cast_SOURCES = t-cast.cc
41 t_constr_SOURCES = t-constr.cc
42 t_headers_SOURCES = t-headers.cc
43 t_istream_SOURCES = t-istream.cc
44 t_locale_SOURCES = t-locale.cc clocale.c
45 t_misc_SOURCES = t-misc.cc
46 t_ops_SOURCES = t-ops.cc
47 t_ostream_SOURCES = t-ostream.cc
48 t_prec_SOURCES = t-prec.cc
49 t_rand_SOURCES = t-rand.cc
50 t_ternary_SOURCES = t-ternary.cc
51 t_unary_SOURCES = t-unary.cc
53 $(top_builddir)/tests/libtests.la:
54 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
57 # Libtool (1.5) somehow botches its uninstalled shared library setups on
58 # OpenBSD 3.2, making the C++ test programs here fail. libgmpxx.so ends up
59 # with a NEEDED record asking for ./.libs/libgmp.so.N, but the loader can't
60 # find that unless it exists in the current directory.
62 # FIXME: Clearly libtool ought to handle this itself, in which case the hack
63 # here can be removed.
65 # Note this fix applies only when running "make check". The cp here should
66 # be done manually if just one program is to be built and run.
68 TESTS_ENVIRONMENT = cp $(top_builddir)/.libs/libgmp.so.* .libs 2>/dev/null || true;