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

14 lines
376 B
Makefile
Raw Normal View History

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