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

.if ${MACHINE_ARCH} == "amd64" || \
    ${MACHINE_ARCH} == "i386" || \
    ${MACHINE_ARCH} == "ia64" || \
    ${MACHINE_ARCH} == "arm"  || \
    ${MACHINE_ARCH} == "armv6"  || \
    ${MACHINE_ARCH:Mmips*el} != ""
TARGET_ENDIANNESS= 1234
.elif ${MACHINE_ARCH} == "powerpc" || \
    ${MACHINE_ARCH} == "powerpc64" || \
    ${MACHINE_ARCH} == "sparc64" || \
    ${MACHINE_ARCH} == "armeb" || \
    ${MACHINE_ARCH} == "armv6eb" || \
    ${MACHINE_ARCH:Mmips*} != ""
TARGET_ENDIANNESS= 4321
.endif
OpenPOWER on IntegriCloud