2002-04-06 23:16:27 +00:00
|
|
|
# $FreeBSD$
|
2002-04-06 23:18:01 +00:00
|
|
|
|
2010-11-10 06:39:49 +00:00
|
|
|
# These assignments duplicate much of the functionality of
|
|
|
|
# MACHINE_CPUARCH, but there's no easy way to export make functions...
|
2002-04-06 23:18:01 +00:00
|
|
|
|
2010-11-10 06:39:49 +00:00
|
|
|
.if defined(TARGET_ARCH)
|
2012-08-15 03:21:56 +00:00
|
|
|
TARGET_CPUARCH=${TARGET_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb)?/arm/:C/powerpc64/powerpc/}
|
2008-08-31 23:38:28 +00:00
|
|
|
.else
|
2010-11-10 06:39:49 +00:00
|
|
|
TARGET_CPUARCH=${MACHINE_CPUARCH}
|
2008-08-31 23:38:28 +00:00
|
|
|
.endif
|
2010-11-10 06:39:49 +00:00
|
|
|
TARGET_ARCH?= ${MACHINE_ARCH}
|
|
|
|
GCC_CPU=${TARGET_CPUARCH:C/amd64/i386/:C/powerpc/rs6000/:C/sparc64/sparc/}
|
2008-08-31 23:38:28 +00:00
|
|
|
|
|
|
|
.if ${TARGET_ARCH} == "ia64"
|
|
|
|
TARGET_CPU_DEFAULT= MASK_GNU_AS|MASK_GNU_LD
|
|
|
|
.endif
|
|
|
|
.if ${TARGET_ARCH} == "sparc64"
|
2002-04-06 23:18:01 +00:00
|
|
|
TARGET_CPU_DEFAULT= TARGET_CPU_ultrasparc
|
|
|
|
.endif
|
2012-08-15 03:21:56 +00:00
|
|
|
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb" || \
|
2012-03-29 02:54:35 +00:00
|
|
|
(${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips*el} == "")
|
2010-11-10 06:39:49 +00:00
|
|
|
TARGET_BIG_ENDIAN=t
|
|
|
|
.endif
|
2010-07-10 02:29:22 +00:00
|
|
|
.if ${TARGET_ARCH} == "powerpc64"
|
|
|
|
TARGET_CPU_DEFAULT= \"powerpc64\"
|
|
|
|
.endif
|