1#         $NetBSD: Makefile.inc,v 1.8 2021/04/25 23:52:59 christos Exp $
2
3WARNS?=   3         # XXX: -Wsign-compare issues ld.elf_so source
4
5.if ${MKCOMPAT} != "no"
6
7.if ${MACHINE_ARCH} == "sparc64"
8MLIBDIR=  sparc
9.endif
10
11.if ${MACHINE_ARCH} == "x86_64"
12MLIBDIR=  i386
13.endif
14
15.if ${MACHINE_ARCH} == "powerpc64"
16MLIBDIR=  powerpc
17.endif
18
19.if !empty(MACHINE_ARCH:Mmips64*)
20# For now make "elf32" look for native (n32)
21MLIBDIR=  64
22COMPAT_MLIBDIR=     o32
23CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32
24.endif
25
26.if !empty(MACHINE_ARCH:Mmipsn64*)
27MLIBDIR=  n32
28COMPAT_MLIBDIR=     o32
29CPPFLAGS+= -DMIPS_N32
30.endif
31
32CPPFLAGS+=          -D_KERNTYPES
33
34.endif    # MKCOMPAT
35
36.if exists(${.CURDIR}/../../Makefile.inc)
37.include "${.CURDIR}/../../Makefile.inc"
38.endif
39