head	1.19;
access;
symbols
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.2
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.17
	perseant-exfatfs-base-20240630:1.19
	perseant-exfatfs:1.17.0.14
	perseant-exfatfs-base:1.17
	netbsd-8-3-RELEASE:1.13.6.1
	netbsd-9-4-RELEASE:1.17
	netbsd-10-0-RELEASE:1.17
	netbsd-10-0-RC6:1.17
	netbsd-10-0-RC5:1.17
	netbsd-10-0-RC4:1.17
	netbsd-10-0-RC3:1.17
	netbsd-10-0-RC2:1.17
	netbsd-10-0-RC1:1.17
	netbsd-10:1.17.0.12
	netbsd-10-base:1.17
	netbsd-9-3-RELEASE:1.17
	cjep_sun2x-base1:1.17
	cjep_sun2x:1.17.0.10
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	netbsd-9-2-RELEASE:1.17
	cjep_staticlib_x:1.17.0.8
	cjep_staticlib_x-base:1.17
	netbsd-9-1-RELEASE:1.17
	phil-wifi-20200421:1.17
	phil-wifi-20200411:1.17
	is-mlppp:1.17.0.6
	is-mlppp-base:1.17
	phil-wifi-20200406:1.17
	netbsd-8-2-RELEASE:1.13.6.1
	netbsd-9-0-RELEASE:1.17
	netbsd-9-0-RC2:1.17
	netbsd-9-0-RC1:1.17
	phil-wifi-20191119:1.17
	netbsd-9:1.17.0.4
	netbsd-9-base:1.17
	phil-wifi-20190609:1.17
	netbsd-8-1-RELEASE:1.13.6.1
	netbsd-8-1-RC1:1.13.6.1
	pgoyette-compat-merge-20190127:1.14.2.1
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	netbsd-7-2-RELEASE:1.9
	pgoyette-compat-0728:1.17
	netbsd-8-0-RELEASE:1.13.6.1
	phil-wifi:1.17.0.2
	phil-wifi-base:1.17
	pgoyette-compat-0625:1.17
	netbsd-8-0-RC2:1.13.6.1
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.14
	netbsd-8-0-RC1:1.13
	pgoyette-compat-0415:1.14
	pgoyette-compat-0407:1.14
	pgoyette-compat-0330:1.14
	pgoyette-compat-0322:1.14
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.9
	pgoyette-compat:1.14.0.2
	pgoyette-compat-base:1.14
	netbsd-7-1-1-RELEASE:1.9
	matt-nb8-mediatek:1.13.0.10
	matt-nb8-mediatek-base:1.13
	perseant-stdc-iso10646:1.13.0.8
	perseant-stdc-iso10646-base:1.13
	netbsd-8:1.13.0.6
	netbsd-8-base:1.13
	prg-localcount2-base3:1.13
	prg-localcount2-base2:1.13
	prg-localcount2-base1:1.13
	prg-localcount2:1.13.0.4
	prg-localcount2-base:1.13
	pgoyette-localcount-20170426:1.13
	bouyer-socketcan-base1:1.13
	pgoyette-localcount-20170320:1.13
	netbsd-7-1:1.9.0.26
	netbsd-7-1-RELEASE:1.9
	netbsd-7-1-RC2:1.9
	netbsd-7-nhusb-base-20170116:1.9
	bouyer-socketcan:1.13.0.2
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	netbsd-7-1-RC1:1.9
	pgoyette-localcount-20161104:1.11
	netbsd-7-0-2-RELEASE:1.9
	localcount-20160914:1.11
	netbsd-7-nhusb:1.9.0.24
	netbsd-7-nhusb-base:1.9
	pgoyette-localcount-20160806:1.11
	pgoyette-localcount-20160726:1.11
	pgoyette-localcount:1.11.0.2
	pgoyette-localcount-base:1.11
	netbsd-7-0-1-RELEASE:1.9
	netbsd-7-0:1.9.0.22
	netbsd-7-0-RELEASE:1.9
	netbsd-7-0-RC3:1.9
	netbsd-7-0-RC2:1.9
	netbsd-7-0-RC1:1.9
	netbsd-5-2-3-RELEASE:1.7
	netbsd-5-1-5-RELEASE:1.7
	netbsd-6-0-6-RELEASE:1.9
	netbsd-6-1-5-RELEASE:1.9
	netbsd-7:1.9.0.20
	netbsd-7-base:1.9
	yamt-pagecache-base9:1.9
	yamt-pagecache-tag8:1.9
	netbsd-6-1-4-RELEASE:1.9
	netbsd-6-0-5-RELEASE:1.9
	tls-earlyentropy:1.9.0.18
	tls-earlyentropy-base:1.9
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.9
	riastradh-drm2-base3:1.9
	netbsd-6-1-3-RELEASE:1.9
	netbsd-6-0-4-RELEASE:1.9
	netbsd-5-2-2-RELEASE:1.7
	netbsd-5-1-4-RELEASE:1.7
	netbsd-6-1-2-RELEASE:1.9
	netbsd-6-0-3-RELEASE:1.9
	netbsd-5-2-1-RELEASE:1.7
	netbsd-5-1-3-RELEASE:1.7
	netbsd-6-1-1-RELEASE:1.9
	riastradh-drm2-base2:1.9
	riastradh-drm2-base1:1.9
	riastradh-drm2:1.9.0.12
	riastradh-drm2-base:1.9
	netbsd-6-1:1.9.0.16
	netbsd-6-0-2-RELEASE:1.9
	netbsd-6-1-RELEASE:1.9
	netbsd-6-1-RC4:1.9
	netbsd-6-1-RC3:1.9
	agc-symver:1.9.0.14
	agc-symver-base:1.9
	netbsd-6-1-RC2:1.9
	netbsd-6-1-RC1:1.9
	yamt-pagecache-base8:1.9
	netbsd-5-2:1.7.0.50
	netbsd-6-0-1-RELEASE:1.9
	yamt-pagecache-base7:1.9
	netbsd-5-2-RELEASE:1.7
	netbsd-5-2-RC1:1.7
	matt-nb6-plus-nbase:1.9
	yamt-pagecache-base6:1.9
	netbsd-6-0:1.9.0.10
	netbsd-6-0-RELEASE:1.9
	netbsd-6-0-RC2:1.9
	tls-maxphys:1.9.0.8
	tls-maxphys-base:1.9
	matt-nb6-plus:1.9.0.6
	matt-nb6-plus-base:1.9
	netbsd-6-0-RC1:1.9
	yamt-pagecache-base5:1.9
	yamt-pagecache-base4:1.9
	netbsd-6:1.9.0.4
	netbsd-6-base:1.9
	netbsd-5-1-2-RELEASE:1.7
	netbsd-5-1-1-RELEASE:1.7
	yamt-pagecache-base3:1.9
	yamt-pagecache-base2:1.9
	yamt-pagecache:1.9.0.2
	yamt-pagecache-base:1.9
	cherry-xenmp:1.8.0.4
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.2
	bouyer-quota2-base:1.8
	matt-mips64-premerge-20101231:1.8
	matt-nb5-mips64-premerge-20101231:1.7
	matt-nb5-pq3:1.7.0.48
	matt-nb5-pq3-base:1.7
	netbsd-5-1:1.7.0.46
	netbsd-5-1-RELEASE:1.7
	netbsd-5-1-RC4:1.7
	matt-nb5-mips64-k15:1.7
	netbsd-5-1-RC3:1.7
	netbsd-5-1-RC2:1.7
	netbsd-5-1-RC1:1.7
	netbsd-5-0-2-RELEASE:1.7
	matt-nb5-mips64-premerge-20091211:1.7
	matt-premerge-20091211:1.8
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.7
	matt-nb4-mips64-k7-u2a-k9b:1.7
	matt-nb5-mips64-u1-k1-k5:1.7
	matt-nb5-mips64:1.7.0.44
	netbsd-5-0-1-RELEASE:1.7
	jym-xensuspend-nbase:1.7
	netbsd-5-0:1.7.0.42
	netbsd-5-0-RELEASE:1.7
	netbsd-5-0-RC4:1.7
	netbsd-5-0-RC3:1.7
	netbsd-5-0-RC2:1.7
	jym-xensuspend:1.7.0.40
	jym-xensuspend-base:1.7
	netbsd-5-0-RC1:1.7
	netbsd-5:1.7.0.38
	netbsd-5-base:1.7
	matt-mips64-base2:1.7
	matt-mips64:1.7.0.36
	mjf-devfs2:1.7.0.34
	mjf-devfs2-base:1.7
	netbsd-4-0-1-RELEASE:1.7
	wrstuden-revivesa-base-3:1.7
	wrstuden-revivesa-base-2:1.7
	wrstuden-fixsa-newbase:1.7
	wrstuden-revivesa-base-1:1.7
	yamt-pf42-base4:1.7
	yamt-pf42-base3:1.7
	hpcarm-cleanup-nbase:1.7
	yamt-pf42-baseX:1.7
	yamt-pf42-base2:1.7
	wrstuden-revivesa:1.7.0.32
	wrstuden-revivesa-base:1.7
	yamt-pf42:1.7.0.30
	yamt-pf42-base:1.7
	keiichi-mipv6-nbase:1.7
	keiichi-mipv6:1.7.0.28
	keiichi-mipv6-base:1.7
	matt-armv6-nbase:1.7
	matt-armv6-prevmlocking:1.7
	wrstuden-fixsa-base-1:1.7
	netbsd-4-0:1.7.0.26
	netbsd-4-0-RELEASE:1.7
	cube-autoconf:1.7.0.24
	cube-autoconf-base:1.7
	netbsd-4-0-RC5:1.7
	netbsd-4-0-RC4:1.7
	netbsd-4-0-RC3:1.7
	netbsd-4-0-RC2:1.7
	netbsd-4-0-RC1:1.7
	matt-armv6:1.7.0.22
	matt-armv6-base:1.7
	matt-mips64-base:1.7
	hpcarm-cleanup:1.7.0.20
	hpcarm-cleanup-base:1.7
	netbsd-3-1-1-RELEASE:1.7
	netbsd-3-0-3-RELEASE:1.7
	wrstuden-fixsa:1.7.0.18
	wrstuden-fixsa-base:1.7
	abandoned-netbsd-4-base:1.7
	abandoned-netbsd-4:1.7.0.12
	netbsd-3-1:1.7.0.14
	netbsd-3-1-RELEASE:1.7
	netbsd-3-0-2-RELEASE:1.7
	netbsd-3-1-RC4:1.7
	netbsd-3-1-RC3:1.7
	netbsd-3-1-RC2:1.7
	netbsd-3-1-RC1:1.7
	netbsd-4:1.7.0.16
	netbsd-4-base:1.7
	netbsd-3-0-1-RELEASE:1.7
	netbsd-3-0:1.7.0.10
	netbsd-3-0-RELEASE:1.7
	netbsd-3-0-RC6:1.7
	netbsd-3-0-RC5:1.7
	netbsd-3-0-RC4:1.7
	netbsd-3-0-RC3:1.7
	netbsd-3-0-RC2:1.7
	netbsd-3-0-RC1:1.7
	netbsd-2-0-3-RELEASE:1.7
	netbsd-2-1:1.7.0.8
	netbsd-2-1-RELEASE:1.7
	netbsd-2-1-RC6:1.7
	netbsd-2-1-RC5:1.7
	netbsd-2-1-RC4:1.7
	netbsd-2-1-RC3:1.7
	netbsd-2-1-RC2:1.7
	netbsd-2-1-RC1:1.7
	netbsd-2-0-2-RELEASE:1.7
	netbsd-3:1.7.0.6
	netbsd-3-base:1.7
	netbsd-2-0-1-RELEASE:1.7
	netbsd-2:1.7.0.4
	netbsd-2-base:1.7
	netbsd-2-0-RELEASE:1.7
	netbsd-2-0-RC5:1.7
	netbsd-2-0-RC4:1.7
	netbsd-2-0-RC3:1.7
	netbsd-2-0-RC2:1.7
	netbsd-2-0-RC1:1.7
	netbsd-2-0:1.7.0.2
	netbsd-2-0-base:1.7
	netbsd-1-6-PATCH002-RELEASE:1.5
	netbsd-1-6-PATCH002:1.5
	netbsd-1-6-PATCH002-RC4:1.5
	netbsd-1-6-PATCH002-RC3:1.5
	netbsd-1-6-PATCH002-RC2:1.5
	netbsd-1-6-PATCH002-RC1:1.5
	netbsd-1-6-PATCH001:1.5
	netbsd-1-6-PATCH001-RELEASE:1.5
	netbsd-1-6-PATCH001-RC3:1.5
	netbsd-1-6-PATCH001-RC2:1.5
	netbsd-1-6-PATCH001-RC1:1.5
	fvdl_fs64_base:1.5
	netbsd-1-6-RELEASE:1.5
	netbsd-1-6-RC3:1.5
	netbsd-1-6-RC2:1.5
	netbsd-1-6-RC1:1.5
	netbsd-1-6:1.5.0.2
	netbsd-1-6-base:1.5;
