head	1.47;
access;
symbols
	perseant-exfatfs-base-20261102:1.47
	perseant-exfatfs-base-20250801:1.47
	perseant-exfatfs-base-20240630:1.47
	cjep_sun2x:1.47.0.24
	cjep_sun2x-base:1.47
	cjep_staticlib_x-base1:1.47
	cjep_staticlib_x:1.47.0.22
	cjep_staticlib_x-base:1.47
	phil-wifi-20200421:1.47
	phil-wifi-20200411:1.47
	phil-wifi-20200406:1.47
	pgoyette-compat-merge-20190127:1.47
	pgoyette-compat-20190127:1.47
	pgoyette-compat-20190118:1.47
	pgoyette-compat-1226:1.47
	pgoyette-compat-1126:1.47
	pgoyette-compat-1020:1.47
	pgoyette-compat-0930:1.47
	pgoyette-compat-0906:1.47
	pgoyette-compat-0728:1.47
	pgoyette-compat-0625:1.47
	pgoyette-compat-0521:1.47
	pgoyette-compat-0502:1.47
	pgoyette-compat-0422:1.47
	pgoyette-compat-0415:1.47
	pgoyette-compat-0407:1.47
	pgoyette-compat-0330:1.47
	pgoyette-compat-0322:1.47
	pgoyette-compat-0315:1.47
	pgoyette-compat:1.47.0.20
	pgoyette-compat-base:1.47
	perseant-stdc-iso10646:1.47.0.18
	perseant-stdc-iso10646-base:1.47
	prg-localcount2-base3:1.47
	prg-localcount2-base2:1.47
	prg-localcount2-base1:1.47
	prg-localcount2:1.47.0.16
	prg-localcount2-base:1.47
	pgoyette-localcount-20170426:1.47
	bouyer-socketcan-base1:1.47
	pgoyette-localcount-20170320:1.47
	bouyer-socketcan:1.47.0.14
	bouyer-socketcan-base:1.47
	pgoyette-localcount-20170107:1.47
	pgoyette-localcount-20161104:1.47
	localcount-20160914:1.47
	pgoyette-localcount-20160806:1.47
	pgoyette-localcount-20160726:1.47
	pgoyette-localcount:1.47.0.12
	pgoyette-localcount-base:1.47
	netbsd-5-2-3-RELEASE:1.45
	netbsd-5-1-5-RELEASE:1.45
	yamt-pagecache-base9:1.47
	yamt-pagecache-tag8:1.47
	tls-earlyentropy:1.47.0.8
	tls-earlyentropy-base:1.47
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.47
	riastradh-drm2-base3:1.47
	netbsd-5-2-2-RELEASE:1.45
	netbsd-5-1-4-RELEASE:1.45
	netbsd-5-2-1-RELEASE:1.45
	netbsd-5-1-3-RELEASE:1.45
	agc-symver:1.47.0.10
	agc-symver-base:1.47
	tls-maxphys-base:1.47
	yamt-pagecache-base8:1.47
	netbsd-5-2:1.45.0.12
	yamt-pagecache-base7:1.47
	netbsd-5-2-RELEASE:1.45
	matt-nb6-plus-base:1.46
	matt-nb6-plus:1.47.0.6
	matt-nb6-plus-nbase:1.46
	netbsd-5-2-RC1:1.45
	yamt-pagecache-base6:1.47
	yamt-pagecache-base5:1.47
	yamt-pagecache-base4:1.47
	netbsd-5-1-2-RELEASE:1.45
	netbsd-5-1-1-RELEASE:1.45
	yamt-pagecache-base3:1.47
	yamt-pagecache-base2:1.47
	yamt-pagecache:1.47.0.4
	yamt-pagecache-base:1.47
	bouyer-quota2-nbase:1.47
	bouyer-quota2:1.47.0.2
	bouyer-quota2-base:1.47
	matt-nb5-mips64-premerge-20101231:1.45
	matt-nb5-pq3:1.45.0.10
	matt-nb5-pq3-base:1.45
	netbsd-5-1:1.45.0.8
	netbsd-5-1-RELEASE:1.45
	netbsd-5-1-RC4:1.45
	matt-nb5-mips64-k15:1.45
	netbsd-5-1-RC3:1.45
	netbsd-5-1-RC2:1.45
	netbsd-5-1-RC1:1.45
	netbsd-5-0-2-RELEASE:1.45
	matt-nb5-mips64-premerge-20091211:1.45
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.45
	matt-nb4-mips64-k7-u2a-k9b:1.45
	matt-nb5-mips64-u1-k1-k5:1.45
	matt-nb5-mips64:1.45.0.6
	netbsd-5-0-1-RELEASE:1.45
	jym-xensuspend-nbase:1.46
	netbsd-5-0:1.45.0.4
	netbsd-5-0-RELEASE:1.45
	netbsd-5-0-RC4:1.45
	netbsd-5-0-RC3:1.45
	netbsd-5-0-RC2:1.45
	jym-xensuspend:1.46.0.2
	jym-xensuspend-base:1.46
	netbsd-5-0-RC1:1.45
	netbsd-5:1.45.0.2
	netbsd-5-base:1.45
	matt-mips64-base2:1.43
	matt-mips64:1.42.0.12
	netbsd-4-0-1-RELEASE:1.41.4.1
	wrstuden-revivesa-base-3:1.43
	wrstuden-revivesa-base-2:1.43
	wrstuden-fixsa-newbase:1.41.4.1
	wrstuden-revivesa-base-1:1.43
	yamt-pf42-base4:1.43
	yamt-pf42-base3:1.43
	hpcarm-cleanup-nbase:1.43
	yamt-pf42-baseX:1.42
	yamt-pf42-base2:1.43
	wrstuden-revivesa:1.43.0.2
	wrstuden-revivesa-base:1.43
	yamt-pf42:1.42.0.10
	yamt-pf42-base:1.42
	keiichi-mipv6:1.42.0.8
	keiichi-mipv6-base:1.42
	matt-armv6-nbase:1.42
	matt-armv6-prevmlocking:1.42
	wrstuden-fixsa-base-1:1.41.4.1
	netbsd-4-0:1.41.4.1.0.2
	netbsd-4-0-RELEASE:1.41.4.1
	cube-autoconf:1.42.0.6
	cube-autoconf-base:1.42
	netbsd-4-0-RC5:1.41.4.1
	netbsd-4-0-RC4:1.41.4.1
	netbsd-4-0-RC3:1.41.4.1
	netbsd-4-0-RC2:1.41.4.1
	netbsd-4-0-RC1:1.41.4.1
	matt-armv6:1.42.0.4
	matt-armv6-base:1.42
	matt-mips64-base:1.42
	hpcarm-cleanup:1.42.0.2
	hpcarm-cleanup-base:1.42
	netbsd-3-1-1-RELEASE:1.40
	netbsd-3-0-3-RELEASE:1.40
	wrstuden-fixsa:1.41.0.6
	wrstuden-fixsa-base:1.41.4.1
	abandoned-netbsd-4-base:1.41
	abandoned-netbsd-4:1.41.0.2
	netbsd-3-1:1.40.0.6
	netbsd-3-1-RELEASE:1.40
	netbsd-3-0-2-RELEASE:1.40
	netbsd-3-1-RC4:1.40
	netbsd-3-1-RC3:1.40
	netbsd-3-1-RC2:1.40
	netbsd-3-1-RC1:1.40
	netbsd-4:1.41.0.4
	netbsd-4-base:1.41
	netbsd-3-0-1-RELEASE:1.40
	netbsd-3-0:1.40.0.4
	netbsd-3-0-RELEASE:1.40
	netbsd-3-0-RC6:1.40
	netbsd-3-0-RC5:1.40
	netbsd-3-0-RC4:1.40
	netbsd-3-0-RC3:1.40
	netbsd-3-0-RC2:1.40
	netbsd-3-0-RC1:1.40
	netbsd-2-0-3-RELEASE:1.39
	netbsd-2-1:1.39.0.6
	netbsd-2-1-RELEASE:1.39
	netbsd-2-1-RC6:1.39
	netbsd-2-1-RC5:1.39
	netbsd-2-1-RC4:1.39
	netbsd-2-1-RC3:1.39
	netbsd-2-1-RC2:1.39
	netbsd-2-1-RC1:1.39
	netbsd-2-0-2-RELEASE:1.39
	netbsd-3:1.40.0.2
	netbsd-3-base:1.40
	netbsd-2-0-1-RELEASE:1.39
	netbsd-2:1.39.0.4
	netbsd-2-base:1.39
	netbsd-2-0-RELEASE:1.39
	netbsd-2-0-RC5:1.39
	netbsd-2-0-RC4:1.39
	netbsd-2-0-RC3:1.39
	netbsd-2-0-RC2:1.39
	netbsd-2-0-RC1:1.39
	netbsd-2-0:1.39.0.2
	netbsd-2-0-base:1.39
	netbsd-1-6-PATCH002-RELEASE:1.25
	netbsd-1-6-PATCH002:1.25
	netbsd-1-6-PATCH002-RC4:1.25
	netbsd-1-6-PATCH002-RC3:1.25
	netbsd-1-6-PATCH002-RC2:1.25
	netbsd-1-6-PATCH002-RC1:1.25
	netbsd-1-6-PATCH001:1.25
	netbsd-1-6-PATCH001-RELEASE:1.25
	netbsd-1-6-PATCH001-RC3:1.25
	netbsd-1-6-PATCH001-RC2:1.25
	netbsd-1-6-PATCH001-RC1:1.25
	fvdl_fs64_base:1.31
	netbsd-1-6-RELEASE:1.25
	netbsd-1-6-RC3:1.25
	netbsd-1-6-RC2:1.25
	netbsd-1-6-RC1:1.25
	netbsd-1-6:1.25.0.2
	netbsd-1-6-base:1.25
	netbsd-1-5-PATCH003:1.16
	netbsd-1-5-PATCH002:1.16
	netbsd-1-5-PATCH001:1.16
	netbsd-1-5-RELEASE:1.16
	netbsd-1-5-BETA2:1.16
	netbsd-1-5-BETA:1.16
	netbsd-1-4-PATCH003:1.9
	netbsd-1-5-ALPHA2:1.16
	netbsd-1-5:1.16.0.2
	netbsd-1-5-base:1.16
	netbsd-1-4-PATCH002:1.9
	wrstuden-devbsize-19991221:1.12
	wrstuden-devbsize:1.11.0.4
	wrstuden-devbsize-base:1.12
	comdex-fall-1999:1.11.0.2
	comdex-fall-1999-base:1.11
	netbsd-1-4-PATCH001:1.9
	netbsd-1-4-RELEASE:1.9
	netbsd-1-4:1.9.0.2
	netbsd-1-4-base:1.9;
