Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / share / mk / bsd.endian.mk
blobe16ce1beb2985cec7a5e1547178ca25665634ea1
1 # $NetBSD: bsd.endian.mk,v 1.14 2006/06/30 05:46:33 mrg Exp $
3 .if !defined(_BSD_ENDIAN_MK_)
4 _BSD_ENDIAN_MK_=1
6 .include <bsd.init.mk>
8 .if ${MACHINE_ARCH} == "alpha" || \
9 ${MACHINE_ARCH} == "arm" || \
10 ${MACHINE_ARCH} == "i386" || \
11 ${MACHINE_ARCH} == "ia64" || \
12 ${MACHINE_ARCH} == "vax" || \
13 ${MACHINE_ARCH} == "x86_64" || \
14 ${MACHINE_ARCH:C/^.*el$/el/} == "el"
15 TARGET_ENDIANNESS= 1234
16 .elif ${MACHINE_ARCH} == "hppa" || \
17 ${MACHINE_ARCH} == "m68000" || \
18 ${MACHINE_ARCH} == "m68k" || \
19 ${MACHINE_ARCH} == "powerpc" || \
20 ${MACHINE_ARCH} == "powerpc64" || \
21 ${MACHINE_ARCH} == "sparc" || \
22 ${MACHINE_ARCH} == "sparc64" || \
23 ${MACHINE_ARCH:C/^.*eb$/eb/} == "eb"
24 TARGET_ENDIANNESS= 4321
25 .endif
27 .endif # !defined(_BSD_ENDIAN_MK_)