diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-03 16:26:03 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-03 16:26:03 +0000 |
commit | 7554456b04e9591e49a6a99e4ea96e5843043c34 (patch) | |
tree | ed4fcac0b10a470747ba2393e9bc2dcc758c05ac /Makefile | |
parent | c173e6aa05d23a68476d8b838d76cbf409887123 (diff) |
new target: cross-env that prints all environment variables that
need to be set for cross building:
cd /usr/src/sbin/init
make `cd /usr/src ; make TARGET=sparc64 cross-env`
Also, xcpp was wrong, cccp is wrong, cpp is probably better.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.74 2001/09/01 16:03:18 drahn Exp $ +# $OpenBSD: Makefile,v 1.75 2001/09/03 16:26:02 art Exp $ # # For more information on building in tricky environments, please see @@ -119,6 +119,9 @@ CROSSENV+= CPPFLAGS=-D__arch64__ CPPFLAGS=-D__arch64__ .endif +cross-env: + @echo ${CROSSENV} DESTDIR=${CROSSDIR} + cross-helpers: @-mkdir -p ${CROSSDIR} echo _MACHINE_ARCH | \ @@ -297,7 +300,7 @@ cross-gcc: cross-dirs ln -sf ${CROSSDIR}/usr/bin/`cat ${CROSSDIR}/TARGET_CANON`-gcc \ ${CROSSDIR}/usr/bin/cc ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - ${CROSSDIR}/usr/obj/gnu/egcs/gcc/cccp \ + ${CROSSDIR}/usr/obj/gnu/egcs/gcc/cpp \ ${CROSSDIR}/usr/libexec/cpp sed -e 's#/usr/libexec/cpp#${CROSSDIR}/usr/libexec/cpp#' \ -e 's#/usr/include#${CROSSDIR}/usr/include#' \ |