github.com/aergoio/aergo@v1.3.1/libtool/src/gmp-6.1.2/tests/cxx/Makefile.am (about) 1 ## Process this file with automake to generate Makefile.in 2 3 # Copyright 2001-2004 Free Software Foundation, Inc. 4 # 5 # This file is part of the GNU MP Library test suite. 6 # 7 # The GNU MP Library test suite is free software; you can redistribute it 8 # and/or modify it under the terms of the GNU General Public License as 9 # published by the Free Software Foundation; either version 3 of the License, 10 # or (at your option) any later version. 11 # 12 # The GNU MP Library test suite is distributed in the hope that it will be 13 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15 # Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License along with 18 # the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. 19 20 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. 25 # -lm is needed for t-ops2 which compares the results of trunc and mpf_trunc. 26 # 27 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests 28 LDADD = -L$(top_builddir)/.libs \ 29 $(top_builddir)/tests/libtests.la \ 30 $(top_builddir)/libgmpxx.la \ 31 $(top_builddir)/libgmp.la \ 32 -lm 33 34 if WANT_CXX 35 check_PROGRAMS = t-binary t-cast t-cxx11 \ 36 t-headers t-iostream t-istream t-locale t-misc t-mix \ 37 t-ops t-ops2 t-ops3 t-ostream t-prec \ 38 t-ternary t-unary \ 39 t-do-exceptions-work-at-all-with-this-compiler \ 40 t-assign t-constr t-rand 41 TESTS = $(check_PROGRAMS) 42 endif 43 44 t_assign_SOURCES = t-assign.cc 45 t_binary_SOURCES = t-binary.cc 46 t_cast_SOURCES = t-cast.cc 47 t_constr_SOURCES = t-constr.cc 48 t_cxx11_SOURCES = t-cxx11.cc 49 t_headers_SOURCES = t-headers.cc 50 t_iostream_SOURCES= t-iostream.cc 51 t_istream_SOURCES = t-istream.cc 52 t_locale_SOURCES = t-locale.cc clocale.c 53 t_misc_SOURCES = t-misc.cc 54 t_mix_SOURCES = t-mix.cc 55 t_ops_SOURCES = t-ops.cc 56 t_ops2_SOURCES = t-ops2.cc 57 t_ops3_SOURCES = t-ops3.cc 58 t_ostream_SOURCES = t-ostream.cc 59 t_prec_SOURCES = t-prec.cc 60 t_rand_SOURCES = t-rand.cc 61 t_ternary_SOURCES = t-ternary.cc 62 t_unary_SOURCES = t-unary.cc 63 t_do_exceptions_work_at_all_with_this_compiler_SOURCES = \ 64 t-do-exceptions-work-at-all-with-this-compiler.cc 65 66 $(top_builddir)/tests/libtests.la: 67 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la 68 69 70 # Libtool (1.5) somehow botches its uninstalled shared library setups on 71 # OpenBSD 3.2, making the C++ test programs here fail. libgmpxx.so ends up 72 # with a NEEDED record asking for ./.libs/libgmp.so.N, but the loader can't 73 # find that unless it exists in the current directory. 74 # 75 # FIXME: Clearly libtool ought to handle this itself, in which case the hack 76 # here can be removed. 77 # 78 # Note this fix applies only when running "make check". The cp here should 79 # be done manually if just one program is to be built and run. 80 # 81 TESTS_ENVIRONMENT = cp $(top_builddir)/.libs/libgmp.so.* .libs 2>/dev/null || true;