head	1.8;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.10
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.8
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.7
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.6
	netbsd-10-base:1.8
	netbsd-9-3-RELEASE:1.7
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.4
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.7
	cjep_staticlib_x:1.8.0.2
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.7
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	is-mlppp:1.7.0.20
	is-mlppp-base:1.7
	phil-wifi-20200406:1.7
	netbsd-8-2-RELEASE:1.7
	netbsd-9-0-RELEASE:1.7
	netbsd-9-0-RC2:1.7
	netbsd-9-0-RC1:1.7
	phil-wifi-20191119:1.7
	netbsd-9:1.7.0.18
	netbsd-9-base:1.7
	phil-wifi-20190609:1.7
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.5.8.1
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.7.0.16
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.5.8.1
	pgoyette-compat:1.7.0.14
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.5.8.1
	matt-nb8-mediatek:1.7.0.12
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.10
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.8
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.6
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.5.8.1.0.6
	netbsd-7-1-RELEASE:1.5.8.1
	netbsd-7-1-RC2:1.5.8.1
	netbsd-7-nhusb-base-20170116:1.5.8.1
	bouyer-socketcan:1.7.0.4
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.5.8.1
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.5.8.1
	localcount-20160914:1.7
	netbsd-7-nhusb:1.5.8.1.0.4
	netbsd-7-nhusb-base:1.5.8.1
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.5.8.1
	netbsd-7-0:1.5.8.1.0.2
	netbsd-7-0-RELEASE:1.5.8.1
	netbsd-7-0-RC3:1.5.8.1
	netbsd-7-0-RC2:1.5.8.1
	netbsd-7-0-RC1:1.5
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.5.0.8
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.4
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.5.0.6
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.4
	riastradh-drm2-base:1.5
	netbsd-6-1:1.4.0.18
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.5.0.2
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.1.0.64
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.14
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.12
	tls-maxphys-base:1.5
	matt-nb6-plus:1.4.0.10
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-6:1.4.0.8
	netbsd-6-base:1.4
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.6
	yamt-pagecache-base:1.4
	cherry-xenmp:1.4.0.4
	cherry-xenmp-base:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.2
	bouyer-quota2-base:1.4
	matt-mips64-premerge-20101231:1.4
	matt-nb5-mips64-premerge-20101231:1.1.58.1
	matt-nb5-pq3:1.1.0.62
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.60
	netbsd-5-1-RELEASE:1.1
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1.58.1
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	netbsd-5-1-RC1:1.1
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.3
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	matt-nb5-mips64:1.1.0.58
	netbsd-5-0-1-RELEASE:1.1
	jym-xensuspend-nbase:1.2
	netbsd-5-0:1.1.0.56
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.1.0.54
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.1
	netbsd-5:1.1.0.52
	netbsd-5-base:1.1
	matt-mips64-base2:1.1
	matt-mips64:1.1.0.50
	mjf-devfs2:1.1.0.48
	mjf-devfs2-base:1.1
	netbsd-4-0-1-RELEASE:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa-base-2:1.1
	wrstuden-fixsa-newbase:1.1
	wrstuden-revivesa-base-1:1.1
	yamt-pf42-base4:1.1
	yamt-pf42-base3:1.1
	hpcarm-cleanup-nbase:1.1
	yamt-pf42-baseX:1.1
	yamt-pf42-base2:1.1
	wrstuden-revivesa:1.1.0.46
	wrstuden-revivesa-base:1.1
	yamt-pf42:1.1.0.44
	yamt-pf42-base:1.1
	keiichi-mipv6-nbase:1.1
	keiichi-mipv6:1.1.0.42
	keiichi-mipv6-base:1.1
	matt-armv6-nbase:1.1
	matt-armv6-prevmlocking:1.1
	wrstuden-fixsa-base-1:1.1
	netbsd-4-0:1.1.0.40
	netbsd-4-0-RELEASE:1.1
	cube-autoconf:1.1.0.38
	cube-autoconf-base:1.1
	netbsd-4-0-RC5:1.1
	netbsd-4-0-RC4:1.1
	netbsd-4-0-RC3:1.1
	netbsd-4-0-RC2:1.1
	netbsd-4-0-RC1:1.1
	matt-armv6:1.1.0.36
	matt-armv6-base:1.1
	matt-mips64-base:1.1
	hpcarm-cleanup:1.1.0.34
	hpcarm-cleanup-base:1.1
	netbsd-3-1-1-RELEASE:1.1
	netbsd-3-0-3-RELEASE:1.1
	wrstuden-fixsa:1.1.0.32
	wrstuden-fixsa-base:1.1
	abandoned-netbsd-4-base:1.1
	abandoned-netbsd-4:1.1.0.26
	netbsd-3-1:1.1.0.28
	netbsd-3-1-RELEASE:1.1
	netbsd-3-0-2-RELEASE:1.1
	netbsd-3-1-RC4:1.1
	netbsd-3-1-RC3:1.1
	netbsd-3-1-RC2:1.1
	netbsd-3-1-RC1:1.1
	netbsd-4:1.1.0.30
	netbsd-4-base:1.1
	chap-midi-nbase:1.1
	netbsd-3-0-1-RELEASE:1.1
	chap-midi:1.1.0.24
	chap-midi-base:1.1
	netbsd-3-0:1.1.0.22
	netbsd-3-0-RELEASE:1.1
	netbsd-3-0-RC6:1.1
	netbsd-3-0-RC5:1.1
	netbsd-3-0-RC4:1.1
	netbsd-3-0-RC3:1.1
	netbsd-3-0-RC2:1.1
	netbsd-3-0-RC1:1.1
	netbsd-2-0-3-RELEASE:1.1
	netbsd-2-1:1.1.0.20
	netbsd-2-1-RELEASE:1.1
	netbsd-2-1-RC6:1.1
	netbsd-2-1-RC5:1.1
	netbsd-2-1-RC4:1.1
	netbsd-2-1-RC3:1.1
	netbsd-2-1-RC2:1.1
	netbsd-2-1-RC1:1.1
	netbsd-2-0-2-RELEASE:1.1
	netbsd-3:1.1.0.18
	netbsd-3-base:1.1
	netbsd-2-0-1-RELEASE:1.1
	netbsd-2:1.1.0.16
	netbsd-2-base:1.1
	netbsd-2-0-RELEASE:1.1
	netbsd-2-0-RC5:1.1
	netbsd-2-0-RC4:1.1
	netbsd-2-0-RC3:1.1
	netbsd-2-0-RC2:1.1
	netbsd-2-0-RC1:1.1
	netbsd-2-0:1.1.0.14
	netbsd-2-0-base:1.1
	netbsd-1-6-PATCH002-RELEASE:1.1
	netbsd-1-6-PATCH002:1.1
	netbsd-1-6-PATCH002-RC4:1.1
	netbsd-1-6-PATCH002-RC3:1.1
	netbsd-1-6-PATCH002-RC2:1.1
	netbsd-1-6-PATCH002-RC1:1.1
	netbsd-1-6-PATCH001:1.1
	netbsd-1-6-PATCH001-RELEASE:1.1
	netbsd-1-6-PATCH001-RC3:1.1
	netbsd-1-6-PATCH001-RC2:1.1
	netbsd-1-6-PATCH001-RC1:1.1
	fvdl_fs64_base:1.1
	netbsd-1-6-RELEASE:1.1
	netbsd-1-6-RC3:1.1
	netbsd-1-6-RC2:1.1
	netbsd-1-6-RC1:1.1
	netbsd-1-6:1.1.0.12
	netbsd-1-6-base:1.1
	netbsd-1-5-PATCH003:1.1
	netbsd-1-5-PATCH002:1.1
	netbsd-1-5-PATCH001:1.1
	netbsd-1-5-RELEASE:1.1
	netbsd-1-5-BETA2:1.1
	netbsd-1-5-BETA:1.1
	netbsd-1-4-PATCH003:1.1
	netbsd-1-5-ALPHA2:1.1
	netbsd-1-5:1.1.0.10
	netbsd-1-5-base:1.1
	minoura-xpg4dl-base:1.1
	minoura-xpg4dl:1.1.0.8
	netbsd-1-4-PATCH002:1.1
	wrstuden-devbsize-19991221:1.1
	wrstuden-devbsize:1.1.0.6
	wrstuden-devbsize-base:1.1
	comdex-fall-1999:1.1.0.4
	comdex-fall-1999-base:1.1
	netbsd-1-4-PATCH001:1.1
	netbsd-1-4-RELEASE:1.1
	netbsd-1-4:1.1.0.2
	netbsd-1-4-base:1.1;
