bsd.cpu.mk (103560) | bsd.cpu.mk (103561) |
---|---|
1# $FreeBSD: head/share/mk/bsd.cpu.mk 103560 2002-09-18 20:44:46Z jhb $ | 1# $FreeBSD: head/share/mk/bsd.cpu.mk 103561 2002-09-18 20:48:54Z jhb $ |
2 3# Set default CPU compile flags and baseline CPUTYPE for each arch. The 4# compile flags must support the minimum CPU type for each architecture but 5# may tune support for more advanced processors. 6 7.if !defined(CPUTYPE) || empty(CPUTYPE) 8. if ${MACHINE_ARCH} == "i386" 9_CPUCFLAGS = -mcpu=pentiumpro --- 79 unchanged lines hidden (view full) --- 89_CPUCFLAGS = -mcpu=ev5 90. elif ${CPUTYPE} == "ev45" 91_CPUCFLAGS = -mcpu=ev45 92. elif ${CPUTYPE} == "ev4" 93_CPUCFLAGS = -mcpu=ev4 94. endif 95. endif 96 | 2 3# Set default CPU compile flags and baseline CPUTYPE for each arch. The 4# compile flags must support the minimum CPU type for each architecture but 5# may tune support for more advanced processors. 6 7.if !defined(CPUTYPE) || empty(CPUTYPE) 8. if ${MACHINE_ARCH} == "i386" 9_CPUCFLAGS = -mcpu=pentiumpro --- 79 unchanged lines hidden (view full) --- 89_CPUCFLAGS = -mcpu=ev5 90. elif ${CPUTYPE} == "ev45" 91_CPUCFLAGS = -mcpu=ev45 92. elif ${CPUTYPE} == "ev4" 93_CPUCFLAGS = -mcpu=ev4 94. endif 95. endif 96 |
97# NB: COPTFLAGS is handled in /usr/src/sys/conf/Makefile.<arch> 98 99.if !defined(NO_CPU_CFLAGS) 100CFLAGS += ${_CPUCFLAGS} 101.endif 102 | |
103# Set up the list of CPU features based on the CPU type. This is an 104# unordered list to make it easy for client makefiles to test for the 105# presence of a CPU feature. 106 107.if ${MACHINE_ARCH} == "i386" 108. if ${CPUTYPE} == "athlon-mp" 109MACHINE_CPU = sse k7 3dnow mmx k6 k5 i586 i486 i386 110. elif ${CPUTYPE} == "athlon-xp" --- 46 unchanged lines hidden (view full) --- 157.elif ${MACHINE_ARCH} == "x86-64" || ${MACHINE_ARCH} == "x86_64" 158MACHINE_CPU = x86-64 sse2 sse 159.elif ${MACHINE_ARCH} == "ia64" 160. if ${CPUTYPE} == "itanium" 161MACHINE_CPU = itanium 162. endif 163.endif 164.endif | 97# Set up the list of CPU features based on the CPU type. This is an 98# unordered list to make it easy for client makefiles to test for the 99# presence of a CPU feature. 100 101.if ${MACHINE_ARCH} == "i386" 102. if ${CPUTYPE} == "athlon-mp" 103MACHINE_CPU = sse k7 3dnow mmx k6 k5 i586 i486 i386 104. elif ${CPUTYPE} == "athlon-xp" --- 46 unchanged lines hidden (view full) --- 151.elif ${MACHINE_ARCH} == "x86-64" || ${MACHINE_ARCH} == "x86_64" 152MACHINE_CPU = x86-64 sse2 sse 153.elif ${MACHINE_ARCH} == "ia64" 154. if ${CPUTYPE} == "itanium" 155MACHINE_CPU = itanium 156. endif 157.endif 158.endif |
159 160# NB: COPTFLAGS is handled in /usr/src/sys/conf/Makefile.<arch> 161 162.if !defined(NO_CPU_CFLAGS) 163CFLAGS += ${_CPUCFLAGS} 164.endif |
|