freebsd-skq/share/mk/bsd.endian.mk

15 lines
446 B
Makefile
Raw Normal View History

# $FreeBSD$
2006-08-22 08:03:01 +00:00
.if ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "i386" || \
2005-02-25 00:24:03 +00:00
${MACHINE_ARCH} == "ia64" || \
(${MACHINE_ARCH} == "arm" && !defined(TARGET_BIG_ENDIAN)) || \
(${MACHINE_ARCH} == "mips" && !defined(TARGET_BIG_ENDIAN))
TARGET_ENDIANNESS= 1234
.elif ${MACHINE_ARCH} == "powerpc" || \
2005-02-25 00:24:03 +00:00
${MACHINE_ARCH} == "sparc64" || \
${MACHINE_ARCH} == "arm" || \
${MACHINE_ARCH} == "mips"
TARGET_ENDIANNESS= 4321
.endif