2002-04-06 23:16:27 +00:00
|
|
|
# $FreeBSD$
|
2002-04-06 23:18:01 +00:00
|
|
|
|
|
|
|
TARGET_ARCH?= ${MACHINE_ARCH}
|
|
|
|
|
|
|
|
.if ${TARGET_ARCH} == "alpha"
|
|
|
|
GCC_CPU= alpha
|
|
|
|
.elif ${TARGET_ARCH} == "arm"
|
|
|
|
GCC_CPU= arm
|
2003-04-26 20:04:38 +00:00
|
|
|
.elif ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
|
2002-04-06 23:18:01 +00:00
|
|
|
GCC_CPU= i386
|
2002-05-10 17:23:04 +00:00
|
|
|
.elif ${TARGET_ARCH} == "ia64"
|
|
|
|
GCC_CPU= ia64
|
2002-04-06 23:18:01 +00:00
|
|
|
.elif ${TARGET_ARCH} == "powerpc"
|
|
|
|
GCC_CPU= rs6000
|
|
|
|
.elif ${TARGET_ARCH} == "sparc64"
|
|
|
|
GCC_CPU= sparc
|
|
|
|
TARGET_CPU_DEFAULT= TARGET_CPU_ultrasparc
|
2002-11-06 07:00:59 +00:00
|
|
|
CFLAGS+= -DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT}
|
2002-04-06 23:18:01 +00:00
|
|
|
.endif
|