| @@ -1,24 +1,23 @@ | | | @@ -1,24 +1,23 @@ |
1 | # $NetBSD: bsd.endian.mk,v 1.18 2013/07/18 22:06:09 matt Exp $ | | 1 | # $NetBSD: bsd.endian.mk,v 1.19 2013/08/05 15:33:07 matt Exp $ |
2 | | | 2 | |
3 | .if !defined(_BSD_ENDIAN_MK_) | | 3 | .if !defined(_BSD_ENDIAN_MK_) |
4 | _BSD_ENDIAN_MK_=1 | | 4 | _BSD_ENDIAN_MK_=1 |
5 | | | 5 | |
6 | .include <bsd.init.mk> | | 6 | .include <bsd.init.mk> |
7 | | | 7 | |
8 | .if ${MACHINE_ARCH} == "alpha" || \ | | 8 | .if ${MACHINE_ARCH} == "alpha" || \ |
9 | ${MACHINE_ARCH} == "arm" || \ | | 9 | ${MACHINE_ARCH} == "arm" || \ |
10 | ${MACHINE_ARCH} == "earm" || \ | | 10 | (!empty(MACHINE_ARCH:Mearm*) && empty(MACHINE_ARCH:Mearm*eb)) || \ |
11 | ${MACHINE_ARCH} == "earmhf" || \ | | | |
12 | ${MACHINE_ARCH} == "i386" || \ | | 11 | ${MACHINE_ARCH} == "i386" || \ |
13 | ${MACHINE_ARCH} == "ia64" || \ | | 12 | ${MACHINE_ARCH} == "ia64" || \ |
14 | ${MACHINE_ARCH} == "vax" || \ | | 13 | ${MACHINE_ARCH} == "vax" || \ |
15 | ${MACHINE_ARCH} == "x86_64" || \ | | 14 | ${MACHINE_ARCH} == "x86_64" || \ |
16 | ${MACHINE_ARCH:C/^.*el$/el/} == "el" | | 15 | ${MACHINE_ARCH:C/^.*el$/el/} == "el" |
17 | TARGET_ENDIANNESS= 1234 | | 16 | TARGET_ENDIANNESS= 1234 |
18 | .elif ${MACHINE_ARCH} == "coldfire" || \ | | 17 | .elif ${MACHINE_ARCH} == "coldfire" || \ |
19 | ${MACHINE_ARCH} == "hppa" || \ | | 18 | ${MACHINE_ARCH} == "hppa" || \ |
20 | ${MACHINE_ARCH} == "m68000" || \ | | 19 | ${MACHINE_ARCH} == "m68000" || \ |
21 | ${MACHINE_ARCH} == "m68k" || \ | | 20 | ${MACHINE_ARCH} == "m68k" || \ |
22 | ${MACHINE_ARCH} == "powerpc" || \ | | 21 | ${MACHINE_ARCH} == "powerpc" || \ |
23 | ${MACHINE_ARCH} == "powerpc64" || \ | | 22 | ${MACHINE_ARCH} == "powerpc64" || \ |
24 | ${MACHINE_ARCH} == "sparc" || \ | | 23 | ${MACHINE_ARCH} == "sparc" || \ |