xref: /freebsd/share/mk/bsd.endian.mk (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1# $FreeBSD$
2
3.if ${MACHINE_CPUARCH} == "aarch64" || \
4    ${MACHINE_ARCH} == "amd64" || \
5    ${MACHINE_ARCH} == "i386" || \
6    (${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} == "") || \
7    ${MACHINE_ARCH} == "powerpc64le" || \
8    ${MACHINE_CPUARCH} == "riscv" || \
9    ${MACHINE_ARCH:Mmips*el*} != ""
10TARGET_ENDIANNESS= 1234
11CAP_MKDB_ENDIAN= -l
12LOCALEDEF_ENDIAN= -l
13.elif ${MACHINE_ARCH} == "powerpc" || \
14    ${MACHINE_ARCH} == "powerpc64" || \
15    ${MACHINE_ARCH} == "powerpcspe" || \
16    (${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} != "") || \
17    ${MACHINE_ARCH:Mmips*} != ""
18TARGET_ENDIANNESS= 4321
19CAP_MKDB_ENDIAN= -b
20LOCALEDEF_ENDIAN= -b
21.endif
22