locks; strict;
comment	@# @;


1.19
date	2024.06.30.17.46.22;	author christos;	state Exp;
branches;
next	1.18;
commitid	ZwuU7PuYJL5772gF;

1.18
date	2024.06.30.16.12.13;	author christos;	state Exp;
branches;
next	1.17;
commitid	jg4bagRgMvyNA1gF;

1.17
date	2018.05.01.19.59.47;	author christos;	state Exp;
branches
	1.17.14.1;
next	1.16;
commitid	10Ge8dYtIFEjeDAA;

1.16
date	2018.05.01.12.38.40;	author christos;	state Exp;
branches;
next	1.15;
commitid	EjZn9ZRLsBmyNAAA;

1.15
date	2018.05.01.00.04.36;	author christos;	state Exp;
branches;
next	1.14;
commitid	uQDEVvoGZCAoBwAA;

1.14
date	2017.12.27.21.34.12;	author christos;	state Exp;
branches
	1.14.2.1;
next	1.13;
commitid	LwRiHSUHYwIXLzkA;

1.13
date	2017.01.06.20.27.19;	author christos;	state Exp;
branches
	1.13.6.1;
next	1.12;
commitid	vCzWz9dGp1HPOWAz;

1.12
date	2017.01.06.17.22.51;	author christos;	state Exp;
branches;
next	1.11;
commitid	05WYGGBPOstBNVAz;