locks; strict;
comment	@# @;


1.8
date	2021.04.25.23.52.59;	author christos;	state Exp;
branches;
next	1.7;
commitid	AyDA3XTtVeVDuJQC;

1.7
date	2016.01.23.21.22.49;	author christos;	state Exp;
branches;
next	1.6;
commitid	0voYFcZKKnOpl6Sy;

1.6
date	2015.06.13.20.38.52;	author martin;	state Exp;
branches;
next	1.5;
commitid	wscZGZTCKyhMijpy;

1.5
date	2013.03.20.15.18.42;	author macallan;	state Exp;
branches
	1.5.8.1;
next	1.4;

1.4
date	2009.12.15.04.06.43;	author mrg;	state Exp;
branches
	1.4.6.1
	1.4.12.1;
next	1.3;

1.3
date	2009.12.13.08.50.56;	author mrg;	state Exp;
branches;
next	1.2;

1.2
date	2009.04.14.22.15.22;	author lukem;	state Exp;
branches;
next	1.1;

1.1
date	98.12.15.22.07.11;	author pk;	state Exp;
branches
	1.1.54.1
	1.1.58.1;
next	;

1.5.8.1
date	2015.06.29.17.20.04;	author snj;	state Exp;
branches;
next	;
commitid	G0b9nS9necuJGlry;

