diff options
Diffstat (limited to 'share/mk/bsd.endian.mk')
-rw-r--r-- | share/mk/bsd.endian.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/share/mk/bsd.endian.mk b/share/mk/bsd.endian.mk new file mode 100644 index 000000000000..c2b141fcc9f2 --- /dev/null +++ b/share/mk/bsd.endian.mk @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.if ${MACHINE_ARCH} == "amd64" || \ + ${MACHINE_ARCH} == "i386" || \ + ${MACHINE_ARCH} == "ia64" || \ + (${MACHINE_ARCH} == "arm" && !defined(TARGET_BIG_ENDIAN)) || \ + (${MACHINE_ARCH} == "mips" && !defined(TARGET_BIG_ENDIAN)) +TARGET_ENDIANNESS= 1234 +.elif ${MACHINE_ARCH} == "powerpc" || \ + ${MACHINE_ARCH} == "sparc64" || \ + ${MACHINE_ARCH} == "arm" || \ + ${MACHINE_ARCH} == "mips" +TARGET_ENDIANNESS= 4321 +.endif |