1.11
date	2016.02.01.14.17.21;	author christos;	state Exp;
branches
	1.11.2.1;
next	1.10;
commitid	IZuF7XfdNSQAHdTy;

1.10
date	2016.02.01.13.44.52;	author christos;	state Exp;
branches;
next	1.9;
commitid	S6Jgn9D0bKWrwdTy;

1.9
date	2011.10.31.08.14.44;	author mrg;	state Exp;
branches
	1.9.6.1;
next	1.8;

1.8
date	2009.10.27.14.20.21;	author tsutsui;	state Exp;
branches;
next	1.7;

1.7
date	2003.12.04.09.59.07;	author mrg;	state Exp;
branches;
next	1.6;

1.6
date	2003.07.25.16.26.54;	author mrg;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.13.03.44.37;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	2001.11.12.23.16.30;	author tv;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.25.02.37.49;	author thorpej;	state Exp;
branches;
next	1.2;

1.2
date	2001.10.24.23.57.45;	author thorpej;	state Exp;
branches;
next	1.1;

1.1
date	2001.10.21.23.10.47;	author jmc;	state Exp;
branches;
next	;

1.17.14.1
date	2024.07.01.01.01.15;	author perseant;	state Exp;
branches;
next	;
commitid	NkoYLLCQWWw9v4gF;

