diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2003-10-31 11:57:46 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2003-10-31 11:57:46 +0000 |
commit | 6545e727bca0645ec294729a50b1457c0b8a5c26 (patch) | |
tree | 9497e66fd009f4db82bd88e84d268253c50cab5c /rules/gawk.make | |
parent | a12e476b2e3bde8e270f2b15e594b0dcad60dded (diff) | |
download | ptxdist-6545e727bca0645ec294729a50b1457c0b8a5c26.tar.gz ptxdist-6545e727bca0645ec294729a50b1457c0b8a5c26.tar.xz |
* gawk support
Milan Bobde <mbobde }at{ ixiacom }dot{ com>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@719 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/gawk.make')
-rw-r--r-- | rules/gawk.make | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/rules/gawk.make b/rules/gawk.make new file mode 100644 index 000000000..c2443f067 --- /dev/null +++ b/rules/gawk.make @@ -0,0 +1,136 @@ +# -*-makefile-*- +# $Id: gawk.make,v 1.1 2003/10/31 11:57:46 mkl Exp $ +# +# Copyright (C) 2003 by Ixia Corporation, By Milan Bobde +# +# 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 +# +ifdef PTXCONF_GAWK +PACKAGES += gawk +endif + +# +# Paths and names +# +GAWK_VERSION = 3.0.3 +GAWK = gawk-$(GAWK_VERSION) +GAWK_SUFFIX = tar.gz +GAWK_URL = http://ftp.gnu.org/gnu/gawk/$(GAWK).$(GAWK_SUFFIX) +GAWK_SOURCE = $(SRCDIR)/$(GAWK).$(GAWK_SUFFIX) +GAWK_DIR = $(BUILDDIR)/$(GAWK) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +gawk_get: $(STATEDIR)/gawk.get + +gawk_get_deps = $(GAWK_SOURCE) + +$(STATEDIR)/gawk.get: $(gawk_get_deps) + @$(call targetinfo, $@) + touch $@ + +$(GAWK_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(GAWK_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +gawk_extract: $(STATEDIR)/gawk.extract + +gawk_extract_deps = $(STATEDIR)/gawk.get + +$(STATEDIR)/gawk.extract: $(gawk_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(GAWK_DIR)) + @$(call extract, $(GAWK_SOURCE)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +gawk_prepare: $(STATEDIR)/gawk.prepare + +# +# dependencies +# +gawk_prepare_deps = \ + $(STATEDIR)/gawk.extract \ + $(STATEDIR)/virtual-xchain.install + +GAWK_PATH = PATH=$(CROSS_PATH) +GAWK_ENV = $(CROSS_ENV) +#GAWK_ENV += + +# +# autoconf +# +GAWK_AUTOCONF = \ + --build=$(GNU_HOST) \ + --host=$(PTXCONF_GNU_TARGET) \ + --prefix=$(CROSS_LIB_DIR) + +$(STATEDIR)/gawk.prepare: $(gawk_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(GAWK_DIR)/config.cache) + cd $(GAWK_DIR) && \ + $(GAWK_PATH) $(GAWK_ENV) \ + ./configure $(GAWK_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +gawk_compile: $(STATEDIR)/gawk.compile + +gawk_compile_deps = $(STATEDIR)/gawk.prepare + +$(STATEDIR)/gawk.compile: $(gawk_compile_deps) + @$(call targetinfo, $@) + $(GAWK_PATH) make -C $(GAWK_DIR) + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +gawk_install: $(STATEDIR)/gawk.install + +$(STATEDIR)/gawk.install: $(STATEDIR)/gawk.compile + @$(call targetinfo, $@) + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +gawk_targetinstall: $(STATEDIR)/gawk.targetinstall + +gawk_targetinstall_deps = $(STATEDIR)/gawk.compile + +$(STATEDIR)/gawk.targetinstall: $(gawk_targetinstall_deps) + @$(call targetinfo, $@) + $(GAWK_PATH) make -C $(GAWK_DIR) install + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +gawk_clean: + rm -rf $(STATEDIR)/gawk.* + rm -rf $(GAWK_DIR) + +# vim: syntax=make |