xref: /netbsd-src/sys/compat/netbsd32/netbsd32.mk (revision cef8759bd76c1b621f8eab8faa6f208faabc2e15)
1#	$NetBSD: netbsd32.mk,v 1.2 2020/03/06 04:54:08 pgoyette Exp $
2
3# makefile fragment that tells you if you should support netbsd32 or not.
4# include this and check ${COMPAT_USE_NETBSD32} != "no".
5
6.if ${MACHINE_ARCH} == "x86_64" \
7    || ${MACHINE_CPU} == "arm" \
8    || ${MACHINE_CPU} == "aarch64" \
9    || ${MACHINE_ARCH} == "sparc64" \
10    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
11COMPAT_USE_NETBSD32?=yes
12.else
13COMPAT_USE_NETBSD32?=no
14.endif
15