1.14.2.1
date	2018.05.02.07.20.27;	author pgoyette;	state Exp;
branches;
next	;
commitid	o3kRuNRzl9360HAA;

1.13.6.1
date	2018.05.05.19.25.55;	author martin;	state Exp;
branches;
next	;
commitid	tsBirYemJEclV8BA;

1.11.2.1
date	2017.01.07.08.56.57;	author pgoyette;	state Exp;
branches;
next	;
commitid	uEL0C1YuiJrlV0Bz;

1.9.6.1
date	2012.11.20.18.54.42;	author matt;	state Exp;
branches;
next	;


desc
@@


1.19
log
@Don't hardcode the binutils subdir
@
text
@#	$NetBSD: Makefile,v 1.18 2024/06/30 16:12:13 christos Exp $

.include <bsd.hostinit.mk>

HOSTPROGNAME=	${MACHINE_GNU_PLATFORM}-mdsetimage

HOST_SRCDIR=	external/gpl3/${EXTERNAL_BINUTILS_SUBDIR}/usr.sbin/mdsetimage

TOOLCHAINOBJ!=	cd ${.CURDIR}/../binutils && ${PRINTOBJDIR}
BFDDIR?=	${TOOLCHAINOBJ}/build/bfd
SFRAMEDIR?=	${TOOLCHAINOBJ}/build/libsframe
IBERTYDIR?=	${TOOLCHAINOBJ}/build/libiberty

