summaryrefslogtreecommitdiff
path: root/mmpfr
blob: cfeacfdf4f379e9b82219d26dd979949d1807fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

SYST=`uname -a | awk '{print $1$3}'`

special=

case $SYST in
    SunOS5*)
        dirname=solaris;;
    Linux*)
        special="-DLIBC211"; # for __setfpucw
        dirname=linux;;
    OSF*)
        special="-mfp-rounding-mode=d -mieee-with-inexact";
        dirname=alpha;;
    SunOS4*)
	dirname=sunos;;
	*)
        echo gmp n\'est pas compile pour le systeme $SYST. 
        exit 0;;
esac

GMPDIR=/users/polka/logiciels/gmp/$dirname
ODIR=/users/polka/logiciels/mpfr/C/msb_norm/o.$dirname
export GMPDIR ODIR dirname special
if [ "$1" = "tests" ]
then 
    cd tests; make all
elif [ "$1" = "" ]
then
    make libmpfr.a
else
    make $*
fi