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