summaryrefslogtreecommitdiffstats
path: root/rules/host-mpfr.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2007-03-12 13:43:17 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-03-12 13:43:17 +0000
commitfb6eaa0bb253204efc5979c475b75e80710a750c (patch)
tree29bc94621825d1d6cac8d22714ec144356f55159 /rules/host-mpfr.make
parent50e0f8077589e1b4c367b4c6e3ad3ee83ed15e73 (diff)
downloadOSELAS.Toolchain-fb6eaa0bb253204efc5979c475b75e80710a750c.tar.gz
OSELAS.Toolchain-fb6eaa0bb253204efc5979c475b75e80710a750c.tar.xz
* rules/host-{mpfr,gmp}.{make,in}:
added for gcc-4.3 support git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@2168 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'rules/host-mpfr.make')
-rw-r--r--rules/host-mpfr.make106
1 files changed, 106 insertions, 0 deletions
diff --git a/rules/host-mpfr.make b/rules/host-mpfr.make
new file mode 100644
index 0000000..7a35e6e
--- /dev/null
+++ b/rules/host-mpfr.make
@@ -0,0 +1,106 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2007 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_MPFR) += host-mpfr
+
+#
+# Paths and names
+#
+HOST_MPFR_VERSION := 2.2.1
+HOST_MPFR := mpfr-$(HOST_MPFR_VERSION)
+HOST_MPFR_SUFFIX := tar.bz2
+HOST_MPFR_URL := http://www.mpfr.org/mpfr-current/$(HOST_MPFR).$(HOST_MPFR_SUFFIX)
+HOST_MPFR_SOURCE := $(SRCDIR)/$(HOST_MPFR).$(HOST_MPFR_SUFFIX)
+HOST_MPFR_DIR := $(HOST_BUILDDIR)/$(HOST_MPFR)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+host-mpfr_get: $(STATEDIR)/host-mpfr.get
+
+$(STATEDIR)/host-mpfr.get: $(host-mpfr_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(HOST_MPFR_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, HOST_MPFR)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+host-mpfr_extract: $(STATEDIR)/host-mpfr.extract
+
+$(STATEDIR)/host-mpfr.extract: $(host-mpfr_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_MPFR_DIR))
+ @$(call extract, HOST_MPFR, $(HOST_BUILDDIR))
+ @$(call patchin, HOST_MPFR, $(HOST_MPFR_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+host-mpfr_prepare: $(STATEDIR)/host-mpfr.prepare
+
+HOST_MPFR_PATH := PATH=$(HOST_PATH)
+HOST_MPFR_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_MPFR_AUTOCONF := $(HOST_AUTOCONF)
+
+$(STATEDIR)/host-mpfr.prepare: $(host-mpfr_prepare_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_MPFR_DIR)/config.cache)
+ cd $(HOST_MPFR_DIR) && \
+ $(HOST_MPFR_PATH) $(HOST_MPFR_ENV) \
+ ./configure $(HOST_MPFR_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+host-mpfr_compile: $(STATEDIR)/host-mpfr.compile
+
+$(STATEDIR)/host-mpfr.compile: $(host-mpfr_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(HOST_MPFR_DIR) && $(HOST_MPFR_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+host-mpfr_install: $(STATEDIR)/host-mpfr.install
+
+$(STATEDIR)/host-mpfr.install: $(host-mpfr_install_deps_default)
+ @$(call targetinfo, $@)
+ @$(call install, HOST_MPFR,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-mpfr_clean:
+ rm -rf $(STATEDIR)/host-mpfr.*
+ rm -rf $(HOST_MPFR_DIR)
+
+# vim: syntax=make