Makefile.am revision 1.1.1.1
1## Process this file with automake to generate Makefile.in 2 3# Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 4# 5# This file is part of the GNU MP Library. 6# 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. 11# 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. 16# 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/. 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# 26INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests 27LDADD = -L$(top_builddir)/.libs \ 28 $(top_builddir)/tests/libtests.la \ 29 $(top_builddir)/libgmpxx.la \ 30 $(top_builddir)/libgmp.la 31 32if WANT_CXX 33check_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 35TESTS = $(check_PROGRAMS) 36endif 37 38t_assign_SOURCES = t-assign.cc 39t_binary_SOURCES = t-binary.cc 40t_cast_SOURCES = t-cast.cc 41t_constr_SOURCES = t-constr.cc 42t_headers_SOURCES = t-headers.cc 43t_istream_SOURCES = t-istream.cc 44t_locale_SOURCES = t-locale.cc clocale.c 45t_misc_SOURCES = t-misc.cc 46t_ops_SOURCES = t-ops.cc 47t_ostream_SOURCES = t-ostream.cc 48t_prec_SOURCES = t-prec.cc 49t_rand_SOURCES = t-rand.cc 50t_ternary_SOURCES = t-ternary.cc 51t_unary_SOURCES = t-unary.cc 52 53$(top_builddir)/tests/libtests.la: 54 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la 55 56 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. 61# 62# FIXME: Clearly libtool ought to handle this itself, in which case the hack 63# here can be removed. 64# 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. 67# 68TESTS_ENVIRONMENT = cp $(top_builddir)/.libs/libgmp.so.* .libs 2>/dev/null || true; 69