summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-03 16:26:03 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-03 16:26:03 +0000
commit7554456b04e9591e49a6a99e4ea96e5843043c34 (patch)
treeed4fcac0b10a470747ba2393e9bc2dcc758c05ac /Makefile
parentc173e6aa05d23a68476d8b838d76cbf409887123 (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--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4934ff53989..65d592d44c1 100644
--- a/Makefile
+++ b/Makefile
@@ -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#' \