1# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
2# This Makefile.am is free software; the Free Software Foundation
3# gives unlimited permission to copy and/or distribute it,
4# with or without modifications, as long as this notice is preserved.
5
6# This program is distributed in the hope that it will be useful,
7# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
8# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9# PARTICULAR PURPOSE.
10
11
12AUTOMAKE_OPTIONS = 1.6 gnu $(top_builddir)/ansi2knr
13
14check_PROGRAMS = tversion tinternals tinits tisqrt tsgn tcheck	\
15     tisnan texceptions tset_exp tset mpf_compat mpfr_compat	\
16     reuse tabs tacos tacosh tadd tadd1sp tadd_d tadd_ui tagm	\
17     tasin tasinh tatan tatanh taway tbuildopt tcan_round	\
18     tcbrt tcmp tcmp2 tcmp_d tcmp_ld tcmp_ui tcmpabs		\
19     tcomparisons tconst_catalan tconst_euler tconst_log2	\
20     tconst_pi tcopysign tcos tcosh tcot tcoth tcsc tcsch	\
21     td_div td_sub tdigamma tdim tdiv tdiv_d tdiv_ui teint teq	\
22     terf texp texp10 texp2 texpm1 tfactorial tfits tfma tfmod	\
23     tfms tfprintf tfrac tgamma tget_flt tget_d tget_d_2exp	\
24     tget_f tget_ld_2exp tget_set_d64 tget_sj tget_str tget_z	\
25     tgmpop thyperbolic thypot tinp_str tj0 tj1 tjn tl2b	\
26     tlgamma tli2 tlngamma tlog tlog10 tlog1p tlog2 tmin_prec	\
27     tminmax tmodf tmul tmul_2exp tmul_d tmul_ui tnext		\
28     tout_str toutimpl tpow tpow3 tpow_all tpow_z tprintf	\
29     trandom trec_sqrt tremquo trint troot tround_prec tsec	\
30     tsech tset_d tset_f tset_ld tset_q tset_si tset_sj		\
31     tset_str tset_z tset_z_exp tsi_op tsin tsin_cos tsinh      \
32     tsinh_cosh tsprintf tsqr tsqrt tsqrt_ui tstckintc tstrtofr \
33     tsub tsub1sp tsub_d tsub_ui tsubnormal tsum tswap turandom \
34     ttan ttanh ttrunc tui_div tui_pow tui_sub ty0 ty1 tyn	\
35     tzeta tzeta_ui tai
36
37EXTRA_DIST = tgeneric.c tgeneric_ui.c mpf_compat.h inp_str.data tmul.dat
38
39LDADD = libfrtests.la $(MPFR_LIBM) $(top_builddir)/libmpfr.la
40INCLUDES = -I$(top_srcdir) -I$(top_builddir)
41
42# LOADLIBES (documented in the "GNU make" manual and equivalent to LDLIBS)
43# enables to compile a program foo.c in the test directory by simply doing
44# "make foo".
45LOADLIBES=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(top_builddir)/tests/.libs/libfrtests.a $(top_builddir)/.libs/libmpfr.a $(LIBS) $(MPFR_LIBM)
46
47check_LTLIBRARIES = libfrtests.la
48libfrtests_la_SOURCES = mpfr-test.h memory.c rnd_mode.c tests.c cmp_str.c random2.c
49
50$(top_builddir)/libmpfr.la:
51	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) libmpfr.la
52
53TESTS = $(check_PROGRAMS)
54TESTS_ENVIRONMENT = MPFR_QUIET=1
55