summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/conf/Makefile.sparc
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-06-26 02:52:14 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-06-26 02:52:14 +0000
commit0031ea6b5f91323fc2c3a8f0c2ae3c74946773e6 (patch)
tree2daea74844c79d7727d4581145cd37e1b222952f /sys/arch/sparc/conf/Makefile.sparc
parent3f021b1620c879d34c2e888b63e5d6f27a3af706 (diff)
Compile sun4m-only kernels with -mv8.
Diffstat (limited to 'sys/arch/sparc/conf/Makefile.sparc')
-rw-r--r--sys/arch/sparc/conf/Makefile.sparc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc
index fde20997f1b..722c03543a6 100644
--- a/sys/arch/sparc/conf/Makefile.sparc
+++ b/sys/arch/sparc/conf/Makefile.sparc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc,v 1.10 1997/06/25 14:47:11 downsj Exp $
+# $OpenBSD: Makefile.sparc,v 1.11 1997/06/26 02:52:13 downsj Exp $
# $NetBSD: Makefile.sparc,v 1.32.4.1 1996/06/12 20:26:32 pk Exp $
# Makefile for OpenBSD
@@ -42,6 +42,12 @@ CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL
CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wno-uninitialized -Wno-format
+.if ${IDENT:M-DSUN*} == ${IDENT:M-DSUN4M}
+CMACHFLAGS= -mv8
+.else
+CMACHFLAGS=
+.endif
+
CFLAGS= ${DEBUG} -O2 ${CDIAGFLAGS} ${CMACHFLAGS} ${COPTS}
# add `-mno-fpu' to work around gcc (last noticed in v2.7.2) bug
CFLAGS+= -mno-fpu