1## tests/Makefile.am -- Process this file with automake to produce Makefile.in 2## 3## Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2016, 2020 INRIA 4## 5## This file is part of GNU MPC. 6## 7## GNU MPC is free software; you can redistribute it and/or modify it under 8## the terms of the GNU Lesser General Public License as published by the 9## Free Software Foundation; either version 3 of the License, or (at your 10## option) any later version. 11## 12## GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY 13## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14## FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 15## more details. 16## 17## You should have received a copy of the GNU Lesser General Public License 18## along with this program. If not, see http://www.gnu.org/licenses/ . 19 20AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir) 21LDADD = libmpc-tests.la $(top_builddir)/src/libmpc.la 22# let libtool create an executable instead of a shell script 23# useful for tests with valgrind 24# The -L$(top_builddir)/src/.libs option is necessary for some platforms, 25# such as HP-UX, when --with-gmp or --with-mpfr is used and an old MPC 26# library is already installed in the corresponding lib directories: its 27# purpose is to make sure that the local .libs comes first in the library 28# search path (otherwise the tests are linked against the old MPC library 29# by the LINK command -- see the generated Makefile). 30AM_LDFLAGS = -no-install -L$(top_builddir)/src/.libs 31# LOADLIBES (documented in the "GNU make" manual and equivalent to LDLIBS) 32# enables to compile a program foo.c in the test directory by simply doing 33# "make foo". 34LOADLIBES=$(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) \ 35 $(top_builddir)/tests/.libs/libmpc-tests.a \ 36 $(top_builddir)/src/.libs/libmpc.a $(LIBS) 37 38check_PROGRAMS = tabs tacos tacosh tadd tadd_fr tadd_si tadd_ui targ \ 39 tasin tasinh tatan tatanh tcmp_abs tconj tcos tcosh \ 40 tdiv tdiv_2si tdiv_2ui tdiv_fr tdiv_ui tdot texp tfma tfr_div tfr_sub \ 41 timag tio_str tlog tlog10 \ 42 tmul tmul_2si tmul_2ui tmul_fr tmul_i tmul_si tmul_ui tneg tnorm tpow \ 43 tpow_d tpow_fr tpow_ld tpow_si tpow_ui tpow_z tprec tproj treal \ 44 treimref trootofunity \ 45 tset tsin tsin_cos tsinh tsqr tsqrt tstrtoc tsub tsub_fr \ 46 tsub_ui tsum tswap ttan ttanh tui_div tui_ui_sub tget_version exceptions 47 48check_LTLIBRARIES=libmpc-tests.la 49libmpc_tests_la_SOURCES = mpc-tests.h check_data.c clear_parameters.c \ 50 close_datafile.c comparisons.c copy_parameter.c double_rounding.c \ 51 init_parameters.c mpfr_flags.c open_datafile.c print_parameter.c \ 52 random.c read_data.c read_description.c read_line.c rounding.c \ 53 setprec_parameters.c tpl_gmp.c tpl_mpc.c tpl_mpfr.c tpl_native.c 54 55DESCRIPTIONS = abs.dsc acos.dsc acosh.dsc add.dsc add_fr.dsc add_si.dsc \ 56 add_ui.dsc arg.dsc asin.dsc asinh.dsc atan.dsc atanh.dsc \ 57 cmp_abs.dsc conj.dsc \ 58 cos.dsc cosh.dsc div.dsc div_2si.dsc div_2ui.dsc div_fr.dsc \ 59 div_ui.dsc exp.dsc fma.dsc fr_div.dsc fr_sub.dsc imag.dsc log.dsc \ 60 log10.dsc mul.dsc mul_2si.dsc mul_2ui.dsc mul_fr.dsc mul_i.dsc \ 61 mul_si.dsc mul_ui.dsc neg.dsc norm.dsc pow.dsc pow_d.dsc pow_fr.dsc \ 62 pow_si.dsc pow_ui.dsc pow_z.dsc proj.dsc real.dsc rootofunity.dsc \ 63 sin.dsc sin_cos.dsc \ 64 sinh.dsc sqr.dsc sqrt.dsc sub.dsc sub_fr.dsc sub_ui.dsc tan.dsc \ 65 tanh.dsc ui_div.dsc ui_ui_sub.dsc 66DATA_SETS = abs.dat acos.dat acosh.dat add.dat add_fr.dat arg.dat \ 67 asin.dat asinh.dat atan.dat atanh.dat \ 68 cmp_abs.dat conj.dat cos.dat cosh.dat \ 69 div.dat div_fr.dat exp.dat fma.dat fr_div.dat fr_sub.dat inp_str.dat \ 70 log.dat log10.dat mul.dat mul_fr.dat neg.dat norm.dat pow.dat \ 71 pow_fr.dat pow_si.dat pow_ui.dat pow_z.dat proj.dat rootofunity.dat \ 72 sin.dat sinh.dat \ 73 sqr.dat sqrt.dat strtoc.dat sub.dat sub_fr.dat tan.dat tanh.dat 74EXTRA_DIST = data_check.tpl tgeneric.tpl $(DATA_SETS) $(DESCRIPTIONS) 75 76LOG_COMPILER = $(VALGRIND) 77AM_LOG_FLAGS = $(VALGRIND_OPTS) 78TESTS = $(check_PROGRAMS) 79CLEANFILES = mpc_test 80