locks; strict;
comment	@# @;


1.47
date	2009.11.08.15.24.36;	author skrll;	state dead;
branches
	1.47.6.1;
next	1.46;

1.46
date	2009.01.11.03.09.35;	author christos;	state Exp;
branches;
next	1.45;

1.45
date	2008.10.25.23.56.02;	author mrg;	state Exp;
branches
	1.45.6.1;
next	1.44;

1.44
date	2008.10.25.22.27.35;	author apb;	state Exp;
branches;
next	1.43;

1.43
date	2008.04.20.07.11.22;	author mrg;	state Exp;
branches;
next	1.42;

1.42
date	2007.04.08.09.56.02;	author scw;	state Exp;
branches
	1.42.10.1;
next	1.41;

1.41
date	2006.02.03.16.29.34;	author christos;	state Exp;
branches
	1.41.4.1
	1.41.6.1;
next	1.40;

1.40
date	2004.12.08.15.13.33;	author mrg;	state Exp;
branches;
next	1.39;

1.39
date	2003.12.07.21.13.04;	author scw;	state Exp;
branches;
next	1.38;

1.38
date	2003.12.04.12.18.57;	author mrg;	state Exp;
branches;
next	1.37;

1.37
date	2003.12.04.09.29.31;	author mrg;	state Exp;
branches;
next	1.36;

1.36
date	2003.10.21.10.01.19;	author lukem;	state Exp;
branches;
next	1.35;

1.35
date	2003.10.19.14.52.03;	author lukem;	state Exp;
branches;
next	1.34;

1.34
date	2003.06.26.02.49.31;	author uwe;	state Exp;
branches;
next	1.33;

1.33
date	2003.04.09.22.33.26;	author thorpej;	state Exp;
branches;
next	1.32;

1.32
date	2003.03.01.13.08.42;	author mrg;	state Exp;
branches;
next	1.31;

