Module Name: src
Committed By: mrg
Date: Mon Jun 20 05:56:46 UTC 2011
Added Files:
src/tools/gmp: Makefile
src/tools/mpc: Makefile
src/tools/mpfr: Makefile
Log Message:
tools build framework for gmp, mpfr and mpc. from chuq.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tools/gmp/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/mpc/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/mpfr/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/tools/gmp/Makefile
diff -u /dev/null src/tools/gmp/Makefile:1.1
--- /dev/null Mon Jun 20 05:56:46 2011
+++ src/tools/gmp/Makefile Mon Jun 20 05:56:46 2011
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2011/06/20 05:56:46 mrg Exp $
+#
+
+GNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/gmp/dist
+
+CONFIGURE_ARGS+=--disable-shared
+
+.include "${.CURDIR}/../Makefile.gnuhost"
+
+# Don't override CFLAGS and CXXFLAGS, it breaks ABI detection.
+# PATH needs special treating since "make" tries to expand $PATH
+# when variable is used.
+CONFIGURE_ENV:= ${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \
+ PATH="${TOOLDIR:Q}/bin:$$$$PATH"
Index: src/tools/mpc/Makefile
diff -u /dev/null src/tools/mpc/Makefile:1.1
--- /dev/null Mon Jun 20 05:56:46 2011
+++ src/tools/mpc/Makefile Mon Jun 20 05:56:46 2011
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2011/06/20 05:56:46 mrg Exp $
+#
+
+GNUHOSTDIST= ${.CURDIR}/../../external/lgpl2/mpc/dist
+
+CONFIGURE_ARGS+= --with-gmp=${TOOLDIR:Q} \
+ --with-mpfr=${TOOLDIR:Q}
+
+CONFIGURE_ARGS+=--disable-shared
+
+.include "${.CURDIR}/../Makefile.gnuhost"
Index: src/tools/mpfr/Makefile
diff -u /dev/null src/tools/mpfr/Makefile:1.1
--- /dev/null Mon Jun 20 05:56:46 2011
+++ src/tools/mpfr/Makefile Mon Jun 20 05:56:45 2011
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1 2011/06/20 05:56:45 mrg Exp $
+#
+
+GNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/mpfr/dist
+
+CONFIGURE_ARGS+= --with-gmp=${TOOLDIR:Q}
+
+CONFIGURE_ARGS+=--disable-shared
+
+.include "${.CURDIR}/../Makefile.gnuhost"