xref: /freebsd/share/mk/bsd.endian.mk (revision 7aa383846770374466b1dcb2cefd71bde9acf463)
1# $FreeBSD$
2
3.if ${MACHINE_ARCH} == "amd64" || \
4    ${MACHINE_ARCH} == "i386" || \
5    ${MACHINE_ARCH} == "ia64" || \
6    (${MACHINE_ARCH} == "arm" && !defined(TARGET_BIG_ENDIAN)) || \
7    (${MACHINE_ARCH} == "mips" && !defined(TARGET_BIG_ENDIAN))
8TARGET_ENDIANNESS= 1234
9.elif ${MACHINE_ARCH} == "powerpc" || \
10    ${MACHINE_ARCH} == "powerpc64" || \
11    ${MACHINE_ARCH} == "sparc64" || \
12    ${MACHINE_ARCH} == "arm" || \
13    ${MACHINE_ARCH} == "mips"
14TARGET_ENDIANNESS= 4321
15.endif
16