summaryrefslogtreecommitdiff
path: root/sys/arch/vax/stand
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2013-11-15 03:10:34 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2013-11-15 03:10:34 +0000
commit80011e638a8bbb60eb459e6a794a4cd538b05883 (patch)
tree8899a7534c5709a863a4669c1952c8301212e0ee /sys/arch/vax/stand
parent109253c52932053dcc07e2234599cd5788862e34 (diff)
Make vax stand build cross-build friendly.
OK miod@
Diffstat (limited to 'sys/arch/vax/stand')
-rw-r--r--sys/arch/vax/stand/Makefile.inc4
-rw-r--r--sys/arch/vax/stand/xxboot/Makefile9
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/vax/stand/Makefile.inc b/sys/arch/vax/stand/Makefile.inc
index 068de9c7b4d..e2e9b5aee37 100644
--- a/sys/arch/vax/stand/Makefile.inc
+++ b/sys/arch/vax/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.4 2002/12/02 09:00:26 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2013/11/15 03:10:33 uebayasi Exp $
# $NetBSD: Makefile.inc,v 1.6 2002/02/24 01:04:23 matt Exp $
RELOC=0x39F000
@@ -10,4 +10,4 @@ CPPFLAGS+=-DRELOC=${RELOC}
# Private handling of assembler files.
.s.o:
- ${CC} -x assembler-with-cpp ${CPPFLAGS} -E ${.IMPSRC} | as -o ${.TARGET}
+ ${CC} -x assembler-with-cpp ${CPPFLAGS} -E ${.IMPSRC} | ${AS} -o ${.TARGET}
diff --git a/sys/arch/vax/stand/xxboot/Makefile b/sys/arch/vax/stand/xxboot/Makefile
index 068d45e03c4..647b065d1e2 100644
--- a/sys/arch/vax/stand/xxboot/Makefile
+++ b/sys/arch/vax/stand/xxboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.13 2013/10/15 22:49:03 deraadt Exp $
+# $OpenBSD: Makefile,v 1.14 2013/11/15 03:10:33 uebayasi Exp $
# $NetBSD: Makefile,v 1.12 2002/02/24 01:04:25 matt Exp $
S= ${.CURDIR}/../../../../
@@ -30,6 +30,9 @@ SA_AS= library
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
+STRIP?=strip
+OBJCOPY?=objcopy
+
.if ${MACHINE} == "vax"
.PHONY: machine-links
beforedepend: machine-links
@@ -48,9 +51,9 @@ assym.h: $S/kern/genassym.sh Makefile ${.CURDIR}/genassym.cf
${PROG}: ${OBJS} ${LIBSA}
${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA}
- /usr/bin/strip ${PROG}.out
+ ${STRIP} ${PROG}.out
/usr/bin/size ${PROG}.out
- /usr/bin/objcopy -O binary ${PROG}.out ${PROG}
+ ${OBJCOPY} -O binary ${PROG}.out ${PROG}
clean::
rm -f a.out [Ee]rrs mklog *.core ${PROG} ${OBJS} ${LOBJS} \