summaryrefslogtreecommitdiff
path: root/mmpfr
diff options
context:
space:
mode:
Diffstat (limited to 'mmpfr')
-rwxr-xr-xmmpfr34
1 files changed, 34 insertions, 0 deletions
diff --git a/mmpfr b/mmpfr
new file mode 100755
index 000000000..cfeacfdf4
--- /dev/null
+++ b/mmpfr
@@ -0,0 +1,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