github.com/aergoio/aergo@v1.3.1/libtool/src/gmp-6.1.2/tests/rand/Makefile.am (about) 1 ## Process this file with automake to generate Makefile.in 2 3 # Copyright 2000-2003 Free Software Foundation, Inc. 4 # 5 # This file is part of the GNU MP Library test suite. 6 # 7 # The GNU MP Library test suite is free software; you can redistribute it 8 # and/or modify it under the terms of the GNU General Public License as 9 # published by the Free Software Foundation; either version 3 of the License, 10 # or (at your option) any later version. 11 # 12 # The GNU MP Library test suite is distributed in the hope that it will be 13 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15 # Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License along with 18 # the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. 19 20 21 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests 22 LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la 23 24 check_PROGRAMS = t-iset t-lc2exp t-mt t-rand t-urbui t-urmui t-urndmm 25 TESTS = $(check_PROGRAMS) 26 27 EXTRA_PROGRAMS = findlc gen gen.static spect stat 28 gen_static_SOURCES = gen.c 29 gen_static_LDFLAGS = -static 30 findlc_LDADD = libstat.la 31 spect_LDADD = libstat.la 32 stat_LDADD = libstat.la 33 34 EXTRA_LTLIBRARIES = libstat.la 35 libstat_la_SOURCES = gmpstat.h statlib.c zdiv_round.c 36 libstat_la_LIBADD = $(top_builddir)/libgmp.la $(LIBM) 37 38 CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) 39 40 allprogs: $(EXTRA_PROGRAMS) 41 42 $(top_builddir)/tests/libtests.la: 43 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la 44 45 manual-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 68 manual-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]')