1# $FreeBSD: head/share/mk/bsd.cpu.mk 101015 2002-07-31 03:56:03Z jhb $
| 1# $FreeBSD: head/share/mk/bsd.cpu.mk 101232 2002-08-02 18:04:22Z ru $
|
2
| 2
|
3# Allow TARGET_CPUTYPE to override CPUTYPE to handle the cross-build case. 4 5.if defined(TARGET_CPUTYPE) 6CPUTYPE = ${TARGET_CPUTYPE} 7.endif 8
| |
9# Set default CPU compile flags and baseline CPUTYPE for each arch. The 10# compile flags must support the minimum CPU type for each architecture but 11# may tune support for more advanced processors. 12
| 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
|
13.if !defined(CPUTYPE) || ${CPUTYPE} == ""
| 7.if !defined(CPUTYPE) || empty(CPUTYPE)
|
14. if ${MACHINE_ARCH} == "i386" 15_CPUCFLAGS = -mcpu=pentiumpro 16CPUTYPE = i386 17. elif ${MACHINE_ARCH} == "alpha" 18_CPUCFLAGS = -mcpu=ev4 -mtune=ev5 19CPUTYPE = ev4 20. elif ${MACHINE_ARCH} == "ia64" 21_CPUCFLAGS =
--- 124 unchanged lines hidden --- | 8. if ${MACHINE_ARCH} == "i386" 9_CPUCFLAGS = -mcpu=pentiumpro 10CPUTYPE = i386 11. elif ${MACHINE_ARCH} == "alpha" 12_CPUCFLAGS = -mcpu=ev4 -mtune=ev5 13CPUTYPE = ev4 14. elif ${MACHINE_ARCH} == "ia64" 15_CPUCFLAGS =
--- 124 unchanged lines hidden --- |