Import NetBSD tools and build.sh

This commit finalizes support for cross compilation. The tools
directory are all links to the actual tools and are built on the
host system to build Minix. build.sh is the work horse that takes
care of all environment settings. It's slightly adjusted for Minix.
The /usr/src/Makefile has additional targets needed for cross
compilation.
This commit is contained in:
Thomas Veerman
2012-06-06 14:46:00 +00:00
parent 2ed11343a6
commit c8a0e2f4c6
140 changed files with 26869 additions and 0 deletions

33
tools/Makefile.gnuwrap Normal file
View File

@@ -0,0 +1,33 @@
# $NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $
#
# Wrapper for GNU Makefiles.
.ifndef _WRAPPER_INCLUDED
_WRAPPER_INCLUDED=1
.ifndef _NOWRAPPER
.include "${.CURDIR}/Makefile"
.endif
# Prevent targets in source directories from being rebuilt.
_srcdir:= ${srcdir}
.MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile
# Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree).
.po.gmo .l.c .y.c .y.h .x.1:
@true
# Make sure this file gets re-loaded recursively.
.ifndef _NOWRAPPER
# Some systems have a small ARG_MAX. On such systems, prevent Make
# variables set on the command line from being exported in the
# environment (they will still be set in MAKEOVERRIDES).
BUILD_OSTYPE!= uname -s
.if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD"
__noenvexport= -X
.endif
_GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE}
MAKE:= ${MAKE} ${__noenvexport} -f ${_GNUWRAPPER}
.endif
.endif