diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-16 15:30:17 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-16 15:30:17 +0000 |
commit | 7329881cc11d20106c2333a73ee319a1b59d5e65 (patch) | |
tree | e3bc3b0741d7ea1a7ddace48f6166508a8de12f2 /rules/host-zlib.make | |
parent | eb7322cc2ae8f09edc8bf1bc5955cdfde48224df (diff) | |
download | ptxdist-7329881cc11d20106c2333a73ee319a1b59d5e65.tar.gz ptxdist-7329881cc11d20106c2333a73ee319a1b59d5e65.tar.xz |
moved hosttool-s to host-s
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2962 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-zlib.make')
-rw-r--r-- | rules/host-zlib.make | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/rules/host-zlib.make b/rules/host-zlib.make new file mode 100644 index 000000000..a9b8a1cc5 --- /dev/null +++ b/rules/host-zlib.make @@ -0,0 +1,93 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2002 by Pengutronix e.K., Hildesheim, Germany +# 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. +# + +# +# Paths and names +# +HOSTTOOL_ZLIB_BUILDDIR = $(HOST_BUILDDIR)/$(ZLIB) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +hosttool-zlib_get: $(STATEDIR)/hosttool-zlib.get + +$(STATEDIR)/hosttool-zlib.get: $(STATEDIR)/zlib.get + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +hosttool-zlib_extract: $(STATEDIR)/hosttool-zlib.extract + +$(STATEDIR)/hosttool-zlib.extract: $(STATEDIR)/hosttool-zlib.get + @$(call targetinfo, $@) + @$(call clean, $(HOSTTOOL_ZLIB_BUILDDIR)) + @$(call extract, $(ZLIB_SOURCE), $(HOST_BUILDDIR)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +hosttool-zlib_prepare: $(STATEDIR)/hosttool-zlib.prepare + +HOSTTOOL_ZLIB_AUTOCONF = --shared +HOSTTOOL_ZLIB_AUTOCONF += --prefix=$(PTXCONF_PREFIX) +HOSTTOOL_ZLIB_MAKEVARS = $(HOSTCC_ENV) + +$(STATEDIR)/hosttool-zlib.prepare: $(STATEDIR)/hosttool-zlib.extract + @$(call targetinfo, $@) + cd $(HOSTTOOL_ZLIB_BUILDDIR) && \ + ./configure $(HOSTTOOL_ZLIB_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +hosttool-zlib_compile: $(STATEDIR)/hosttool-zlib.compile + +$(STATEDIR)/hosttool-zlib.compile: $(STATEDIR)/hosttool-zlib.prepare + @$(call targetinfo, $@) + cd $(HOSTTOOL_ZLIB_BUILDDIR) && make $(HOSTTOOL_ZLIB_MAKEVARS) + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +hosttool-zlib_install: $(STATEDIR)/hosttool-zlib.install + +$(STATEDIR)/hosttool-zlib.install: $(STATEDIR)/hosttool-zlib.compile + @$(call targetinfo, $@) + cd $(HOSTTOOL_ZLIB_BUILDDIR) && make $(HOSTTOOL_ZLIB_MAKEVARS) install + touch $@ +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +hosttool-zlib_targetinstall: $(STATEDIR)/hosttool-zlib.targetinstall + +$(STATEDIR)/hosttool-zlib.targetinstall: $(STATEDIR)/hosttool-zlib.install + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +hosttool-zlib_clean: + rm -rf $(STATEDIR)/hosttool-zlib.* + rm -rf $(HOSTTOOL_ZLIB_BUILDDIR) + +# vim: syntax=make |