summaryrefslogtreecommitdiff
path: root/core/mk/mpfr.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-18 23:45:27 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-18 23:45:27 +0100
commitef94bcb8905c8c8fefc272dbcb2d5ee0c4efbe35 (patch)
treee8e85268168e09221e23cdbb4639e47109988d04 /core/mk/mpfr.mk
parentfb516edcaeaa02e435316622b2bcc5314b42d529 (diff)
downloadembtoolkit-ef94bcb8905c8c8fefc272dbcb2d5ee0c4efbe35.tar.gz
embtoolkit-ef94bcb8905c8c8fefc272dbcb2d5ee0c4efbe35.tar.bz2
embtoolkit-ef94bcb8905c8c8fefc272dbcb2d5ee0c4efbe35.tar.xz
Move mk/ to core/
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/mk/mpfr.mk')
-rw-r--r--core/mk/mpfr.mk42
1 files changed, 42 insertions, 0 deletions
diff --git a/core/mk/mpfr.mk b/core/mk/mpfr.mk
new file mode 100644
index 0000000..fc242f6
--- /dev/null
+++ b/core/mk/mpfr.mk
@@ -0,0 +1,42 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file mpfr.mk
+# \brief mpfr.mk of Embtoolkit for toolchain
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date May 2009
+################################################################################
+
+MPFR_HOST_NAME := mpfr
+MPFR_HOST_VERSION := $(call embtk_get_pkgversion,mpfr_host)
+MPFR_HOST_SITE := http://www.mpfr.org/mpfr-$(MPFR_HOST_VERSION)
+MPFR_HOST_PACKAGE := mpfr-$(MPFR_HOST_VERSION).tar.bz2
+MPFR_HOST_SRC_DIR := $(embtk_toolsb)/mpfr-$(MPFR_HOST_VERSION)
+MPFR_HOST_BUILD_DIR := $(embtk_toolsb)/mpfr-build
+MPFR_HOST_DIR := $(embtk_htools)/usr/local/mpfr-host
+
+export MPFR_HOST_DIR
+
+MPFR_HOST_CONFIGURE_OPTS := --disable-shared --enable-static
+MPFR_HOST_CONFIGURE_OPTS += --with-gmp=$(GMP_HOST_DIR)
+MPFR_HOST_PREFIX := $(MPFR_HOST_DIR)
+
+define embtk_cleanup_mpfr_host
+ rm -rf $(MPFR_HOST_BUILD_DIR)
+endef