version 1.84, 2002/05/15 15:55:01 |
version 1.86, 2002/08/11 22:48:05 |
|
|
# For more information on building in tricky environments, please see |
# For more information on building in tricky environments, please see |
# the list of possible environment variables described in |
# the list of possible environment variables described in |
# /usr/share/mk/bsd.README. |
# /usr/share/mk/bsd.README. |
# |
# |
# Building recommendations: |
# Building recommendations: |
# |
# |
# 1) If at all possible, put this source tree in /usr/src. If /usr/src |
# 1) If at all possible, put this source tree in /usr/src. If /usr/src |
# must be a symbolic link, setenv BSDSRCDIR to point to the real location. |
# must be a symbolic link, setenv BSDSRCDIR to point to the real location. |
# |
# |
|
|
# "make build" target supplied here. Good luck. |
# "make build" target supplied here. Good luck. |
# |
# |
# 5) If you want to setup a cross-build environment, there is a "cross-tools" |
# 5) If you want to setup a cross-build environment, there is a "cross-tools" |
# target available which upon completion of "make TARGET=<target> cross-tools" |
# target available which upon completion of "make TARGET=<target> cross-tools" |
# (where <target> is one of the names in the /sys/arch directory) will produce |
# (where <target> is one of the names in the /sys/arch directory) will produce |
# a set of compilation tools along with the includes in the /usr/cross/<target> |
# a set of compilation tools along with the includes in the /usr/cross/<target> |
# directory. |
# directory. |
|
|
${MAKE} DESTDIR=${CROSSDIR} includes |
${MAKE} DESTDIR=${CROSSDIR} includes |
|
|
.if ${TARGET} == "macppc" || ${TARGET} == "alpha" || ${TARGET} == "hppa" || \ |
.if ${TARGET} == "macppc" || ${TARGET} == "alpha" || ${TARGET} == "hppa" || \ |
${TARGET} == "sparc64"|| ${TARGET} == "mvmeppc" |
${TARGET} == "sparc64"|| ${TARGET} == "mvmeppc" || ${TARGET} == "sparc" |
cross-binutils: cross-binutils-new cross-binutils-links |
cross-binutils: cross-binutils-new cross-binutils-links |
.else |
.else |
cross-binutils: cross-binutils-old cross-binutils-links |
cross-binutils: cross-binutils-old cross-binutils-links |
.endif |
.endif |
|
|
cross-binutils-new: cross-dirs |
cross-binutils-new: cross-dirs |
export BSDSRCDIR=`pwd`; \ |
export BSDSRCDIR=`pwd`; \ |
(cd ${.CURDIR}/gnu/usr.bin/binutils; \ |
(cd ${.CURDIR}/gnu/usr.bin/binutils; \ |
BSDOBJDIR=${CROSSDIR}/usr/obj \ |
BSDOBJDIR=${CROSSDIR}/usr/obj \ |