1## Process this file with automake to generate Makefile.in 2 3# Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4# 5# This file is part of the GNU MP Library. 6# 7# The GNU MP Library is free software; you can redistribute it and/or modify 8# it under the terms of the GNU Lesser General Public License as published by 9# the Free Software Foundation; either version 3 of the License, or (at your 10# option) any later version. 11# 12# The GNU MP Library is distributed in the hope that it will be useful, but 13# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15# License for more details. 16# 17# You should have received a copy of the GNU Lesser General Public License 18# along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 20 21INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests 22LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la 23 24check_PROGRAMS = t-iset t-lc2exp t-mt t-rand t-urbui t-urmui t-urndmm 25TESTS = $(check_PROGRAMS) 26 27EXTRA_PROGRAMS = findlc gen gen.static spect stat 28gen_static_SOURCES = gen.c 29gen_static_LDFLAGS = -static 30findlc_LDADD = libstat.la 31spect_LDADD = libstat.la 32stat_LDADD = libstat.la 33 34EXTRA_LTLIBRARIES = libstat.la 35libstat_la_SOURCES = gmpstat.h statlib.c zdiv_round.c 36libstat_la_LIBADD = $(top_builddir)/libgmp.la $(LIBM) 37 38CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) 39 40allprogs: $(EXTRA_PROGRAMS) 41 42$(top_builddir)/tests/libtests.la: 43 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la 44 45manual-test: gen$(EXEEXT) stat$(EXEEXT) 46 @(echo -n '16i: '; ./gen -f mpz_urandomb -z 16 1000 \ 47 | ./stat -i 0xffff | grep '^[0-9]') 48 @(echo -n '32i: '; ./gen -f mpz_urandomb -z 32 1000 \ 49 | ./stat -i 0xffffffff | grep '^[0-9]') 50 @(echo -n '33i: '; ./gen -f mpz_urandomb -z 33 1000 \ 51 | ./stat -i 0x1ffffffff | grep '^[0-9]') 52 @(echo -n '64i: '; ./gen -f mpz_urandomb -z 64 1000 \ 53 | ./stat -i 0xffffffffffffffff | grep '^[0-9]') 54 @(echo -n '128i: '; ./gen -f mpz_urandomb -z 128 1000 \ 55 | ./stat -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^[0-9]') 56 57 @(echo -n '16f: '; ./gen -f mpf_urandomb -z 16 1000 \ 58 | ./stat | grep '^[0-9]') 59 @(echo -n '32f: '; ./gen -f mpf_urandomb -z 32 1000 \ 60 | ./stat | grep '^[0-9]') 61 @(echo -n '33f: '; ./gen -f mpf_urandomb -z 33 1000 \ 62 | ./stat | grep '^[0-9]') 63 @(echo -n '64f: '; ./gen -f mpf_urandomb -z 64 1000 \ 64 | ./stat | grep '^[0-9]') 65 @(echo -n '128f: '; ./gen -f mpf_urandomb -z 128 1000 \ 66 | ./stat | grep '^[0-9]') 67 68manual-bigtest: gen$(EXEEXT) stat$(EXEEXT) 69 @(echo '16i: '; ./gen -f mpz_urandomb -z 16 50000 \ 70 | ./stat -2 1000 -i 0xffff | grep '^K[mp]') 71 @(echo '32i: '; ./gen -f mpz_urandomb -z 32 50000 \ 72 | ./stat -2 1000 -i 0xffffffff | grep '^K[mp]') 73 @(echo '33i: '; ./gen -f mpz_urandomb -z 33 50000 \ 74 | ./stat -2 1000 -i 0x1ffffffff | grep '^K[mp]') 75 @(echo '64i: '; ./gen -f mpz_urandomb -z 64 50000 \ 76 | ./stat -2 1000 -i 0xffffffffffffffff | grep '^K[mp]') 77 @(echo '128i: '; ./gen -f mpz_urandomb -z 128 50000 \ 78 | ./stat -2 1000 -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^K[mp]') 79 80 @(echo '16f: '; ./gen -f mpf_urandomb -z 16 50000 \ 81 | ./stat -2 1000 | grep '^K[mp]') 82 @(echo '32f: '; ./gen -f mpf_urandomb -z 32 50000 \ 83 | ./stat -2 1000 | grep '^K[mp]') 84 @(echo '33f: '; ./gen -f mpf_urandomb -z 33 50000 \ 85 | ./stat -2 1000 | grep '^K[mp]') 86 @(echo '64f: '; ./gen -f mpf_urandomb -z 64 50000 \ 87 | ./stat -2 1000 | grep '^K[mp]') 88 @(echo '128f: '; ./gen -f mpf_urandomb -z 128 50000 \ 89 | ./stat -2 1000 | grep '^K[mp]') 90