Home | History | Annotate | Line # | Download | only in ldd
      1 #	$NetBSD: Makefile.inc,v 1.8 2021/04/25 23:52:59 christos 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 .if !empty(MACHINE_ARCH:Mmips64*)
     20 # For now make "elf32" look for native (n32)
     21 MLIBDIR=	64
     22 COMPAT_MLIBDIR=	o32
     23 CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32
     24 .endif
     25 
     26 .if !empty(MACHINE_ARCH:Mmipsn64*)
     27 MLIBDIR=	n32
     28 COMPAT_MLIBDIR=	o32
     29 CPPFLAGS+= -DMIPS_N32
     30 .endif
     31 
     32 CPPFLAGS+=	-D_KERNTYPES
     33 
     34 .endif	# MKCOMPAT
     35 
     36 .if exists(${.CURDIR}/../../Makefile.inc)
     37 .include "${.CURDIR}/../../Makefile.inc"
     38 .endif
     39