Blame tests/cxx/Makefile.am

Packit 5c3484
## Process this file with automake to generate Makefile.in
Packit 5c3484
Packit 5c3484
# Copyright 2001-2004 Free Software Foundation, Inc.
Packit 5c3484
#
Packit 5c3484
# This file is part of the GNU MP Library test suite.
Packit 5c3484
#
Packit 5c3484
# The GNU MP Library test suite is free software; you can redistribute it
Packit 5c3484
# and/or modify it under the terms of the GNU General Public License as
Packit 5c3484
# published by the Free Software Foundation; either version 3 of the License,
Packit 5c3484
# or (at your option) any later version.
Packit 5c3484
#
Packit 5c3484
# The GNU MP Library test suite is distributed in the hope that it will be
Packit 5c3484
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5c3484
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
Packit 5c3484
# Public License for more details.
Packit 5c3484
#
Packit 5c3484
# You should have received a copy of the GNU General Public License along with
Packit 5c3484
# the GNU MP Library test suite.  If not, see https://www.gnu.org/licenses/.
Packit 5c3484
Packit 5c3484
Packit 5c3484
# LDADD has an explicit -L of $(top_builddir)/.libs for the benefit of gcc
Packit 5c3484
# 3.2 on itanium2-hp-hpux11.22.  Without this option, the libgmp.sl.6
Packit 5c3484
# required by libgmpxx.sl (ie. in its NEEDED records) is not found by the
Packit 5c3484
# linker.  FIXME: Presumably libtool should do something about this itself.
Packit 5c3484
# -lm is needed for t-ops2 which compares the results of trunc and mpf_trunc.
Packit 5c3484
#
Packit 5c3484
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests
Packit 5c3484
LDADD = -L$(top_builddir)/.libs \
Packit 5c3484
  $(top_builddir)/tests/libtests.la \
Packit 5c3484
  $(top_builddir)/libgmpxx.la \
Packit 5c3484
  $(top_builddir)/libgmp.la \
Packit 5c3484
  -lm
Packit 5c3484
Packit 5c3484
if WANT_CXX
Packit 5c3484
check_PROGRAMS = t-binary t-cast t-cxx11 \
Packit 5c3484
  t-headers t-iostream t-istream t-locale t-misc t-mix \
Packit 5c3484
  t-ops t-ops2 t-ops3 t-ostream t-prec \
Packit 5c3484
  t-ternary t-unary \
Packit 5c3484
  t-do-exceptions-work-at-all-with-this-compiler \
Packit 5c3484
  t-assign t-constr t-rand
Packit 5c3484
TESTS = $(check_PROGRAMS)
Packit 5c3484
endif
Packit 5c3484
Packit 5c3484
t_assign_SOURCES  = t-assign.cc
Packit 5c3484
t_binary_SOURCES  = t-binary.cc
Packit 5c3484
t_cast_SOURCES    = t-cast.cc
Packit 5c3484
t_constr_SOURCES  = t-constr.cc
Packit 5c3484
t_cxx11_SOURCES   = t-cxx11.cc
Packit 5c3484
t_headers_SOURCES = t-headers.cc
Packit 5c3484
t_iostream_SOURCES= t-iostream.cc
Packit 5c3484
t_istream_SOURCES = t-istream.cc
Packit 5c3484
t_locale_SOURCES  = t-locale.cc clocale.c
Packit 5c3484
t_misc_SOURCES    = t-misc.cc
Packit 5c3484
t_mix_SOURCES     = t-mix.cc
Packit 5c3484
t_ops_SOURCES     = t-ops.cc
Packit 5c3484
t_ops2_SOURCES    = t-ops2.cc
Packit 5c3484
t_ops3_SOURCES    = t-ops3.cc
Packit 5c3484
t_ostream_SOURCES = t-ostream.cc
Packit 5c3484
t_prec_SOURCES    = t-prec.cc
Packit 5c3484
t_rand_SOURCES    = t-rand.cc
Packit 5c3484
t_ternary_SOURCES = t-ternary.cc
Packit 5c3484
t_unary_SOURCES   = t-unary.cc
Packit 5c3484
t_do_exceptions_work_at_all_with_this_compiler_SOURCES = \
Packit 5c3484
  t-do-exceptions-work-at-all-with-this-compiler.cc
Packit 5c3484
Packit 5c3484
$(top_builddir)/tests/libtests.la:
Packit 5c3484
	cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
Packit 5c3484
Packit 5c3484
Packit 5c3484
# Libtool (1.5) somehow botches its uninstalled shared library setups on
Packit 5c3484
# OpenBSD 3.2, making the C++ test programs here fail.  libgmpxx.so ends up
Packit 5c3484
# with a NEEDED record asking for ./.libs/libgmp.so.N, but the loader can't
Packit 5c3484
# find that unless it exists in the current directory.
Packit 5c3484
#
Packit 5c3484
# FIXME: Clearly libtool ought to handle this itself, in which case the hack
Packit 5c3484
# here can be removed.
Packit 5c3484
#
Packit 5c3484
# Note this fix applies only when running "make check".  The cp here should
Packit 5c3484
# be done manually if just one program is to be built and run.
Packit 5c3484
#
Packit 5c3484
TESTS_ENVIRONMENT = cp $(top_builddir)/.libs/libgmp.so.* .libs 2>/dev/null || true;