summaryrefslogtreecommitdiffstats
path: root/rules/host-liblzo.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2009-01-06 08:20:57 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2009-01-06 08:20:57 +0000
commit4f59417db511e4a80497b1312e5b1224b91b0856 (patch)
tree75194b3418ac813ffd169808eee3010f0517c113 /rules/host-liblzo.make
parentc0828adbd7f722256a79f9bff7af42cefe712f88 (diff)
downloadptxdist-4f59417db511e4a80497b1312e5b1224b91b0856.tar.gz
ptxdist-4f59417db511e4a80497b1312e5b1224b91b0856.tar.xz
* host-liblzo: added; patch by Carsten Schlote
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9423 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-liblzo.make')
-rw-r--r--rules/host-liblzo.make97
1 files changed, 97 insertions, 0 deletions
diff --git a/rules/host-liblzo.make b/rules/host-liblzo.make
new file mode 100644
index 000000000..885eb3839
--- /dev/null
+++ b/rules/host-liblzo.make
@@ -0,0 +1,97 @@
+# -*-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_LIBLZO) += host-liblzo
+
+#
+# Paths and names
+#
+HOST_LIBLZO_DIR = $(HOST_BUILDDIR)/$(LIBLZO)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+host-liblzo_get: $(STATEDIR)/host-liblzo.get
+
+$(STATEDIR)/host-liblzo.get: $(STATEDIR)/liblzo.get
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+host-liblzo_extract: $(STATEDIR)/host-liblzo.extract
+
+$(STATEDIR)/host-liblzo.extract:
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_LIBLZO_DIR))
+ @$(call extract, LIBLZO, $(HOST_BUILDDIR))
+ @$(call patchin, LIBLZO, $(HOST_LIBLZO_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+host-liblzo_prepare: $(STATEDIR)/host-liblzo.prepare
+
+HOST_LIBLZO_PATH := PATH=$(HOST_PATH)
+HOST_LIBLZO_ENV := $(HOST_ENV)
+
+#
+# autoconf
+#
+HOST_LIBLZO_AUTOCONF := $(HOST_AUTOCONF)
+
+$(STATEDIR)/host-liblzo.prepare:
+ @$(call targetinfo, $@)
+ @$(call clean, $(HOST_LIBLZO_DIR)/config.cache)
+ cd $(HOST_LIBLZO_DIR) && \
+ $(HOST_LIBLZO_PATH) $(HOST_LIBLZO_ENV) \
+ ./configure $(HOST_LIBLZO_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+host-liblzo_compile: $(STATEDIR)/host-liblzo.compile
+
+$(STATEDIR)/host-liblzo.compile:
+ @$(call targetinfo, $@)
+ cd $(HOST_LIBLZO_DIR) && $(HOST_LIBLZO_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+host-liblzo_install: $(STATEDIR)/host-liblzo.install
+
+$(STATEDIR)/host-liblzo.install:
+ @$(call targetinfo, $@)
+ @$(call install, HOST_LIBLZO,,h)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-liblzo_clean:
+ rm -rf $(STATEDIR)/host-liblzo.*
+ rm -rf $(HOST_LIBLZO_DIR)
+
+# vim: syntax=make