xref: /freebsd/share/mk/bsd.endian.mk (revision 55224280e2f20474f83001cbc402b21fba8f1c4b)
1# $FreeBSD$
2
3.if ${MACHINE_CPUARCH} == "aarch64" || \
4    ${MACHINE_ARCH} == "amd64" || \
5    ${MACHINE_ARCH} == "i386" || \
6    ${MACHINE_CPUARCH} == "arm" || \
7    ${MACHINE_ARCH} == "powerpc64le" || \
8    ${MACHINE_CPUARCH} == "riscv"
9TARGET_ENDIANNESS= 1234
10CAP_MKDB_ENDIAN= -l
11LOCALEDEF_ENDIAN= -l
12.elif ${MACHINE_ARCH} == "powerpc" || \
13    ${MACHINE_ARCH} == "powerpc64" || \
14    ${MACHINE_ARCH} == "powerpcspe"
15TARGET_ENDIANNESS= 4321
16CAP_MKDB_ENDIAN= -b
17LOCALEDEF_ENDIAN= -b
18.else
19.error "Don't know the endian of this architecture"
20.endif
21