1## tests/Makefile.am -- Process this file with automake to produce Makefile.in 2## 3## Copyright (C) 2008, 2009, 2010, 2011, 2012 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) -I$(top_srcdir)/src -I$(top_builddir) $(CPPFLAGS) $(CFLAGS) -L$(top_builddir)/tests/.libs -lmpc-tests -lmpc -lm $(LIBS) 29 30check_PROGRAMS = tabs tacos tacosh tadd tadd_fr tadd_si tadd_ui targ tasin \ 31tasinh tatan tatanh tconj tcos tcosh tdiv tdiv_2si tdiv_2ui tdiv_fr tdiv_ui \ 32texp tfma tfr_div tfr_sub timag tio_str tlog tlog10 \ 33tmul tmul_2si tmul_2ui tmul_fr tmul_i tmul_si tmul_ui \ 34tneg tnorm tpow tpow_ld tpow_d tpow_fr tpow_si tpow_ui tpow_z \ 35tprec tproj treal treimref tset tsin tsin_cos tsinh tsqr tsqrt tstrtoc tsub \ 36tsub_fr tsub_ui tswap ttan ttanh tui_div tui_ui_sub tget_version 37 38check_LTLIBRARIES=libmpc-tests.la 39libmpc_tests_la_SOURCES=mpc-tests.h random.c tgeneric.c read_data.c \ 40comparisons.c 41 42EXTRA_DIST = abs.dat acos.dat acosh.dat asin.dat asinh.dat atan.dat atanh.dat \ 43add.dat add_fr.dat arg.dat conj.dat cos.dat cosh.dat div.dat div_fr.dat \ 44exp.dat fma.dat fr_div.dat fr_sub.dat inp_str.dat log.dat log10.dat mul.dat \ 45mul_fr.dat neg.dat norm.dat pow.dat pow_fr.dat pow_si.dat pow_ui.dat proj.dat \ 46sin.dat sinh.dat sqr.dat sqrt.dat strtoc.dat sub.dat sub_fr.dat tan.dat \ 47tanh.dat 48 49TESTS_ENVIRONMENT = $(VALGRIND) 50TESTS = $(check_PROGRAMS) 51CLEANFILES = mpc_test 52 53