1.4.6.1
date	2014.05.22.11.42.45;	author yamt;	state Exp;
branches;
next	;
commitid	cG7DCbrDdiE9MwBx;

1.4.12.1
date	2013.06.23.06.29.00;	author tls;	state Exp;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;

1.1.54.1
date	2009.05.13.19.19.54;	author jym;	state Exp;
branches;
next	;

1.1.58.1
date	2009.12.23.03.14.47;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Handle mipsn64
@
text
@#	$NetBSD: Makefile.inc,v 1.7 2016/01/23 21:22:49 christos Exp $

WARNS?=	3	# XXX: -Wsign-compare issues ld.elf_so source

.if ${MKCOMPAT} != "no"

.if ${MACHINE_ARCH} == "sparc64"
MLIBDIR=	sparc
.endif

.if ${MACHINE_ARCH} == "x86_64"
MLIBDIR=	i386
.endif

.if ${MACHINE_ARCH} == "powerpc64"
MLIBDIR=	powerpc
.endif

.if !empty(MACHINE_ARCH:Mmips64*)
# For now make "elf32" look for native (n32)
MLIBDIR=	64
COMPAT_MLIBDIR=	o32
CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32
.endif

.if !empty(MACHINE_ARCH:Mmipsn64*)
MLIBDIR=	n32
COMPAT_MLIBDIR=	o32
CPPFLAGS+= -DMIPS_N32
.endif

CPPFLAGS+=	-D_KERNTYPES

.endif	# MKCOMPAT

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
@


1.7
log
@Define _KERNTYPES for things that need it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2015/06/13 20:38:52 martin Exp $
d19 1
a20 1
.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
d25 7
@


1.6
log
@Do not set MLIBDIR if MKCOMPAT=no
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2013/03/20 15:18:42 macallan Exp $
d25 1
@


1.5
log
@apply kludge to make this more or less work on mips64 with n32 userland
with this ldd can handle both 64 and n32 binaries ( previously it would do 64
only ), o32 support is still broken
Someone more familiar with this code needs to fix this properly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2009/12/15 04:06:43 mrg Exp $
d5 2
d26 2
@


1.5.8.1
log
@Pull up following revision(s) (requested by roy in ticket #853):
	usr.bin/ldd/Makefile.inc: revision 1.6
Do not set MLIBDIR if MKCOMPAT=no
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2013/03/20 15:18:42 macallan Exp $
a4 2
.if ${MKCOMPAT} != "no"

a23 2
.endif	# MKCOMPAT

@


1.4
log
@make this actually build on mips64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2009/12/13 08:50:56 mrg Exp $
d21 1
a21 1
CPPFLAGS+= -DLDD_ELF64
@


1.4.6.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2009/12/15 04:06:43 mrg Exp $
d21 1
a21 1
CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32
@


1.4.12.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d21 1
a21 1
CPPFLAGS+= -DLDD_ELF64 -DMIPS_N32
@


1.3
log
@- adjust the logic for compat ldd: add an elf32_compat module and arrange
  for mips64 to build this with MLIBDIR set to o32
- make mips64 ldd call elf32_compat_ldd as well
- make mips64 elf64 set MLIBDIR to 64
- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
  soon anyway)

tested on amd64 and sparc64, and an earlier version tested on mips64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2009/04/14 22:15:22 lukem Exp $
d21 1
@


1.2
log
@Enable WARNS=4 by default for usr.bin, except for:
	awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 1998/12/15 22:07:11 pk Exp $
d5 18
@


1.1
log
@Move a.out version of ldd(1) to the usr.bin tree; elf and a.out
reside in separate subdirectories (various source moved by
repository copying). Adapt Makefiles to new situation.
@
text
@d1 3
a3 1
#	$NetBSD$
@


1.1.58.1
log
@pull across from -current:
> Log Message:
> - adjust the logic for compat ldd: add an elf32_compat module and arrange
>   for mips64 to build this with MLIBDIR set to o32
> - make mips64 ldd call elf32_compat_ldd as well
> - make mips64 elf64 set MLIBDIR to 64
> - don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
>   soon anyway)
>
> tested on amd64 and sparc64, and an earlier version tested on mips64.

> Log Message:
> make this actually build on mips64.
@
text
@d1 1
a1 20
#	$NetBSD: Makefile.inc,v 1.1 1998/12/15 22:07:11 pk Exp $
  
.if ${MACHINE_ARCH} == "sparc64"
MLIBDIR=	sparc
.endif

.if ${MACHINE_ARCH} == "x86_64"
MLIBDIR=	i386
.endif

.if ${MACHINE_ARCH} == "powerpc64"
MLIBDIR=	powerpc
.endif

# For now make "elf32" look for native (n32)
.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
MLIBDIR=	64
COMPAT_MLIBDIR=	o32
CPPFLAGS+= -DLDD_ELF64
.endif
@


1.1.54.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 3
#	$NetBSD: Makefile.inc,v 1.2 2009/04/14 22:15:22 lukem Exp $

WARNS?=	3	# XXX: -Wsign-compare issues ld.elf_so source
@