.include "${.CURDIR}/../Makefile.host"


LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
.if exists(${LDMAKEFILE})
HAVE_LIBDL!=	grep -- -ldl ${LDMAKEFILE} || echo no
.else
HAVE_LIBDL=	no
.endif

.if ${HAVE_LIBDL} != "no"
LDADD+=	-ldl
.endif
@


1.18
log
@Adjust for binutils-2.42
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2018/05/01 19:59:47 christos Exp $
d7 1
a7 1
HOST_SRCDIR=	external/gpl3/binutils/usr.sbin/mdsetimage
@


1.17
log
@Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2018/05/01 12:38:40 christos Exp $
d11 1
@


1.17.14.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2024/06/30 17:46:22 christos Exp $
d7 1
a7 1
HOST_SRCDIR=	external/gpl3/${EXTERNAL_BINUTILS_SUBDIR}/usr.sbin/mdsetimage
a10 1
SFRAMEDIR?=	${TOOLCHAINOBJ}/build/libsframe
@


1.16
log
@Centralize NOMAN handling.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2018/05/01 00:04:36 christos Exp $
d3 1
a3 1
.include <bsd.init.mk>
@


1.15
log
@PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.14 2017/12/27 21:34:12 christos Exp $

NOMAN=	# defined
@


1.14
log
@Better EXTERNAL_TOOLCHAIN support from Zachary McGrew
- Allow mdsetimage and dbsym to be built with EXTERNAL_TOOLCHAIN
- Allow BFDDIR and IBERTYDIR to be overwritten for mdsetimage and dbsym
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2017/01/06 20:27:19 christos Exp $
d5 1
a5 1
.include <bsd.own.mk>
@


1.14.2.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2018/05/01 19:59:47 christos Exp $
d3 3
a5 1
.include <bsd.hostinit.mk>
@


1.13
log
@handle the case where we don't have the files built yet
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2017/01/06 17:22:51 christos Exp $
d12 2
a13 2
BFDDIR=		${TOOLCHAINOBJ}/build/bfd
IBERTYDIR=	${TOOLCHAINOBJ}/build/libiberty
@


1.13.6.1
log
@Pull up following revision(s) (requested by christos in ticket #796):

	tools/mdsetimage/Makefile: revision 1.15
	tools/compat/Makefile: revision 1.82
	tools/gdb/Makefile: revision 1.35
	tools/lorder/Makefile: revision 1.13
	tools/gcc/Makefile: revision 1.85
	tools/dtc/Makefile: revision 1.3
	tools/cvslatest/Makefile: revision 1.2
	tools/ctfmerge/Makefile: revision 1.8
	tools/libelf/Makefile: revision 1.9
	tools/libdwarf/Makefile: revision 1.8
	tools/ctfconvert/Makefile: revision 1.7
	tools/makekeys/Makefile: revision 1.2
	tools/gettext/Makefile: revision 1.7
	tools/binstall/Makefile: revision 1.12
	tools/libfdt/Makefile: revision 1.3
	tools/libctf/Makefile: revision 1.7
	tools/binutils/Makefile: revision 1.27
	tools/mandoc/Makefile: revision 1.11
	tools/Makefile.host: revision 1.32
	tools/dbsym/Makefile: revision 1.13
	tools/genassym/Makefile: revision 1.7
	tools/Makefile.inc: revision 1.14

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2017/01/06 20:27:19 christos Exp $
d5 1
a5 1
.include <bsd.init.mk>
@


1.12
log
@don't run grep if we don't have the Makefile, like when we are building
objdirs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2016/02/01 14:17:21 christos Exp $
d20 3
a22 1
HAVE_LIBDL!=		grep -- -ldl ${LDMAKEFILE} || echo no
@


1.11
log
@kill error message
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2016/02/01 13:44:52 christos Exp $
a16 1
LIBDL!=		grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile || echo no
d18 6
a23 1
.if ${LIBDL} != "no"
@


1.11.2.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2017/01/06 20:27:19 christos Exp $
d17 1
d19 1
a19 8
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
.if exists(${LDMAKEFILE})
HAVE_LIBDL!=	grep -- -ldl ${LDMAKEFILE} || echo no
.else
HAVE_LIBDL=	no
.endif

.if ${HAVE_LIBDL} != "no"
@


1.10
log
@Add -ldl if it is needed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2011/10/31 08:14:44 mrg Exp $
d17 1
a17 1
LIBDL!=		grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile
d19 1
a19 1
.if !empty(LIBDL)
@


1.9
log
@obsolete now useless (and wrongly set to "219" :-) HAVE_BINUTILS.
switch the sense of the gdb and gcc tests to list the platforms not
switched to gcc 4.5 or gdb 7, which is now:

GCC 4.1:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_CPU}  == "arm"	|| \
    ${MACHINE_CPU}  == "m68k"	|| \
    ${MACHINE_CPU}  == "vax"

