summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/stand/bootblk/Makefile
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-09-06 19:12:35 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-09-06 19:12:35 +0000
commitcc67d9e5cd11f5b8645ecb7f05dc2423eb1c5c70 (patch)
tree57dd751f64dae23722df2b48e03d398aeefdc46a /sys/arch/sparc64/stand/bootblk/Makefile
parent7876f1c58060284e52d7df556230e67ce61da8e5 (diff)
use some make magic (borrowed from macppc) to build {obj/}machine
Diffstat (limited to 'sys/arch/sparc64/stand/bootblk/Makefile')
-rw-r--r--sys/arch/sparc64/stand/bootblk/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/arch/sparc64/stand/bootblk/Makefile b/sys/arch/sparc64/stand/bootblk/Makefile
index f05ca900e0f..cad8419a66c 100644
--- a/sys/arch/sparc64/stand/bootblk/Makefile
+++ b/sys/arch/sparc64/stand/bootblk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2001/09/06 18:36:41 jason Exp $
+# $OpenBSD: Makefile,v 1.5 2001/09/06 19:12:34 jason Exp $
# $NetBSD: Makefile,v 1.1 2000/08/20 14:58:45 mrg Exp $
CURDIR= ${.CURDIR}
@@ -30,18 +30,17 @@ SVR4=-U__SVR4 -U__svr4__ -D__NetBSD__
INCLUDES= -I. -I$S/arch -I$S -nostdinc
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_LKM ${SVR4}
-all: bootblk.text bootblk
+.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir) && !make(obj)
+.BEGIN:
+ @([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
+.endif
-#clean::
-# rm assym.fth.h bootblk.text machine bootblk
+all: bootblk.text bootblk
sparc:
ln -s ${.CURDIR}/../../../sparc/include sparc
-machine:
- ln -s ${.CURDIR}/../../../${MACHINE}/include machine
-
-assym.fth.h: ${.CURDIR}/genassym.sh genfth.cf machine
+assym.fth.h: ${.CURDIR}/genassym.sh genfth.cf
sh ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} \
${CPPFLAGS} ${PROF} <${.CURDIR}/genfth.cf >assym.fth.h.tmp && \
mv -f assym.fth.h.tmp assym.fth.h