summaryrefslogtreecommitdiffstats
path: root/rules/cross-libtool.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2008-06-06 08:25:47 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2008-06-06 08:25:47 +0000
commit63b86d4f37f1321d0e17b23cd17fc03fbd5e0fe5 (patch)
tree3c710858b6467556f0faf48ffa6c5720344f4eac /rules/cross-libtool.make
parentfac61580010f4e240c32b21ebe7a649f547d36be (diff)
downloadptxdist-63b86d4f37f1321d0e17b23cd17fc03fbd5e0fe5.tar.gz
ptxdist-63b86d4f37f1321d0e17b23cd17fc03fbd5e0fe5.tar.xz
* add cross-libtool
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8446 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/cross-libtool.make')
-rw-r--r--rules/cross-libtool.make100
1 files changed, 100 insertions, 0 deletions
diff --git a/rules/cross-libtool.make b/rules/cross-libtool.make
new file mode 100644
index 000000000..8f831c85e
--- /dev/null
+++ b/rules/cross-libtool.make
@@ -0,0 +1,100 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2008 by Michael Olbrich <m.olbrich@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
+#
+CROSS_PACKAGES-$(PTXCONF_CROSS_LIBTOOL) += cross-libtool
+
+#
+# Paths and names
+#
+CROSS_LIBTOOL_VERSION := 1.5.16
+CROSS_LIBTOOL := libtool-$(CROSS_LIBTOOL_VERSION)
+CROSS_LIBTOOL_SUFFIX := tar.gz
+CROSS_LIBTOOL_URL := ftp://ftp.gnu.org/gnu/libtool/$(CROSS_LIBTOOL).$(CROSS_LIBTOOL_SUFFIX)
+CROSS_LIBTOOL_SOURCE := $(SRCDIR)/$(CROSS_LIBTOOL).$(CROSS_LIBTOOL_SUFFIX)
+CROSS_LIBTOOL_DIR := $(CROSS_BUILDDIR)/$(CROSS_LIBTOOL)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cross-libtool.get:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(CROSS_LIBTOOL_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, CROSS_LIBTOOL)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cross-libtool.extract:
+ @$(call targetinfo, $@)
+ @$(call clean, $(CROSS_LIBTOOL_DIR))
+ @$(call extract, CROSS_LIBTOOL, $(CROSS_BUILDDIR))
+ @$(call patchin, CROSS_LIBTOOL, $(CROSS_LIBTOOL_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+CROSS_LIBTOOL_PATH := PATH=$(CROSS_PATH)
+CROSS_LIBTOOL_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+CROSS_LIBTOOL_AUTOCONF := \
+ $(HOST_CROSS_AUTOCONF) \
+ --prefix=$(PTXCONF_SYSROOT_CROSS) \
+ --host=$(PTXCONF_GNU_TARGET) \
+ --build=$(GNU_HOST)
+
+$(STATEDIR)/cross-libtool.prepare:
+ @$(call targetinfo, $@)
+ @$(call clean, $(CROSS_LIBTOOL_DIR)/config.cache)
+ cd $(CROSS_LIBTOOL_DIR) && \
+ $(CROSS_LIBTOOL_PATH) $(CROSS_LIBTOOL_ENV) \
+ ./configure $(CROSS_LIBTOOL_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cross-libtool.compile:
+ @$(call targetinfo, $@)
+ cd $(CROSS_LIBTOOL_DIR) && $(CROSS_LIBTOOL_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cross-libtool.install:
+ @$(call targetinfo, $@)
+ @$(call install, CROSS_LIBTOOL,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+cross-libtool_clean:
+ rm -rf $(STATEDIR)/cross-libtool.*
+ rm -rf $(CROSS_LIBTOOL_DIR)
+
+# vim: syntax=make