xref: /freebsd/share/mk/bsd.endian.mk (revision 9336e0699bda8a301cd2bfa37106b6ec5e32012e)
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