GDB 6:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_ARCH} == "hppa"	|| \
    ${MACHINE_CPU}  == "mips"	|| \
    ${MACHINE_CPU}  == "sh3"	|| \
    ${MACHINE_ARCH} == "vax"

let's go, people!  (-:
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2009/10/27 14:20:21 tsutsui Exp $
d16 6
@


1.9.6.1
log
@Support building GPL2 versions of binutils, dbsym, gdb, and mdsetimage
@
text
@a8 1
.if $(HAVE_BINUTILS) == "219"
a9 3
.else
HOST_SRCDIR=	gnu/usr.sbin/mdsetimage
.endif
@


1.8
log
@Use HOST_SRCDIR=external/gpl3/binutils/usr.sbin/foo
in $(HAVE_BINUTILS)=="219" case.
Fixes build failures on Cygwin. (new libbfd depends on libz)

BTW, should we revive old ones under src/usr.sbin for
native dbsym(8)/mdsetimage(8) binaries which don't need libbfd?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2003/12/04 09:59:07 mrg Exp $
a8 1
.if $(HAVE_BINUTILS) == "219"
a9 3
.else
HOST_SRCDIR=	gnu/usr.sbin/mdsetimage
.endif
@


1.7
log
@look for libbfd etc in binutils always now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2003/07/25 16:26:54 mrg Exp $
d8 4
d13 1
@


1.6
log
@- build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set
  to "yes".
- adjust dbsym/mdsetimage to look in the correct place for libbfd.
- new mknative-gcc based in toolchain/mknative
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2001/12/13 03:44:37 lukem Exp $
a9 1
.if ${USE_TOOLS_TOOLCHAIN} != "yes"
a10 3
.else
TOOLCHAINOBJ!=	cd ${.CURDIR}/../toolchain && ${PRINTOBJDIR}
.endif
@


1.5
log
@missed a couple of NOMAN= :(
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2001/11/12 23:16:30 tv Exp $
d10 3
d14 1
@


1.4
log
@Major overhaul of src/tools and host toolchain.  Summary of changes:

* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.3 2001/10/25 02:37:49 thorpej Exp $
@


1.3
log
@Avoid some annoying pitfalls of HOST_CPPFLAGS:=... in Makefile.host.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2001/10/24 23:57:45 thorpej Exp $
d3 1
a3 1
MDSETIMAGE_TARGET_PREFIX=${MACHINE_GNU_PLATFORM}-
d5 1
a5 1
HOSTPROGNAME=	${MDSETIMAGE_TARGET_PREFIX}mdsetimage
d8 3
a10 2
BFDDIR=	 ${TOOLCHAINOBJDIR}/toolchain/bfd
IBERTYDIR= ${TOOLCHAINOBJDIR}/toolchain/libiberty
a12 6

TOOLCHAINOBJDIR!= cd ${_CURDIR}/../toolchain && ${PRINTOBJDIR}

HOST_CPPFLAGS+= -I${BFDDIR} -I${DIST}/include

${TIMESTAMP}: ${SRCS}
@


1.2
log
@Build a properly target-prefixed cross-tool version of mdsetimage,
using libbfd.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/10/21 23:10:47 jmc Exp $
d14 2
@


1.1
log
@Pull in mdsetimage to the tools builds. (XXX - using libbfd here would
probably be preferrable long term).
@
text
@d1 1
a1 1
#	$NetBSD$
d3 7
a9 1
HOST_SRCDIR=	usr.sbin/mdsetimage
d12 2
@