1.31
date	2002.09.17.23.18.32;	author thorpej;	state Exp;
branches;
next	1.30;

1.30
date	2002.08.19.15.01.34;	author lukem;	state Exp;
branches;
next	1.29;

1.29
date	2002.08.19.09.46.39;	author lukem;	state Exp;
branches;
next	1.28;

1.28
date	2002.06.19.16.10.48;	author itojun;	state Exp;
branches;
next	1.27;

1.27
date	2002.06.18.08.48.29;	author itojun;	state Exp;
branches;
next	1.26;

1.26
date	2002.06.18.08.19.04;	author itojun;	state Exp;
branches;
next	1.25;

1.25
date	2002.02.11.21.36.33;	author tv;	state Exp;
branches;
next	1.24;

1.24
date	2001.12.12.01.48.57;	author tv;	state Exp;
branches;
next	1.23;

1.23
date	2001.09.21.15.38.15;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	2001.08.19.14.19.38;	author mrg;	state Exp;
branches;
next	1.21;

1.21
date	2001.08.07.03.28.07;	author tv;	state Exp;
branches;
next	1.20;

1.20
date	2001.08.06.15.47.17;	author tv;	state Exp;
branches;
next	1.19;

1.19
date	2001.02.02.19.33.54;	author tsubai;	state Exp;
branches;
next	1.18;

1.18
date	2001.01.04.09.11.47;	author itojun;	state Exp;
branches;
next	1.17;

1.17
date	2001.01.04.09.10.25;	author itojun;	state Exp;
branches;
next	1.16;

1.16
date	2000.05.20.20.30.48;	author kristerw;	state Exp;
branches;
next	1.15;

1.15
date	2000.03.27.19.15.32;	author msaitoh;	state Exp;
branches;
next	1.14;

1.14
date	2000.01.11.05.48.30;	author matt;	state Exp;
branches;
next	1.13;

1.13
date	99.12.26.19.48.01;	author msaitoh;	state Exp;
branches;
next	1.12;

1.12
date	99.11.23.02.08.03;	author wrstuden;	state Exp;
branches;
next	1.11;

1.11
date	99.08.01.04.25.39;	author sommerfeld;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	99.04.30.14.41.38;	author kleink;	state Exp;
branches;
next	1.9;

1.9
date	99.03.17.00.46.35;	author thorpej;	state Exp;
branches;
next	1.8;

1.8
date	99.03.07.10.43.59;	author ragge;	state Exp;
branches;
next	1.7;

1.7
date	99.03.03.13.23.34;	author tv;	state Exp;
branches;
next	1.6;

1.6
date	99.02.26.22.53.14;	author tv;	state Exp;
branches;
next	1.5;

1.5
date	99.02.24.17.17.29;	author drochner;	state Exp;
branches;
next	1.4;

1.4
date	99.02.13.02.54.22;	author lukem;	state Exp;
branches;
next	1.3;

1.3
date	99.02.11.17.37.34;	author tv;	state Exp;
branches;
next	1.2;

1.2
date	99.02.10.17.53.50;	author tv;	state Exp;
branches;
next	1.1;

1.1
date	99.02.09.15.57.53;	author tv;	state Exp;
branches;
next	;

1.47.6.1
date	2009.11.08.15.24.36;	author matt;	state dead;
branches;
next	1.47.6.2;

1.47.6.2
date	2012.11.20.18.52.10;	author matt;	state Exp;
branches;
next	;

1.45.6.1
date	2013.12.18.18.41.39;	author matt;	state Exp;
branches;
next	;
commitid	nGsIzVZuqGJF4Ehx;

1.42.10.1
date	2008.05.18.12.29.49;	author yamt;	state Exp;
branches;
next	;

1.41.4.1
date	2007.07.19.14.38.24;	author liamjfoy;	state Exp;
branches;
next	;

1.41.6.1
date	2007.09.03.07.00.57;	author wrstuden;	state Exp;
branches;
next	;

1.11.4.1
date	99.12.27.18.29.14;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.47
log
@Remove binutils 2.16 crossover build files.
@
text
@#	$NetBSD: Makefile,v 1.46 2009/01/11 03:09:35 christos Exp $

NOLINKLIB=	# defined
NOLINT=		# defined
NOMAN=		# defined
NOPROFILE=	# defined

.include <bsd.own.mk>

# If the platform does not support shared libraries, we need to supply
# *something* for BFD-using programs to link against.  Also provide an
# empty libinstall target so that libbfd.a does not get installed.
.if ${MKPIC} == "no"
MKLINKLIB=	yes
libinstall:	# do nothing
.endif

LIB=		bfd

BFD_MACHINE_ARCH?=	${MACHINE_ARCH}

