1## tests/Makefile.am -- Process this file with automake to produce Makefile.in 2## 3## Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2016 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 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 24AM_LDFLAGS = -no-install 25# LOADLIBES (documented in the "GNU make" manual and equivalent to LDLIBS) 26# enables to compile a program foo.c in the test directory by simply doing 27# "make foo". 28LOADLIBES=$(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) \ 29 $(top_builddir)/tests/.libs/libmpc-tests.a \ 30 $(top_builddir)/src/.libs/libmpc.a $(LIBS) 31 32check_PROGRAMS = tabs tacos tacosh tadd tadd_fr tadd_si tadd_ui targ \ 33 tasin tasinh tatan tatanh tcmp_abs tconj tcos tcosh \ 34 tdiv tdiv_2si tdiv_2ui \ 35 tdiv_fr tdiv_ui texp tfma tfr_div tfr_sub timag tio_str tlog tlog10 \ 36 tmul tmul_2si tmul_2ui tmul_fr tmul_i tmul_si tmul_ui tneg tnorm tpow \ 37 tpow_d tpow_fr tpow_ld tpow_si tpow_ui tpow_z tprec tproj treal \ 38 treimref trootofunity \ 39 tset tsin tsin_cos tsinh tsqr tsqrt tstrtoc tsub tsub_fr \ 40 tsub_ui tswap ttan ttanh tui_div tui_ui_sub tget_version exceptions 41 42check_LTLIBRARIES=libmpc-tests.la 43libmpc_tests_la_SOURCES = mpc-tests.h check_data.c clear_parameters.c \ 44 close_datafile.c comparisons.c copy_parameter.c double_rounding.c \ 45 init_parameters.c mpfr_flags.c open_datafile.c print_parameter.c \ 46 random.c read_data.c read_description.c read_line.c rounding.c \ 47 setprec_parameters.c tpl_gmp.c tpl_mpc.c tpl_mpfr.c tpl_native.c 48 49DESCRIPTIONS = abs.dsc acos.dsc acosh.dsc add.dsc add_fr.dsc add_si.dsc \ 50 add_ui.dsc arg.dsc asin.dsc asinh.dsc atan.dsc atanh.dsc \ 51 cmp_abs.dsc conj.dsc \ 52 cos.dsc cosh.dsc div.dsc div_2si.dsc div_2ui.dsc div_fr.dsc \ 53 div_ui.dsc exp.dsc fma.dsc fr_div.dsc fr_sub.dsc imag.dsc log.dsc \ 54 log10.dsc mul.dsc mul_2si.dsc mul_2ui.dsc mul_fr.dsc mul_i.dsc \ 55 mul_si.dsc mul_ui.dsc neg.dsc norm.dsc pow.dsc pow_d.dsc pow_fr.dsc \ 56 pow_si.dsc pow_ui.dsc pow_z.dsc proj.dsc real.dsc rootofunity.dsc \ 57 sin.dsc sin_cos.dsc \ 58 sinh.dsc sqr.dsc sqrt.dsc sub.dsc sub_fr.dsc sub_ui.dsc tan.dsc \ 59 tanh.dsc ui_div.dsc ui_ui_sub.dsc 60DATA_SETS = abs.dat acos.dat acosh.dat add.dat add_fr.dat arg.dat \ 61 asin.dat asinh.dat atan.dat atanh.dat \ 62 cmp_abs.dat conj.dat cos.dat cosh.dat \ 63 div.dat div_fr.dat exp.dat fma.dat fr_div.dat fr_sub.dat inp_str.dat \ 64 log.dat log10.dat mul.dat mul_fr.dat neg.dat norm.dat pow.dat \ 65 pow_fr.dat pow_si.dat pow_ui.dat pow_z.dat proj.dat rootofunity.dat \ 66 sin.dat sinh.dat \ 67 sqr.dat sqrt.dat strtoc.dat sub.dat sub_fr.dat tan.dat tanh.dat 68EXTRA_DIST = data_check.tpl tgeneric.tpl $(DATA_SETS) $(DESCRIPTIONS) 69 70LOG_COMPILER = $(VALGRIND) 71AM_LOG_FLAGS = $(VALGRIND_OPTS) 72TESTS = $(check_PROGRAMS) 73CLEANFILES = mpc_test 74