summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/stand/Makefile.inc
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-09-14 12:54:30 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-09-14 12:54:30 +0000
commitbd7544914aa4c8ec96723bbdd0a5885a7f88993f (patch)
tree0303481779e4d71d485dbc49c87b6431c57e672c /sys/arch/hp300/stand/Makefile.inc
parenta7162cd6abe395805da2514f42bca4d6e1ebe610 (diff)
Make and install a raw version of uboot, too.
Diffstat (limited to 'sys/arch/hp300/stand/Makefile.inc')
-rw-r--r--sys/arch/hp300/stand/Makefile.inc19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/arch/hp300/stand/Makefile.inc b/sys/arch/hp300/stand/Makefile.inc
index 4cb194fad37..e5096129e11 100644
--- a/sys/arch/hp300/stand/Makefile.inc
+++ b/sys/arch/hp300/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.1 1997/07/14 08:13:25 downsj Exp $
+# $OpenBSD: Makefile.inc,v 1.2 1997/09/14 12:54:20 downsj Exp $
# $NetBSD: Makefile.inc,v 1.7 1997/05/12 07:43:18 thorpej Exp $
BINDIR= /usr/mdec
@@ -80,6 +80,23 @@ MKBOOTOBJDIR= ${MKBOOTDIR}
MKBOOT_PROG= ${MKBOOTOBJDIR}/mkboot
+### Figure out what to use for stripboot
+STRIPBOOTDIR= ${.CURDIR}/../stripboot
+
+.if exists(${STRIPBOOTDIR}/obj.${MACHINE})
+STRIPBOOTOBJDIR= ${STRIPBOOTDIR}/obj.${MACHINE}
+.elif exists(${STRIPBOOTDIR}/obj)
+STRIPBOOTOBJDIR= ${STRIPBOOTDIR}/obj
+.else
+STRIPBOOTOBJDIR= ${STRIPBOOTDIR}
+.endif
+
+STRIPBOOT_PROG= ${STRIPBOOTOBJDIR}/stripboot
+
# Make sure ${MKBOOT_PROG} is always available
${MKBOOT_PROG}:
@cd ${MKBOOTDIR} && make depend && make
+
+# Make sure ${STRIPBOOT_PROG} is always available
+${STRIPBOOT_PROG}:
+ @cd ${STRIPBOOTDIR} && make depend && make