1*0a6a1f1dSLionel Sambuc# $NetBSD: bsd.endian.mk,v 1.22 2014/09/19 17:45:42 matt Exp $ 29152e1c5SLionel Sambuc 39152e1c5SLionel Sambuc.if !defined(_BSD_ENDIAN_MK_) 49152e1c5SLionel Sambuc_BSD_ENDIAN_MK_=1 59152e1c5SLionel Sambuc 69152e1c5SLionel Sambuc.include <bsd.init.mk> 79152e1c5SLionel Sambuc 8*0a6a1f1dSLionel Sambuc.if ${MACHINE_ARCH} == "aarch64" || \ 9*0a6a1f1dSLionel Sambuc ${MACHINE_ARCH} == "alpha" || \ 109152e1c5SLionel Sambuc ${MACHINE_ARCH} == "arm" || \ 1184d9c625SLionel Sambuc (!empty(MACHINE_ARCH:Mearm*) && empty(MACHINE_ARCH:Mearm*eb)) || \ 129152e1c5SLionel Sambuc ${MACHINE_ARCH} == "i386" || \ 139152e1c5SLionel Sambuc ${MACHINE_ARCH} == "ia64" || \ 149152e1c5SLionel Sambuc ${MACHINE_ARCH} == "vax" || \ 15*0a6a1f1dSLionel Sambuc ${MACHINE_ARCH} == "riscv32" || \ 16*0a6a1f1dSLionel Sambuc ${MACHINE_ARCH} == "riscv64" || \ 179152e1c5SLionel Sambuc ${MACHINE_ARCH} == "x86_64" || \ 189152e1c5SLionel Sambuc ${MACHINE_ARCH:C/^.*el$/el/} == "el" 199152e1c5SLionel SambucTARGET_ENDIANNESS= 1234 2084d9c625SLionel Sambuc.elif ${MACHINE_ARCH} == "coldfire" || \ 2184d9c625SLionel Sambuc ${MACHINE_ARCH} == "hppa" || \ 229152e1c5SLionel Sambuc ${MACHINE_ARCH} == "m68000" || \ 239152e1c5SLionel Sambuc ${MACHINE_ARCH} == "m68k" || \ 24*0a6a1f1dSLionel Sambuc ${MACHINE_ARCH} == "or1k" || \ 259152e1c5SLionel Sambuc ${MACHINE_ARCH} == "powerpc" || \ 269152e1c5SLionel Sambuc ${MACHINE_ARCH} == "powerpc64" || \ 279152e1c5SLionel Sambuc ${MACHINE_ARCH} == "sparc" || \ 289152e1c5SLionel Sambuc ${MACHINE_ARCH} == "sparc64" || \ 299152e1c5SLionel Sambuc ${MACHINE_ARCH:C/^.*eb$/eb/} == "eb" 309152e1c5SLionel SambucTARGET_ENDIANNESS= 4321 319152e1c5SLionel Sambuc.endif 329152e1c5SLionel Sambuc 339152e1c5SLionel Sambuc.endif # !defined(_BSD_ENDIAN_MK_) 34