summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-07-27 22:15:42 +0000
committerjhb <jhb@FreeBSD.org>2002-07-27 22:15:42 +0000
commitae7c937aa17799b0d6ae3750fc3fed0d0cc99998 (patch)
tree5f438f1fec96f0665a003f4862a453257273ac15 /share/mk
parentaf1f8a2d2a282b542e5a8b338a7a578ba3c754df (diff)
downloadFreeBSD-src-ae7c937aa17799b0d6ae3750fc3fed0d0cc99998.zip
FreeBSD-src-ae7c937aa17799b0d6ae3750fc3fed0d0cc99998.tar.gz
- Fixup whitespace after previous commit.
- To minimize whitespace changes, remove a test that didn't define _CPUCFLAGS if both NO_CPU_CFLAGS and NO_CPU_COPTFLAGS were defined since it is redundant (we don't use _CPUCFLAGS if those are defined).
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.cpu.mk22
1 files changed, 10 insertions, 12 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index f4eef7a..14be1b4 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -5,33 +5,33 @@
# may tune support for more advanced processors.
.if !defined(CPUTYPE)
-.if ${MACHINE_ARCH} == "i386"
+. if ${MACHINE_ARCH} == "i386"
_CPUCFLAGS = -mcpu=pentiumpro
CPUTYPE = i386
-.elif ${MACHINE_ARCH} == "alpha"
+. elif ${MACHINE_ARCH} == "alpha"
_CPUCFLAGS = -mcpu=ev4 -mtune=ev5
CPUTYPE = ev4
-.elif ${MACHINE_ARCH} == "ia64"
+. elif ${MACHINE_ARCH} == "ia64"
_CPUCFLAGS =
CPUTYPE = itanium
-.elif ${MACHINE_ARCH} == "sparc64"
+. elif ${MACHINE_ARCH} == "sparc64"
_CPUCFLAGS =
CPUTYPE = ultrasparc
-.endif
+. endif
.else
# Handle aliases (not documented in make.conf to avoid user confusion
# between e.g. i586 and pentium)
-.if ${MACHINE_ARCH} == "i386"
-. if ${CPUTYPE} == "pentiumpro"
+. if ${MACHINE_ARCH} == "i386"
+. if ${CPUTYPE} == "pentiumpro"
CPUTYPE = i686
-. elif ${CPUTYPE} == "pentium"
+. elif ${CPUTYPE} == "pentium"
CPUTYPE = i586
-. elif ${CPUTYPE} == "athlon"
+. elif ${CPUTYPE} == "athlon"
CPUTYPE = k7
+. endif
. endif
-.endif
# Logic to set up correct gcc optimization flag. This must be included
# after /etc/make.conf so it can react to the local value of CPUTYPE
@@ -41,7 +41,6 @@ CPUTYPE = k7
# http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html
# http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html
-.if !defined(NO_CPU_CFLAGS) || !defined(NO_CPU_COPTFLAGS)
. if ${MACHINE_ARCH} == "i386"
. if ${CPUTYPE} == "k7"
. if defined(BOOTSTRAPPING)
@@ -86,7 +85,6 @@ _CPUCFLAGS = -mcpu=ev4
. endif
. endif
.endif
-.endif
# NB: COPTFLAGS is handled in /usr/src/sys/conf/Makefile.<arch>
OpenPOWER on IntegriCloud