Makefile.inc revision 1.5.8.1 1 # $NetBSD: Makefile.inc,v 1.5.8.1 2015/06/29 17:20:04 snj Exp $
2
3 WARNS?= 3 # XXX: -Wsign-compare issues ld.elf_so source
4
5 .if ${MKCOMPAT} != "no"
6
7 .if ${MACHINE_ARCH} == "sparc64"
8 MLIBDIR= sparc
9 .endif
10
11 .if ${MACHINE_ARCH} == "x86_64"
12 MLIBDIR= i386
13 .endif
14
15 .if ${MACHINE_ARCH} == "powerpc64"
16 MLIBDIR= powerpc
17 .endif
18
19 # For now make "elf32" look for native (n32)
20 .if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
21 MLIBDIR= 64
22 COMPAT_MLIBDIR= o32
23 CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32
24 .endif
25
26 .endif # MKCOMPAT
27
28 .if exists(${.CURDIR}/../../Makefile.inc)
29 .include "${.CURDIR}/../../Makefile.inc"
30 .endif
31