xref: /freebsd/share/mk/bsd.endian.mk (revision 98e0ffaefb0f241cda3a72395d3be04192ae0d47)
1# $FreeBSD$
2
3.if ${MACHINE_ARCH} == "aarch64" || \
4    ${MACHINE_ARCH} == "amd64" || \
5    ${MACHINE_ARCH} == "i386" || \
6    (${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} == "") || \
7    ${MACHINE_ARCH:Mmips*el} != ""
8TARGET_ENDIANNESS= 1234
9.elif ${MACHINE_ARCH} == "powerpc" || \
10    ${MACHINE_ARCH} == "powerpc64" || \
11    ${MACHINE_ARCH} == "sparc64" || \
12    (${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} != "") || \
13    ${MACHINE_ARCH:Mmips*} != ""
14TARGET_ENDIANNESS= 4321
15.endif
16