summaryrefslogtreecommitdiff
path: root/sys/arch/i386/conf/Makefile.i386
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-06-20 15:33:08 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-06-20 15:33:08 +0000
commit7abd80b5fd2acbc30f02e4437b67df2505afd2a6 (patch)
tree9003ef21857988635294cfca77bfe0f3b9f8ed13 /sys/arch/i386/conf/Makefile.i386
parentb697e2567a56cfdcfe22ddbb22c63b1a68fb4024 (diff)
If only one of IX86_CPU is defined, set CMACHFLAGS to the appropriate
-march=ix86. (as it was done for 486).
Diffstat (limited to 'sys/arch/i386/conf/Makefile.i386')
-rw-r--r--sys/arch/i386/conf/Makefile.i38610
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index e6aae9f812d..68b03f709df 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.24 1999/09/17 16:52:05 deraadt Exp $
+# $OpenBSD: Makefile.i386,v 1.25 2000/06/20 15:33:07 art Exp $
# $NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
# Makefile for OpenBSD
@@ -42,8 +42,12 @@ CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Di386
CDIAGFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wno-uninitialized -Wno-format -Wno-main
-.if ${IDENT:M-D*_CPU} == ${IDENT:M-DI486_CPU}
-CMACHFLAGS= -m486
+.if ${IDENT:M-D*_CPU} == ${IDENT:M-DI686_CPU}
+CMACHFLAGS= -march=i686
+.elif ${IDENT:M-D*_CPU} == ${IDENT:M-DI586_CPU}
+CMACHFLAGS= -march=i586
+.elif ${IDENT:M-D*_CPU} == ${IDENT:M-DI486_CPU}
+CMACHFLAGS= -march=i486
.else
CMACHFLAGS=
.endif