summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1998-02-15 20:56:40 +0000
committerniklas <niklas@openbsd.org>1998-02-15 20:56:40 +0000
commit47c1ceabfc3790a1b056303ab5f4dbb9d15b264e (patch)
treeb8a0df8d7b6d02cf63ee72aafd8fff00297fbaf1
parentMerge of NetBSD changes + $OpenBSD$ tags (diff)
downloadwireguard-openbsd-47c1ceabfc3790a1b056303ab5f4dbb9d15b264e.tar.xz
wireguard-openbsd-47c1ceabfc3790a1b056303ab5f4dbb9d15b264e.zip
A new rule cross-gas for building an a.out cross assembler, i.e. *not* from
the new binutils, but from the old gnu/usr.bin/gas sources. Not yet called from cross-tools for any architectures.
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 96d13fe694e..c067de0fc78 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.23 1997/12/09 19:45:29 niklas Exp $
+# $OpenBSD: Makefile,v 1.24 1998/02/15 20:56:40 niklas Exp $
#
# For more information on building in tricky environments, please see
@@ -118,6 +118,20 @@ cross-binutils:
${.CURDIR}/usr.bin/lorder/lorder.sh.gnm \
${CROSSDIR}/usr/bin/`cat ${CROSSDIR}/TARGET_CANON`-lorder
+cross-gas:
+ -mkdir -p ${CROSSDIR}/usr/obj
+ -mkdir -p ${CROSSDIR}/usr/bin
+ (cd gnu/usr.bin/gas; \
+ BSDOBJDIR=${CROSSDIR}/usr/obj \
+ BSDSRCDIR=${.CURDIR} MAKEOBJDIR=obj.${MACHINE}.${TARGET} \
+ ${MAKE} obj)
+ (cd gnu/usr.bin/gas; \
+ TARGET_MACHINE_ARCH=${TARGET} MAKEOBJDIR=obj.${MACHINE}.${TARGET} \
+ ${MAKE})
+ (cd gnu/usr.bin/gas; \
+ DESTDIR=${CROSSDIR} MAKEOBJDIR=obj.${MACHINE}.${TARGET} \
+ ${MAKE} NOMAN= install)
+
cross-gcc:
-mkdir -p ${CROSSDIR}/usr/obj
(cd gnu/usr.bin/gcc; \