7 GMP_DIR
= gmp-
$(GMP_VERSION
)
8 MPFR_DIR
= mpfr-
$(MPFR_VERSION
)
9 MPC_DIR
= mpc-
$(MPC_VERSION
)
12 CFGENV
=CFLAGS
='-xO3 -m32' ABI
=32
16 all: gmp-install.tag gmp-clean mpfr-install.tag mpfr-clean mpc-install.tag mpc-clean
19 clean: gmp-clean mpfr-clean mpc-clean
20 rm -rf download
/* *.tag
23 download
/gmp-
$(GMP_VERSION
).
tar.bz2
:
24 wget
-P download ftp
://ftp.gnu.org
/gnu
/gmp
/gmp-
$(GMP_VERSION
).
tar.bz2
26 gmp-unpack.tag
: download
/gmp-
$(GMP_VERSION
).
tar.bz2
27 tar xjf download
/gmp-
$(GMP_VERSION
).
tar.bz2
30 gmp-configure.tag
: gmp-unpack.tag
32 .
/configure
--prefix=$(LOCAL_DIR
) $(CFGENV
)
35 gmp-make.tag
: gmp-configure.tag
39 gmp-install.tag
: gmp-make.tag
40 make
-C
$(GMP_DIR
) install
44 download
/mpfr-
$(MPFR_VERSION
).
tar.bz2
:
45 wget
-P download http
://www.mpfr.org
/mpfr-
$(MPFR_VERSION
)/mpfr-
$(MPFR_VERSION
).
tar.bz2
47 mpfr-unpack.tag
: download
/mpfr-
$(MPFR_VERSION
).
tar.bz2
48 tar xjf download
/mpfr-
$(MPFR_VERSION
).
tar.bz2
51 mpfr-configure.tag
: mpfr-unpack.tag
53 .
/configure
--prefix=$(LOCAL_DIR
) --with-gmp
=$(LOCAL_DIR
) $(CFGENV
)
56 mpfr-make.tag
: mpfr-configure.tag
60 mpfr-install.tag
: mpfr-make.tag
61 make
-C
$(MPFR_DIR
) install
65 download
/mpc-
$(MPC_VERSION
).
tar.gz
:
66 wget
-P download http
://www.multiprecision.org
/downloads
/mpc-
$(MPC_VERSION
).
tar.gz
68 mpc-unpack.tag
: download
/mpc-
$(MPC_VERSION
).
tar.gz
69 tar xzf download
/mpc-
$(MPC_VERSION
).
tar.gz
72 mpc-configure.tag
: mpc-unpack.tag
74 .
/configure
--prefix=$(LOCAL_DIR
) --with-gmp
=$(LOCAL_DIR
) --with-mpfr
=$(LOCAL_DIR
) $(CFGENV
)
77 mpc-make.tag
: mpc-configure.tag
81 mpc-install.tag
: mpc-make.tag
82 make
-C
$(MPC_DIR
) install
88 rm -rf
$(GMP_DIR
) gmp-
*.tag
92 rm -rf
$(MPFR_DIR
) mpfr-
*.tag
96 rm -rf
$(MPC_DIR
) mpc-
*.tag