summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.endian.mk
blob: 9cee45a0fefb1070fcd8ffd64fdf6018d044ca97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $FreeBSD$

.if ${MACHINE_ARCH} == "alpha" || \
    ${MACHINE_ARCH} == "amd64" || \
    ${MACHINE_ARCH} == "i386" || \
    ${MACHINE_ARCH} == "ia64" || \
    (${MACHINE_ARCH} == "arm" && !defined(ARM_BIG_ENDIAN))
TARGET_ENDIANNESS= 1234
.elif ${MACHINE_ARCH} == "powerpc" || \
    ${MACHINE_ARCH} == "sparc64" || \
    ${MACHINE_ARCH} == "arm"
TARGET_ENDIANNESS= 4321
.endif
OpenPOWER on IntegriCloud