xref: /freebsd/share/mk/bsd.endian.mk (revision cc3f4b99653c34ae64f8a1fddea370abefef680e)
1# $FreeBSD$
2
3.if ${MACHINE_ARCH} == "amd64" || \
4    ${MACHINE_ARCH} == "i386" || \
5    ${MACHINE_ARCH} == "ia64" || \
6    ${MACHINE_ARCH} == "arm"  || \
7    ${MACHINE_ARCH} == "armv6"  || \
8    ${MACHINE_ARCH} == "armv6hf"  || \
9    ${MACHINE_ARCH:Mmips*el} != ""
10TARGET_ENDIANNESS= 1234
11.elif ${MACHINE_ARCH} == "powerpc" || \
12    ${MACHINE_ARCH} == "powerpc64" || \
13    ${MACHINE_ARCH} == "sparc64" || \
14    ${MACHINE_ARCH} == "armeb" || \
15    ${MACHINE_ARCH} == "armv6eb" || \
16    ${MACHINE_ARCH:Mmips*} != ""
17TARGET_ENDIANNESS= 4321
18.endif
19