1 | ## Process this file with automake to generate Makefile.in |
---|
2 | |
---|
3 | # Copyright 2000, 2001, 2002 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 2.1 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; see the file COPYING.LIB. If not, write to |
---|
19 | # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
---|
20 | # MA 02111-1307, USA. |
---|
21 | |
---|
22 | |
---|
23 | AUTOMAKE_OPTIONS = gnu no-dependencies $(top_builddir)/ansi2knr |
---|
24 | |
---|
25 | INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests |
---|
26 | LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la |
---|
27 | |
---|
28 | check_PROGRAMS = t-lc2exp t-rand |
---|
29 | TESTS = $(check_PROGRAMS) |
---|
30 | |
---|
31 | EXTRA_PROGRAMS = findlc gen gen.static spect stat |
---|
32 | gen_static_SOURCES = gen.c |
---|
33 | gen_static_LDFLAGS = -static |
---|
34 | findlc_LDADD = libstat.la |
---|
35 | spect_LDADD = libstat.la |
---|
36 | stat_LDADD = libstat.la |
---|
37 | |
---|
38 | EXTRA_LTLIBRARIES = libstat.la |
---|
39 | libstat_la_SOURCES = gmpstat.h statlib.c zdiv_round.c |
---|
40 | libstat_la_LIBADD = $(top_builddir)/libgmp.la $(LIBM) |
---|
41 | |
---|
42 | CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) |
---|
43 | |
---|
44 | allprogs: $(EXTRA_PROGRAMS) |
---|
45 | |
---|
46 | $(top_builddir)/tests/libtests.la: |
---|
47 | cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la |
---|
48 | |
---|
49 | manual-test: gen$(EXEEXT) stat$(EXEEXT) |
---|
50 | @(echo -n '16i: '; ./gen -f mpz_urandomb -z 16 1000 \ |
---|
51 | | ./stat -i 0xffff | grep '^[0-9]') |
---|
52 | @(echo -n '32i: '; ./gen -f mpz_urandomb -z 32 1000 \ |
---|
53 | | ./stat -i 0xffffffff | grep '^[0-9]') |
---|
54 | @(echo -n '33i: '; ./gen -f mpz_urandomb -z 33 1000 \ |
---|
55 | | ./stat -i 0x1ffffffff | grep '^[0-9]') |
---|
56 | @(echo -n '64i: '; ./gen -f mpz_urandomb -z 64 1000 \ |
---|
57 | | ./stat -i 0xffffffffffffffff | grep '^[0-9]') |
---|
58 | @(echo -n '128i: '; ./gen -f mpz_urandomb -z 128 1000 \ |
---|
59 | | ./stat -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^[0-9]') |
---|
60 | |
---|
61 | @(echo -n '16f: '; ./gen -f mpf_urandomb -z 16 1000 \ |
---|
62 | | ./stat | grep '^[0-9]') |
---|
63 | @(echo -n '32f: '; ./gen -f mpf_urandomb -z 32 1000 \ |
---|
64 | | ./stat | grep '^[0-9]') |
---|
65 | @(echo -n '33f: '; ./gen -f mpf_urandomb -z 33 1000 \ |
---|
66 | | ./stat | grep '^[0-9]') |
---|
67 | @(echo -n '64f: '; ./gen -f mpf_urandomb -z 64 1000 \ |
---|
68 | | ./stat | grep '^[0-9]') |
---|
69 | @(echo -n '128f: '; ./gen -f mpf_urandomb -z 128 1000 \ |
---|
70 | | ./stat | grep '^[0-9]') |
---|
71 | |
---|
72 | manual-bigtest: gen$(EXEEXT) stat$(EXEEXT) |
---|
73 | @(echo '16i: '; ./gen -f mpz_urandomb -z 16 50000 \ |
---|
74 | | ./stat -2 1000 -i 0xffff | grep '^K[mp]') |
---|
75 | @(echo '32i: '; ./gen -f mpz_urandomb -z 32 50000 \ |
---|
76 | | ./stat -2 1000 -i 0xffffffff | grep '^K[mp]') |
---|
77 | @(echo '33i: '; ./gen -f mpz_urandomb -z 33 50000 \ |
---|
78 | | ./stat -2 1000 -i 0x1ffffffff | grep '^K[mp]') |
---|
79 | @(echo '64i: '; ./gen -f mpz_urandomb -z 64 50000 \ |
---|
80 | | ./stat -2 1000 -i 0xffffffffffffffff | grep '^K[mp]') |
---|
81 | @(echo '128i: '; ./gen -f mpz_urandomb -z 128 50000 \ |
---|
82 | | ./stat -2 1000 -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^K[mp]') |
---|
83 | |
---|
84 | @(echo '16f: '; ./gen -f mpf_urandomb -z 16 50000 \ |
---|
85 | | ./stat -2 1000 | grep '^K[mp]') |
---|
86 | @(echo '32f: '; ./gen -f mpf_urandomb -z 32 50000 \ |
---|
87 | | ./stat -2 1000 | grep '^K[mp]') |
---|
88 | @(echo '33f: '; ./gen -f mpf_urandomb -z 33 50000 \ |
---|
89 | | ./stat -2 1000 | grep '^K[mp]') |
---|
90 | @(echo '64f: '; ./gen -f mpf_urandomb -z 64 50000 \ |
---|
91 | | ./stat -2 1000 | grep '^K[mp]') |
---|
92 | @(echo '128f: '; ./gen -f mpf_urandomb -z 128 50000 \ |
---|
93 | | ./stat -2 1000 | grep '^K[mp]') |
---|