1239385Smm## tests/Makefile.am -- Process this file with automake to produce Makefile.in
2239385Smm##
3239385Smm## Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2016, 2018, 2020, 2021, 2022 INRIA
4239385Smm##
5239385Smm## This file is part of GNU MPC.
6239385Smm##
7239385Smm## GNU MPC is free software; you can redistribute it and/or modify it under
8239385Smm## the terms of the GNU Lesser General Public License as published by the
9239385Smm## Free Software Foundation; either version 3 of the License, or (at your
10239385Smm## option) any later version.
11239385Smm##
12239385Smm## GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
13239385Smm## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14239385Smm## FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15239385Smm## more details.
16239385Smm##
17239385Smm## You should have received a copy of the GNU Lesser General Public License
18239385Smm## along with this program. If not, see http://www.gnu.org/licenses/ .
19239385Smm
20239385SmmAM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)
21239385SmmLDADD = libmpc-tests.la $(top_builddir)/src/libmpc.la
22239385Smm# let libtool create an executable instead of a shell script
23239385Smm# useful for tests with valgrind
24239385Smm# The -L$(top_builddir)/src/.libs option is necessary for some platforms,
25239385Smm# such as HP-UX, when --with-gmp or --with-mpfr is used and an old MPC
26239385Smm# library is already installed in the corresponding lib directories: its
27239385Smm# purpose is to make sure that the local .libs comes first in the library
28239385Smm# 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 = tradius tballs teta                                    \
39  tabs tacos tacosh tadd tadd_fr tadd_si tadd_ui tagm targ              \
40  tasin tasinh tatan tatanh tcmp_abs tconj tcos tcosh                   \
41  tdiv tdiv_2si tdiv_2ui tdiv_fr tdiv_ui tdot texp tfma tfr_div tfr_sub \
42  timag tio_str tlog tlog10						\
43  tmul tmul_2si tmul_2ui tmul_fr tmul_i tmul_si tmul_ui tneg tnorm tpow	\
44  tpow_d tpow_fr tpow_ld tpow_si tpow_ui tpow_z tprec tproj treal	\
45  treimref trootofunity                                                 \
46  tset tsin tsin_cos tsinh tsqr tsqrt tstrtoc tsub tsub_fr	        \
47  tsub_ui tsum tswap ttan ttanh tui_div tui_ui_sub                      \
48  tget_version texceptions tdummy
49
50check_LTLIBRARIES=libmpc-tests.la
51libmpc_tests_la_SOURCES = mpc-tests.h check_data.c clear_parameters.c	\
52  close_datafile.c comparisons.c copy_parameter.c double_rounding.c	\
53  init_parameters.c mpfr_flags.c open_datafile.c print_parameter.c	\
54  random.c read_data.c read_description.c read_line.c rounding.c	\
55  setprec_parameters.c tpl_gmp.c tpl_mpc.c tpl_mpfr.c tpl_native.c
56
57DESCRIPTIONS = abs.dsc acos.dsc acosh.dsc add.dsc add_fr.dsc add_si.dsc	\
58  add_ui.dsc agm.dsc arg.dsc asin.dsc asinh.dsc atan.dsc atanh.dsc      \
59  cmp_abs.dsc conj.dsc	                                                \
60  cos.dsc cosh.dsc div.dsc div_2si.dsc div_2ui.dsc div_fr.dsc           \
61  div_ui.dsc exp.dsc fma.dsc fr_div.dsc fr_sub.dsc imag.dsc log.dsc	\
62  log10.dsc mul.dsc mul_2si.dsc mul_2ui.dsc mul_fr.dsc mul_i.dsc	\
63  mul_si.dsc mul_ui.dsc neg.dsc norm.dsc pow.dsc pow_d.dsc pow_fr.dsc	\
64  pow_si.dsc pow_ui.dsc pow_z.dsc proj.dsc real.dsc rootofunity.dsc     \
65  sin.dsc sin_cos.dsc	                                                \
66  sinh.dsc sqr.dsc sqrt.dsc sub.dsc sub_fr.dsc sub_ui.dsc tan.dsc	\
67  tanh.dsc ui_div.dsc ui_ui_sub.dsc
68DATA_SETS = abs.dat acos.dat acosh.dat add.dat add_fr.dat agm.dat       \
69  arg.dat asin.dat asinh.dat atan.dat atanh.dat                         \
70  cmp_abs.dat conj.dat cos.dat cosh.dat	                                \
71  div.dat div_fr.dat exp.dat fma.dat fr_div.dat fr_sub.dat inp_str.dat	\
72  log.dat log10.dat mul.dat mul_fr.dat neg.dat norm.dat pow.dat		\
73  pow_fr.dat pow_si.dat pow_ui.dat pow_z.dat proj.dat rootofunity.dat   \
74  sin.dat sinh.dat                                                      \
75  sqr.dat sqrt.dat strtoc.dat sub.dat sub_fr.dat tan.dat tanh.dat
76EXTRA_DIST = data_check.tpl tgeneric.tpl $(DATA_SETS) $(DESCRIPTIONS)
77
78LOG_COMPILER = $(VALGRIND)
79AM_LOG_FLAGS = $(VALGRIND_OPTS)
80TESTS = $(check_PROGRAMS)
81CLEANFILES = mpc_test
82