.if exists(${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk"

DIST=		${NETBSDSRCDIR}/gnu/dist/binutils

SHLIB_MAJOR=	10
SHLIB_MINOR=	0

GCPPFLAGS=	${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
CPPFLAGS+=	-I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
		-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}

GSRCS=		${G_libbfd_la_OBJECTS:libbfd.lo=lib_bfd.lo} \
		${G_libbfd_la_DEPENDENCIES:M*.lo}
SRCS=		${GSRCS:.lo=.c}

DPSRCS+=	elf32-target.h elf64-target.h targmatch.h \
		elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h \
		elf32-ia64.c elf64-ia64.c peigen.c pepigen.c

TEXINFO=	bfd.texinfo
INFOFLAGS=	-I${DIST}/bfd/doc

.PATH: ${DIST}/bfd ${DIST}/bfd/doc

.include <bsd.lib.mk>
.include <bsd.info.mk>

${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
targets.o targets.so: targmatch.h Makefile
.else
.include <bsd.prog.mk> # do nothing
.endif

targmatch.h: config.bfd targmatch.sed
	${_MKTARGET_CREATE}
	${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@@

elf32-target.h: elfxx-target.h
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/32/g < $> > $@@

elf64-target.h: elfxx-target.h
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/64/g < $> > $@@

elf32-ia64.c: elfxx-ia64.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/32/g < $> > $@@

elf64-ia64.c: elfxx-ia64.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/64/g < $> > $@@

peigen.c: peXXigen.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/XX/pe/g < $> > $@@

pepigen.c: peXXigen.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/XX/pep/g < $> > $@@
@


1.47.6.1
log
@file Makefile was added on branch matt-nb6-plus on 2012-11-20 18:52:10 +0000
@
text
@d1 83
@


1.47.6.2
log
@Bring back GPL2 version of binutils.
@
text
@a0 83
#	$NetBSD: Makefile,v 1.46 2009/01/11 03:09:35 christos Exp $

NOLINKLIB=	# defined
NOLINT=		# defined
NOMAN=		# defined
NOPROFILE=	# defined

.include <bsd.own.mk>

# If the platform does not support shared libraries, we need to supply
# *something* for BFD-using programs to link against.  Also provide an
# empty libinstall target so that libbfd.a does not get installed.
.if ${MKPIC} == "no"
MKLINKLIB=	yes
libinstall:	# do nothing
.endif

LIB=		bfd

BFD_MACHINE_ARCH?=	${MACHINE_ARCH}

.if exists(${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk"

DIST=		${NETBSDSRCDIR}/gnu/dist/binutils

SHLIB_MAJOR=	10
SHLIB_MINOR=	0

GCPPFLAGS=	${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
CPPFLAGS+=	-I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
		-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}

GSRCS=		${G_libbfd_la_OBJECTS:libbfd.lo=lib_bfd.lo} \
		${G_libbfd_la_DEPENDENCIES:M*.lo}
SRCS=		${GSRCS:.lo=.c}

DPSRCS+=	elf32-target.h elf64-target.h targmatch.h \
		elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h \
		elf32-ia64.c elf64-ia64.c peigen.c pepigen.c

TEXINFO=	bfd.texinfo
INFOFLAGS=	-I${DIST}/bfd/doc

.PATH: ${DIST}/bfd ${DIST}/bfd/doc

.include <bsd.lib.mk>
.include <bsd.info.mk>

${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
targets.o targets.so: targmatch.h Makefile
.else
.include <bsd.prog.mk> # do nothing
.endif

targmatch.h: config.bfd targmatch.sed
	${_MKTARGET_CREATE}
	${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@@

elf32-target.h: elfxx-target.h
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/32/g < $> > $@@

elf64-target.h: elfxx-target.h
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/64/g < $> > $@@

elf32-ia64.c: elfxx-ia64.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/32/g < $> > $@@

elf64-ia64.c: elfxx-ia64.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/NN/64/g < $> > $@@

peigen.c: peXXigen.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/XX/pe/g < $> > $@@

pepigen.c: peXXigen.c
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/XX/pep/g < $> > $@@
@


1.46
log
@bump majors.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2008/10/25 23:56:02 mrg Exp $
@


1.45
log
@use ${BFD_MACHINE_ARCH} in preference to ${MACHINE_ARCH}, if defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2008/10/25 22:27:35 apb Exp $
d27 1
a27 1
SHLIB_MAJOR=	9
@


1.45.6.1
log
@Treat MACHINE_ARCH of armv7/armv7eb as arm/armeb
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2008/10/25 23:56:02 mrg Exp $
d20 1
a20 1
BFD_MACHINE_ARCH?=	${MACHINE_ARCH:S/armv7/arm/}
@


1.44
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2008/04/20 07:11:22 mrg Exp $
d20 4
a23 2
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
d31 1
a31 1
CPPFLAGS+=	-I${.CURDIR}/arch/${MACHINE_ARCH} -I${DIST}/include -I. \
@


1.43
log
@bump libbfd major since its ABI changed 2 weeks ago.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2007/04/08 09:56:02 scw Exp $
d57 1
a57 1
	sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@@
d61 1
a61 1
	sed -e s/NN/32/g < $> > $@@
d65 1
a65 1
	sed -e s/NN/64/g < $> > $@@
d69 1
a69 1
	sed -e s/NN/32/g < $> > $@@
d73 1
a73 1
	sed -e s/NN/64/g < $> > $@@
d77 1
a77 1
	sed -e s/XX/pe/g < $> > $@@
d81 1
a81 1
	sed -e s/XX/pep/g < $> > $@@
@


1.42
log
@Remove support for NetBSD/{,evb}sh5.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2006/02/03 16:29:34 christos Exp $
d25 1
a25 1
SHLIB_MAJOR=	8
@


1.42.10.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2007/04/08 09:56:02 scw Exp $
d25 1
a25 1
SHLIB_MAJOR=	9
@


1.41
log
@bump version!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2004/12/08 15:13:33 mrg Exp $
a48 6
# XXX
.if ${MACHINE_CPU} == "sh5"
COPTS.elf32.c=                -O1
COPTS.elf64.c=                -O1
.endif

@


1.41.6.1
log
@Sync w/ NetBSD-4-RC_1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41.4.1 2007/07/19 14:38:24 liamjfoy Exp $
d49 6
@


1.41.4.1
log
@Pull up following revision(s) (requested by soren in ticket #774):
	build.sh: revision 1.169
	gnu/usr.bin/gcc4/backend/Makefile: revision 1.9
	sys/arch/evbsh5/README: revision 1.1
	distrib/notes/common/contents: revision 1.124
	usr.sbin/ndbootd/ndbootd.c: revision 1.12
	gnu/lib/libopcodes/arch/sh3eb/defs.mk: revision 1.4
	gnu/lib/libbfd/arch/sh3eb/defs.mk: revision 1.8
	libexec/ld.elf_so/Makefile: revision 1.78
	gnu/dist/binutils/bfd/config.bfd: revision 1.14
	doc/HACKS: revision 1.93
	distrib/cdrom/current.conf: revision 1.8
	gnu/lib/libgcc4/Makefile.inc: revision 1.6
	share/mk/sys.mk: revision 1.90
	distrib/sets/lists/base/mi: revision 1.700
	libexec/ld.elf_so/rtld.c: revision 1.112
	distrib/sets/lists/base/mi: revision 1.702
	sys/arch/sh5/README: revision 1.1
	gnu/lib/libbfd/arch/sh3el/bfd.h: revision 1.7
	usr.sbin/traceroute/traceroute.c: revision 1.69
	distrib/notes/common/main: revision 1.330
	distrib/notes/common/list-setsizes.sh: revision 1.2
	sys/arch/Makefile: revision 1.35
	gnu/lib/libopcodes/arch/sh3el/defs.mk: revision 1.4
	gnu/lib/libbfd/arch/sh3el/defs.mk: revision 1.8
	share/mk/bsd.own.mk: revision 1.495
	gnu/lib/libbfd/arch/sh3eb/bfd.h: revision 1.7
	x11/lib/OSmesa/Makefile: revision 1.20
	sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.13
	gnu/dist/binutils/opcodes/configure.in: revision 1.2
	gnu/dist/binutils/opcodes/configure: revision 1.2
	gnu/usr.bin/send-pr/categories: revision 1.53
	etc/mtree/NetBSD.dist: revision 1.339
	sys/arch/README: revision 1.42
	lib/libc/gdtoa/Makefile.inc: revision 1.6
	usr.bin/crunch/crunchide/Makefile: revision 1.16
	sys/lkm/net/bsdcomp/Makefile: revision 1.5
	regress/sys/uvm/Makefile: revision 1.6
	etc/MAKEDEV.awk: revision 1.18
	x11/Xserver/GL/GLcore/Makefile.GLcore: revision 1.10
	sys/contrib/dev/ath/netbsd/Makefile.ath.inc: revision 1.14
	gnu/lib/libbfd/Makefile: revision 1.42
	doc/RESPONSIBLE: revision 1.78
Remove evbsh5.
@
text
@d1 1
a1 1
#	$NetBSD$
d49 6
@


1.40
log
@mknative for i386, sparc & sparc64 for binutils 2.15.
bump shlib.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2003/12/07 21:13:04 scw Exp $
d25 1
a25 1
SHLIB_MAJOR=	7
@


1.39
log
@Gcc3 for sh5 gets an ICE compiling libbfd's elf32.c and elf64.c at -O2.
Drop to -O1 for now when building for sh5.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2003/12/04 12:18:57 mrg Exp $
d25 1
a25 1
SHLIB_MAJOR=	6
@


1.38
log
@libopcodes.so.1/libbfd.so.6
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2003/12/04 09:29:31 mrg Exp $
d48 6
@


1.37
log
@build lib{opcodes,bfd,iberty} back in gnu/lib instead of gnu/usr.bin/binutils
as they are needed earlier than when gnu/usr.bin/binutils is built when
"make -j" is used.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2003/11/27 15:02:21 mrg Exp $
d25 1
a25 1
SHLIB_MAJOR=	5
@


1.36
log
@Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2003/10/19 14:52:03 lukem Exp $
d23 2
a26 2

DIST=		${NETBSDSRCDIR}/gnu/dist/toolchain
@


1.35
log
@Support MAKEVERBOSE.
Use BUILDSYMLINKS instead of home-grown equivalents.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2003/06/26 02:49:31 uwe Exp $
d56 1
a56 2
	${_MKMSGCREATE}
	${_MKCMD}\
d60 1
a60 2
	${_MKMSGCREATE}
	${_MKCMD}\
d64 1
a64 2
	${_MKMSGCREATE}
	${_MKCMD}\
d68 1
a68 2
	${_MKMSGCREATE}
	${_MKCMD}\
d72 1
a72 2
	${_MKMSGCREATE}
	${_MKCMD}\
d76 1
a76 2
	${_MKMSGCREATE}
	${_MKCMD}\
d80 1
a80 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.34
log
@When MKPIC is "no" and we force MKLINKLIB to "yes" to provide
something for BFD-using programs to link against, also provide an
empty libinstall target so that libbfd.a does not get installed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2003/04/09 22:33:26 thorpej Exp $
d56 2
d61 2
d66 2
d71 2
d76 2
d81 2
d86 2
@


1.33
log
@If MKPIC is "no", then we need to provide *something* for BFD-using
programs to link against, so reset MKLINKLIB to "yes" in that case.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2003/03/01 13:08:42 mrg Exp $
d11 2
a12 1
# *something* for BFD-using programs to link against.
d15 1
@


1.32
log
@update / regenerate for binutils 2.13.2.1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2002/09/17 23:18:32 thorpej Exp $
d9 6
@


1.31
log
@* Eliminate the USE_NEW_TOOLCHAIN variable.  Instead, split it into
  two variables:

  TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
  no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

  EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
  an external toolchain (e.g. /usr/local/gnu).  This enables the cross-build
  framework even for TOOLCHAIN_MISSING platforms.

  If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
  unconditionally set to "no", since the bits are not there to build.

  If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
  since the external toolchain's compiler is not in-sync with the
  in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
  that file can use it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2002/08/19 15:01:34 lukem Exp $
d15 1
a15 1
SHLIB_MAJOR=	4
d21 2
a22 2
CPPFLAGS+=	-I${.CURDIR}/arch/${MACHINE_ARCH} -I. \
		${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}
d25 2
a26 2
		${G_libbfd_la_DEPENDENCIES:M*.lo} ${G_BFD_MACHINES}
SRCS=		${GSRCS:.lo=.c} ${G_libopcodes_la_SOURCES}
d36 1
a36 1
.PATH: ${DIST}/bfd ${DIST}/opcodes ${DIST}/bfd/doc
@


1.30
log
@Explicitly move setting of NOxxx (et al) to the top of the Makefile
(before including <bsd.own.mk>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2002/08/19 09:46:39 lukem Exp $
a11 2
.if defined(USE_NEW_TOOLCHAIN)

a44 221
.endif

.else
#
# XXX - BEGIN - Old toolchain build goop - delete when everything migrated - XXX
#

SHLIB_MAJOR=	3
SHLIB_MINOR=	0

.if (${OBJECT_FMT} == "ELF") || defined(BOOTSTRAP_ELF)
ELF_PLEASE=
.endif

# XXX BFD_UNIFIED should go away if benchmarking shows minor to no difference
.if ${MKPIC} == "no" || !defined(BFD_UNIFIED)
BFD_SLIM=
.endif

.if (${MACHINE_ARCH} == "alpha") || \
    (${MACHINE_ARCH} == "sparc64")
BFD64=
CPPFLAGS += -DBFD_TARG_64
.endif

DIST=		${NETBSDSRCDIR}/gnu/dist

# generic bfd
SRCS=		archive.c archures.c bfd.c cache.c coffgen.c corefile.c \
		format.c init.c lib_bfd.c opncls.c reloc.c section.c syms.c \
		targets.c hash.c linker.c srec.c binary.c tekhex.c \
		ihex.c stabs.c stab-syms.c netbsd-core.c \
		dis-buf.c disassemble.c

# libiberty (yuck.)
SRCS+=		argv.c basename.c choose-temp.c concat.c cplus-dem.c \
		fdmatch.c fnmatch.c getopt.c getopt1.c getruntime.c hex.c \
		floatformat.c objalloc.c obstack.c pexecute.c spaces.c \
		strerror.c strsignal.c xatexit.c xexit.c xmalloc.c xstrdup.c \
		xstrerror.c insque.c

CPPFLAGS+= 	-DHAVE_CONFIG_H -I. -I${.CURDIR} \
		-I${DIST}/bfd -I${DIST}/opcodes -I${DIST}/include \
		${ARCHES:S/^/-DARCH_/} ${SELECT_VECS:S/^/-DHAVE_/} \
		-DSELECT_ARCHITECTURES="${ARCHES:S/^/,\&bfd_/:S/$/_arch/:S/^,//1}" \
		-DDEFAULT_VECTOR=${DEFAULT_VEC.${MACHINE_ARCH}} \
		-DSELECT_VECS="${SELECT_VECS:S/^/,\&/:S/^,//1}"

DPSRCS+=	bfd.h elf32-target.h elf64-target.h targmatch.h \
		elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
CLEANFILES+=	bfd.h elf32-target.h elf64-target.h targmatch.h \
		elf32-ia64.c elf64-ia64.c peigen.c pepigen.c

TEXINFO=	bfd.texinfo
INFOFLAGS=	-I${DIST}/bfd/doc
SELECT_VECS=	netbsd_core_vec

.PATH:		${DIST}/bfd ${DIST}/opcodes ${DIST}/libiberty ${DIST}/include \
		${DIST}/bfd/doc

bfd.h: bfd-in2.h bfd-h.sed
	sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.h} >$@@

##### alpha #####

.if defined(BFD64) && (${MACHINE_ARCH} == "alpha" || !defined(BFD_SLIM))
ARCHES+=		alpha
DEFAULT_VEC.alpha=	bfd_elf64_alpha_vec
SELECT_VECS+=		${DEFAULT_VEC.alpha} ecoffalpha_little_vec
SRCS+=			cpu-alpha.c elf64-alpha.c coff-alpha.c \
			alpha-dis.c alpha-opc.c ecoff.c ecofflink.c \
			elf64.c elf.c elflink.c dwarf2.c
.endif

##### arm32 #####

.if (${MACHINE_ARCH} == "arm32" || !defined(BFD_SLIM))
ARCHES+=		arm
DEFAULT_VEC.arm32=	armnetbsd_vec
SELECT_VECS+=		${DEFAULT_VEC.arm32}
SRCS+=			cpu-arm.c aout-arm32.c armnetbsd.c arm-dis.c
.endif

##### i386 #####

.if (${MACHINE_ARCH} == "i386" || !defined(BFD_SLIM))
ARCHES+=		i386
.if defined(ELF_PLEASE)
DEFAULT_VEC.i386=	bfd_elf32_i386_vec
SELECT_VECS+=		${DEFAULT_VEC.i386} i386netbsd_vec i386bsd_vec \
			i386freebsd_vec i386coff_vec
.else
DEFAULT_VEC.i386=	i386netbsd_vec
SELECT_VECS+=		${DEFAULT_VEC.i386} bfd_elf32_i386_vec i386bsd_vec \
			i386freebsd_vec i386coff_vec
.endif
SRCS+=			cpu-i386.c i386bsd.c i386freebsd.c i386netbsd.c \
			coff-i386.c elf32-i386.c i386-dis.c \
			aout32.c cofflink.c elf32.c elf.c elflink.c dwarf2.c \
			netbsdaout.c
.endif

##### m68k #####

.if (${MACHINE_ARCH} == "m68k" || !defined(BFD_SLIM))
ARCHES+=		m68k
.if defined(ELF_PLEASE)
DEFAULT_VEC.m68k=	bfd_elf32_m68k_vec
SELECT_VECS+=		${DEFAULT_VEC.m68k} m68knetbsd_vec \
			m68k4knetbsd_vec sunos_big_vec
.else
DEFAULT_VEC.m68k=	m68knetbsd_vec
SELECT_VECS+=		${DEFAULT_VEC.m68k} m68k4knetbsd_vec \
			bfd_elf32_m68k_vec sunos_big_vec
.endif
SRCS+=			cpu-m68k.c m68knetbsd.c m68k4knetbsd.c sunos.c \
			elf32-m68k.c m68k-dis.c m68k-opc.c \
			aout32.c elf32.c elf.c elflink.c dwarf2.c
.endif

##### mipse[bl] #####

.if (${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" || \
     !defined(BFD_SLIM))
ARCHES+=		mips
DEFAULT_VEC.mipseb=	bfd_elf32_bigmips_vec
DEFAULT_VEC.mipsel=	bfd_elf32_littlemips_vec
SELECT_VECS+=		${DEFAULT_VEC.mipseb} ${DEFAULT_VEC.mipsel} \
			ecoff_big_vec ecoff_little_vec # mipselnetbsd_vec
SRCS+=			cpu-mips.c elf32-mips.c coff-mips.c \
			mips-dis.c mips-opc.c mips16-opc.c \
			ecoff.c ecofflink.c elf32.c elf.c elflink.c dwarf2.c
#			mipselnetbsd.c aout32.c
.endif

##### ns32k #####

.if (${MACHINE_ARCH} == "ns32k" || !defined(BFD_SLIM))
ARCHES+=		ns32k
DEFAULT_VEC.ns32k=	pc532netbsd_vec
SELECT_VECS+=		${DEFAULT_VEC.ns32k}
SRCS+=			ns32knetbsd.c aout-ns32k.c cpu-ns32k.c ns32k-dis.c
.endif

##### powerpc #####

.if (${MACHINE_ARCH} == "powerpc" || !defined(BFD_SLIM))
ARCHES+=		powerpc
DEFAULT_VEC.powerpc=	bfd_elf32_powerpc_vec
SELECT_VECS+=		${DEFAULT_VEC.powerpc} bfd_elf32_powerpcle_vec \
				rs6000coff_vec
SRCS+=			cpu-powerpc.c elf32-ppc.c ppc-dis.c ppc-opc.c \
			elf32.c elf.c elflink.c dwarf2.c coff-rs6000.c \
			xcofflink.c
.endif

##### sh3 #####

.if (${MACHINE_ARCH} == "sh3eb" || ${MACHINE_ARCH} == "sh3el" || !defined(BFD_SLIM))
ARCHES+=		sh
.if defined(ELF_PLEASE)
DEFAULT_VEC.sh3eb=	bfd_elf32_shunx_vec
DEFAULT_VEC.sh3el=	bfd_elf32_shunx_vec
SELECT_VECS+=		${DEFAULT_VEC.sh3eb} ${DEFAULT_VEC.sh3el} \
			bfd_elf32_shlunx_vec shcoff_vec shlcoff_vec
.else
DEFAULT_VEC.sh3el=	shcoff_vec
DEFAULT_VEC.sh3eb=	shcoff_vec
SELECT_VECS+=		${DEFAULT_VEC.sh3eb} ${DEFAULT_VEC.sh3el} shlcoff_vec \
			bfd_elf32_shunx_vec bfd_elf32_shlunx_vec
.endif
SRCS+=			cpu-sh.c sh-dis.c \
			elf32-shunx.c elf32-sh.c elf32.c elf.c elflink.c \
			coff-sh.c cofflink.c coffgen.c dwarf2.c
.endif

##### sparc #####

.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
     !defined(BFD_SLIM))
ARCHES+=		sparc
.if (${MACHINE_ARCH} == "sparc") && defined(ELF_PLEASE)
DEFAULT_VEC.sparc=	bfd_elf32_sparc_vec
SELECT_VECS+=		${DEFAULT_VEC.sparc} ${DEFAULT_VEC.sparc64} \
			sunos_big_vec sparcnetbsd_vec
.else
DEFAULT_VEC.sparc=	sparcnetbsd_vec
SELECT_VECS+=		${DEFAULT_VEC.sparc} ${DEFAULT_VEC.sparc64} \
			sunos_big_vec bfd_elf32_sparc_vec
.endif
SRCS+=			cpu-sparc.c sparcnetbsd.c sunos.c elf32-sparc.c \
			sparc-dis.c sparc-opc.c \
			aout32.c elf32.c elf.c elflink.c dwarf2.c
.if defined(BFD64)
DEFAULT_VEC.sparc64=	bfd_elf64_sparc_vec
SRCS+=			elf64-sparc.c elf64.c
.endif
.endif

##### vax #####

.if (${MACHINE_ARCH} == "vax" || !defined(BFD_SLIM))
ARCHES+=		vax
DEFAULT_VEC.vax=	vaxnetbsd_vec
SELECT_VECS+=		${DEFAULT_VEC.vax} vaxcoff_vec
SRCS+=			cpu-vax.c vaxnetbsd.c vax-dis.c aout32.c coff-vax.c
.endif

# uniq-ify SRCS and SELECT_VECS

SRCS != (for i in ${SRCS}; do echo $$i; done) | sort | uniq
SELECT_VECS != (for i in ${SELECT_VECS}; do echo $$i; done) | sort | uniq

.include <bsd.info.mk>
.include <bsd.lib.mk>

${OBJS} ${SOBJS}: bfd.h elf32-target.h elf64-target.h
targets.o targets.so: targmatch.h Makefile
#
# XXX - END - Old toolchain build goop - delete when everything migrated - XXX
#
@


1.29
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../../some/path (etc).
(Reduces make output by ~ 20%)
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.28 2002/06/19 16:10:48 itojun Exp $

LIB=		bfd
d9 2
@


1.28
log
@add some items to CLEANFILES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2002/06/18 08:48:29 itojun Exp $
d20 1
a20 2
TOP=		${.CURDIR}/../..
DIST=		${TOP}/dist/toolchain
d72 1
a72 1
DIST=		${.CURDIR}/../../dist
@


1.27
log
@mistake in replacement for peXXigen.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2002/06/18 08:19:04 itojun Exp $
d31 4
a34 2
DPSRCS+=	elf32-target.h elf64-target.h targmatch.h
CLEANFILES+=	elf32-target.h elf64-target.h targmatch.h
d96 4
a99 2
DPSRCS+=	bfd.h elf32-target.h elf64-target.h targmatch.h
CLEANFILES+=	bfd.h elf32-target.h elf64-target.h targmatch.h
@


1.26
log
@add rules needed for full-feature libbfd.  usually not visited.

to build full-feature libbfd, do the following:
- add "--enable-targets=all --enable-64-bit-bfd" to
  src/tools/toolchain/Makefile configure arg
- invoke nbmake-<platform> native, to regenerate files under src/gnu
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2002/02/11 21:36:33 tv Exp $
d283 1
a283 1
	sed -e s/NN/pe/g < $> > $@@
d286 1
a286 1
	sed -e s/NN/pep/g < $> > $@@
@


1.25
log
@Skip building anything if the target's .mk files are missing.  (Allows the
toolchain to be built in segments, or not at all if the in-tree toolchain
is inappropriate for the target.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2001/12/12 01:48:57 tv Exp $
d275 12
@


1.24
log
@MKfoo=no -> NOfoo
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2001/09/21 15:38:15 tv Exp $
d14 1
d44 3
@


1.23
log
@Set SHLIB_{MAJOR,MINOR} explicitly instead of using shlib_version files.
(This currently means that checkver doesn't work with these libs, but that
will be fixed.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2001/08/19 14:19:38 mrg Exp $
d5 4
a8 4
MKLINKLIB=	no
MKLINT=		no
MKMAN=		no
MKPROFILE=	no
@


1.22
log
@build & install info documentation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2001/08/07 03:28:07 tv Exp $
d5 1
d16 2
a17 1
MKLINKLIB=	no
a47 1
MKPIC=		no	# XXX shlib version mismatch
d49 2
a50 3
.if ${MKPIC} != "no"
MKLINKLIB=	no
.endif
@


1.21
log
@Add MKPIC=no explicitly for old-toolchain build structure, to avoid shlib
version mismatch with new toolchain.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2001/08/06 15:47:17 tv Exp $
d31 4
a34 1
.PATH: ${DIST}/bfd ${DIST}/opcodes
d37 1
@


1.20
log
@BFD library for new toolchain.  Currently uses the non-unified layout; once
several architectures are available, I'll test and add the unified layout
bits.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2001/02/02 19:33:54 tsubai Exp $
d42 2
@


1.19
log
@sh3 --> sh3eb / sh3el.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2001/01/04 09:11:47 itojun Exp $
a8 1
# for MKPIC, BFD_SLIM, BFD_UNIFIED, OBJECT_FMT
d11 31
a96 9
targmatch.h: config.bfd targmatch.sed
	sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@@

elf32-target.h: elfxx-target.h
	sed -e s/NN/32/g < $> > $@@

elf64-target.h: elfxx-target.h
	sed -e s/NN/64/g < $> > $@@

d252 13
@


1.18
log
@sh3 split
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2001/01/04 09:10:25 itojun Exp $
d176 2
a177 2
SELECT_VECS+=		${DEFAULT_VEC.sh3} bfd_elf32_shlunx_vec \
			shcoff_vec shlcoff_vec
d181 1
a181 1
SELECT_VECS+=		${DEFAULT_VEC.sh3} shlcoff_vec \
@


1.17
log
@sh3 split
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2000/05/20 20:30:48 kristerw Exp $
d174 2
a175 1
DEFAULT_VEC.sh3=	bfd_elf32_shunx_vec
d179 2
a180 1
DEFAULT_VEC.sh3=	shcoff_vec
@


1.16
log
@Added netbsdaout.c for i386
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2000/03/27 19:15:32 msaitoh Exp $
d171 1
a171 1
.if (${MACHINE_ARCH} == "sh3" || !defined(BFD_SLIM))
@


1.15
log
@set MKLINKLIB = "no" only if ${MKPIC} != "no"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2000/01/11 05:48:30 matt Exp $
d111 2
a112 1
			aout32.c cofflink.c elf32.c elf.c elflink.c dwarf2.c
@


1.14
log
@Add rudimentry VAX COFF support.  enough so objdump, size, nm, etc. are happy
but no near enough for gas or ld.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1999/12/26 19:48:01 msaitoh Exp $
a7 1
MKLINKLIB=	no
d11 4
@


1.13
log
@libbfd for NetBSD/sh3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/11/23 02:08:03 wrstuden Exp $
d211 2
a212 2
SELECT_VECS+=		${DEFAULT_VEC.vax}
SRCS+=			cpu-vax.c vaxnetbsd.c vax-dis.c aout32.c
@


1.12
log
@Add rs6000coff_vec, which adds aixcoff-rs6000 support. Used with fixcoff.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1999/08/01 04:25:39 sommerfeld Exp $
d163 18
@


1.11
log
@If target is BFD64, define -DBFD_TARG_64 on command line.
If BFD_TARG_64 is defined, set BFD_ARCH_SIZE to 64 even on 32-bit platforms.
(BFD_ARCH_SIZE is an attribute of the target, not (just) the host platform)

This is intended for building 32bit->64bit cross libbfd's (e.g.,
x86->alpha or x86->sparc64)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1999/04/30 14:41:38 kleink Exp $
d158 2
a159 1
SELECT_VECS+=		${DEFAULT_VEC.powerpc} bfd_elf32_powerpcle_vec
d161 2
a162 1
			elf32.c elf.c elflink.c dwarf2.c
@


1.11.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/11/23 02:08:03 wrstuden Exp $
d158 1
a158 2
SELECT_VECS+=		${DEFAULT_VEC.powerpc} bfd_elf32_powerpcle_vec \
				rs6000coff_vec
d160 1
a160 2
			elf32.c elf.c elflink.c dwarf2.c coff-rs6000.c \
			xcofflink.c
@


1.10
log
@Shuffle around vectors for ELF on m68k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1999/03/17 00:46:35 thorpej Exp $
d25 1
@


1.9
log
@Make it a tad bit easier to bootstrap an a.out system to ELF.  Introduce
a BOOTSTRAP_ELF Makefile variable that, when set (e.g. in the environment),
builds a targeted-to-ELF toolchain without requiring OBJECT_FMT to be set
to "ELF" (which affects how e.g. libraries are built).

This basically means you don't need fake crtbegin.o and crtend.o files to
be present in /usr/lib while bootstrapping the toolchain.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1999/03/07 10:43:59 ragge Exp $
d114 5
d122 1
@


1.8
log
@DEFUALT_VEC -> DEFAULT_VEC. Thanks, Ken Wellsch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1999/03/03 13:23:34 tv Exp $
d10 1
a10 1
# for MKPIC, BFD_SLIM, BFD_UNIFIED
d13 4
d96 5
d104 1
d161 5
d169 1
@


1.7
log
@Turn off the mipselnetbsd a.out vector, for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1999/02/26 22:53:14 tv Exp $
d167 1
a167 1
DEFUALT_VEC.vax=	vaxnetbsd_vec
@


1.6
log
@We also want to read core files.  (oops.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1999/02/24 17:17:29 drochner Exp $
d120 1
a120 1
			ecoff_big_vec ecoff_little_vec mipselnetbsd_vec
d123 2
a124 2
			ecoff.c ecofflink.c elf32.c elf.c elflink.c dwarf2.c \
			mipselnetbsd.c aout32.c
@


1.5
log
@${MACHINE_ARCH} == "mips" loses anyway, so remove this case
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1999/02/13 02:54:22 lukem Exp $
d51 1
@


1.4
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1999/02/11 17:37:34 tv Exp $
d113 1
a113 2
.if (${MACHINE_ARCH} == "mips" || \
     ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" || \
a115 1
DEFAULT_VEC.mips=	bfd_elf32_littlemips_vec # compatibility
@


1.3
log
@Add Texinfo doc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1999/02/10 17:53:50 tv Exp $
d5 4
a8 4
NOLINT=		nolint (GNU source)
NOMAN=
NOPROFILE=
NOLINKLIB=
d10 1
a10 1
# for NOPIC, BFD_SLIM, BFD_UNIFIED
d14 1
a14 1
.if defined(NOPIC) || !defined(BFD_UNIFIED)
@


1.2
log
@Add "mipselnetbsd_vec" to mipse[bl].
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1999/02/09 15:57:53 tv Exp $
d49 5
a53 1
.PATH:		${DIST}/bfd ${DIST}/opcodes ${DIST}/libiberty ${DIST}/include
d178 1
@


1.1
log
@Move libbfd compile environment to "libbfd" subdir, with the changes:
- no includes are installed any more, nor any .a libraries
- a unified libbfd can be built if BFD_UNIFIED is set in mk.conf (will
  support dumping/examining objects from all NetBSD architectures of equal
  or lesser pointer size)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1999/02/02 22:16:57 tv Exp $
d117 1
a117 1
			ecoff_big_vec ecoff_little_vec
d120 2
a121 1
			ecoff.c ecofflink.c elf32.c elf.c elflink.c dwarf2.c
@
