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