Home | History | Annotate | Line # | Download | only in mk
      1  1.24       nat #	$NetBSD: bsd.endian.mk,v 1.24 2025/10/20 14:31:40 nat Exp $
      2   1.4     lukem 
      3   1.6     soren .if !defined(_BSD_ENDIAN_MK_)
      4   1.6     soren _BSD_ENDIAN_MK_=1
      5   1.1    itojun 
      6   1.1    itojun .include <bsd.init.mk>
      7   1.1    itojun 
      8  1.23  jakllsch .if (!empty(MACHINE_ARCH:Maarch64*) && empty(MACHINE_ARCH:Maarch64eb)) || \
      9  1.20      matt     ${MACHINE_ARCH} == "alpha" || \
     10   1.6     soren     ${MACHINE_ARCH} == "arm" || \
     11  1.19      matt     (!empty(MACHINE_ARCH:Mearm*) && empty(MACHINE_ARCH:Mearm*eb)) || \
     12   1.6     soren     ${MACHINE_ARCH} == "i386" || \
     13  1.13     skrll     ${MACHINE_ARCH} == "ia64" || \
     14  1.12      matt     ${MACHINE_ARCH} == "vax" || \
     15  1.22      matt     ${MACHINE_ARCH} == "riscv32" || \
     16  1.22      matt     ${MACHINE_ARCH} == "riscv64" || \
     17  1.12      matt     ${MACHINE_ARCH} == "x86_64" || \
     18  1.12      matt     ${MACHINE_ARCH:C/^.*el$/el/} == "el"
     19   1.9     soren TARGET_ENDIANNESS=	1234
     20  1.18      matt .elif ${MACHINE_ARCH} == "coldfire" || \
     21  1.18      matt       ${MACHINE_ARCH} == "hppa" || \
     22  1.10        he       ${MACHINE_ARCH} == "m68000" || \
     23   1.6     soren       ${MACHINE_ARCH} == "m68k" || \
     24  1.24       nat       ${MACHINE_ARCH} == "m68ksf" || \
     25  1.21      matt       ${MACHINE_ARCH} == "or1k" || \
     26   1.6     soren       ${MACHINE_ARCH} == "powerpc" || \
     27  1.14       mrg       ${MACHINE_ARCH} == "powerpc64" || \
     28   1.6     soren       ${MACHINE_ARCH} == "sparc" || \
     29  1.12      matt       ${MACHINE_ARCH} == "sparc64" || \
     30  1.12      matt       ${MACHINE_ARCH:C/^.*eb$/eb/} == "eb"
     31   1.9     soren TARGET_ENDIANNESS=	4321
     32   1.1    itojun .endif
     33   1.1    itojun 
     34   1.6     soren .endif  # !defined(_BSD_ENDIAN_MK_)
     35