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