diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2008-06-04 08:47:37 +0000 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2008-06-04 08:47:37 +0000 |
commit | cf9dd5c24a0cac657a7015018ed7830442fd0acf (patch) | |
tree | 746f3d2d3cefbe0f236af4c7a7eccb9262070197 /rules/host-ncurses.make | |
parent | bd51dc09d27b780bdb2f5ba84b3580a70cfee6b6 (diff) | |
download | ptxdist-cf9dd5c24a0cac657a7015018ed7830442fd0acf.tar.gz ptxdist-cf9dd5c24a0cac657a7015018ed7830442fd0acf.tar.xz |
* ncurses builds host tools with header files that are generated for
the cross toolchain. This fails if e.g. "wint_t" is defined in the
cross toolchain but not the host toolchain.
Solution: Build the host tools in a host package and copy them at
the beginning of the compile stage.
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8290 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/host-ncurses.make')
-rw-r--r-- | rules/host-ncurses.make | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/rules/host-ncurses.make b/rules/host-ncurses.make new file mode 100644 index 000000000..4fbd8ba33 --- /dev/null +++ b/rules/host-ncurses.make @@ -0,0 +1,89 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2008 by +# +# 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_NCURSES) += host-ncurses + +# +# Paths and names +# +HOST_NCURSES_DIR = $(HOST_BUILDDIR)/$(NCURSES) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-ncurses.get: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-ncurses.extract: + @$(call targetinfo) + @$(call clean, $(HOST_NCURSES_DIR)) + @$(call extract, NCURSES, $(HOST_BUILDDIR)) + @$(call patchin, NCURSES, $(HOST_NCURSES_DIR)) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_NCURSES_PATH := PATH=$(HOST_PATH) +HOST_NCURSES_ENV := $(HOST_ENV) + +# +# autoconf +# +HOST_NCURSES_AUTOCONF := $(HOST_AUTOCONF) + +$(STATEDIR)/host-ncurses.prepare: + @$(call targetinfo) + @$(call clean, $(HOST_NCURSES_DIR)/config.cache) + cd $(HOST_NCURSES_DIR) && \ + $(HOST_NCURSES_PATH) $(HOST_NCURSES_ENV) \ + ./configure $(HOST_NCURSES_AUTOCONF) $(SHARED_NCURSES_AUTOCONF) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-ncurses.compile: + @$(call targetinfo) + cd $(HOST_NCURSES_DIR)/include && $(HOST_NCURSES_PATH) \ + $(MAKE) + cd $(HOST_NCURSES_DIR)/ncurses && $(HOST_NCURSES_PATH) \ + $(MAKE) make_keys make_hash + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-ncurses.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +host-ncurses_clean: + rm -rf $(STATEDIR)/host-ncurses.* + rm -rf $(HOST_NCURSES_DIR) + +# vim: syntax=make |