summaryrefslogtreecommitdiffstats
path: root/rules/host-mpc.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2010-06-11 13:44:10 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-02-22 11:26:04 +0100
commit589ec2cb00adcef0806e7ace4316f7dde2430af7 (patch)
tree3365e500bcf3b64a7e22be697a0fc36263065e2c /rules/host-mpc.make
parentaf485fdddabfd09a7be4fea80c1573d5082cd05f (diff)
downloadOSELAS.Toolchain-589ec2cb00adcef0806e7ace4316f7dde2430af7.tar.gz
OSELAS.Toolchain-589ec2cb00adcef0806e7ace4316f7dde2430af7.tar.xz
[mpc] add support for libmpc
Newer gcc versions need support for libmpc which is added by this patch. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'rules/host-mpc.make')
-rw-r--r--rules/host-mpc.make59
1 files changed, 59 insertions, 0 deletions
diff --git a/rules/host-mpc.make b/rules/host-mpc.make
new file mode 100644
index 0000000..a91ed1c
--- /dev/null
+++ b/rules/host-mpc.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2007-2008 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_MPC) += host-mpc
+
+#
+# Paths and names
+#
+HOST_MPC_VERSION := 0.8.2
+HOST_MPC := mpc-$(HOST_MPC_VERSION)
+HOST_MPC_SUFFIX := tar.gz
+HOST_MPC_URL := http://www.multiprecision.org/mpc/download/$(HOST_MPC).$(HOST_MPC_SUFFIX)
+HOST_MPC_SOURCE := $(SRCDIR)/$(HOST_MPC).$(HOST_MPC_SUFFIX)
+HOST_MPC_DIR := $(HOST_BUILDDIR)/$(HOST_MPC)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(HOST_MPC_SOURCE):
+ @$(call targetinfo)
+ @$(call get, HOST_MPC)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_MPC_PATH := PATH=$(HOST_PATH)
+HOST_MPC_ENV := $(PTX_HOST_ENV)
+HOST_MPC_DEVPKG := NO
+
+#
+# autoconf
+#
+HOST_MPC_AUTOCONF := \
+ $(PTX_HOST_AUTOCONF) \
+ --disable-shared \
+ --enable-static
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#host-mpc_clean:
+# rm -rf $(STATEDIR)/host-mpc.*
+# rm -rf $(HOST_MPC_DIR)
+
+# vim: syntax=make