head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.24
	perseant-exfatfs-base:1.8
	cjep_sun2x:1.8.0.22
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.20
	cjep_staticlib_x-base:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	phil-wifi-20200406:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	pgoyette-compat:1.8.0.18
	pgoyette-compat-base:1.8
	perseant-stdc-iso10646:1.8.0.16
	perseant-stdc-iso10646-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.14
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	bouyer-socketcan:1.8.0.12
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	pgoyette-localcount-20161104:1.8
	localcount-20160914:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.10
	pgoyette-localcount-base:1.8
	netbsd-5-2-3-RELEASE:1.6
	netbsd-5-1-5-RELEASE:1.6
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	tls-earlyentropy:1.8.0.6
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-5-2-2-RELEASE:1.6
	netbsd-5-1-4-RELEASE:1.6
	netbsd-5-2-1-RELEASE:1.6
	netbsd-5-1-3-RELEASE:1.6
	agc-symver:1.8.0.8
	agc-symver-base:1.8
	tls-maxphys-base:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.6.0.50
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.6
	netbsd-5-2-RC1:1.6
	yamt-pagecache-base6:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-5-1-2-RELEASE:1.6
	netbsd-5-1-1-RELEASE:1.6
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.4
	yamt-pagecache-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.2
	bouyer-quota2-base:1.8
	matt-nb5-mips64-premerge-20101231:1.6
	matt-nb5-pq3:1.6.0.48
	matt-nb5-pq3-base:1.6
	netbsd-5-1:1.6.0.46
	netbsd-5-1-RELEASE:1.6
	netbsd-5-1-RC4:1.6
	matt-nb5-mips64-k15:1.6
	netbsd-5-1-RC3:1.6
	netbsd-5-1-RC2:1.6
	netbsd-5-1-RC1:1.6
	netbsd-5-0-2-RELEASE:1.6
	matt-nb5-mips64-premerge-20091211:1.6
	matt-premerge-20091211:1.6
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.6
	matt-nb4-mips64-k7-u2a-k9b:1.6
	matt-nb5-mips64-u1-k1-k5:1.6
	matt-nb5-mips64:1.6.0.44
	netbsd-5-0-1-RELEASE:1.6
	jym-xensuspend-nbase:1.6
	netbsd-5-0:1.6.0.42
	netbsd-5-0-RELEASE:1.6
	netbsd-5-0-RC4:1.6
	netbsd-5-0-RC3:1.6
	netbsd-5-0-RC2:1.6
	jym-xensuspend:1.6.0.40
	jym-xensuspend-base:1.6
	netbsd-5-0-RC1:1.6
	netbsd-5:1.6.0.38
	netbsd-5-base:1.6
	matt-mips64-base2:1.6
	matt-mips64:1.6.0.36
	mjf-devfs2:1.6.0.34
	mjf-devfs2-base:1.6
	netbsd-4-0-1-RELEASE:1.6
	wrstuden-revivesa-base-3:1.6
	wrstuden-revivesa-base-2:1.6
	wrstuden-fixsa-newbase:1.6
	wrstuden-revivesa-base-1:1.6
	yamt-pf42-base4:1.6
	yamt-pf42-base3:1.6
	hpcarm-cleanup-nbase:1.6
	yamt-pf42-baseX:1.6
	yamt-pf42-base2:1.6
	wrstuden-revivesa:1.6.0.32
	wrstuden-revivesa-base:1.6
	yamt-pf42:1.6.0.30
	yamt-pf42-base:1.6
	keiichi-mipv6:1.6.0.28
	keiichi-mipv6-base:1.6
	matt-armv6-nbase:1.6
	matt-armv6-prevmlocking:1.6
	wrstuden-fixsa-base-1:1.6
	netbsd-4-0:1.6.0.26
	netbsd-4-0-RELEASE:1.6
	cube-autoconf:1.6.0.24
	cube-autoconf-base:1.6
	netbsd-4-0-RC5:1.6
	netbsd-4-0-RC4:1.6
	netbsd-4-0-RC3:1.6
	netbsd-4-0-RC2:1.6
	netbsd-4-0-RC1:1.6
	matt-armv6:1.6.0.22
	matt-armv6-base:1.6
	matt-mips64-base:1.6
	hpcarm-cleanup:1.6.0.20
	hpcarm-cleanup-base:1.6
	netbsd-3-1-1-RELEASE:1.6
	netbsd-3-0-3-RELEASE:1.6
	wrstuden-fixsa:1.6.0.18
	wrstuden-fixsa-base:1.6
	abandoned-netbsd-4-base:1.6
	abandoned-netbsd-4:1.6.0.12
	netbsd-3-1:1.6.0.14
	netbsd-3-1-RELEASE:1.6
	netbsd-3-0-2-RELEASE:1.6
	netbsd-3-1-RC4:1.6
	netbsd-3-1-RC3:1.6
	netbsd-3-1-RC2:1.6
	netbsd-3-1-RC1:1.6
	netbsd-4:1.6.0.16
	netbsd-4-base:1.6
	netbsd-3-0-1-RELEASE:1.6
	netbsd-3-0:1.6.0.10
	netbsd-3-0-RELEASE:1.6
	netbsd-3-0-RC6:1.6
	netbsd-3-0-RC5:1.6
	netbsd-3-0-RC4:1.6
	netbsd-3-0-RC3:1.6
	netbsd-3-0-RC2:1.6
	netbsd-3-0-RC1:1.6
	netbsd-2-0-3-RELEASE:1.6
	netbsd-2-1:1.6.0.8
	netbsd-2-1-RELEASE:1.6
	netbsd-2-1-RC6:1.6
	netbsd-2-1-RC5:1.6
	netbsd-2-1-RC4:1.6
	netbsd-2-1-RC3:1.6
	netbsd-2-1-RC2:1.6
	netbsd-2-1-RC1:1.6
	netbsd-2-0-2-RELEASE:1.6
	netbsd-3:1.6.0.6
	netbsd-3-base:1.6
	netbsd-2-0-1-RELEASE:1.6
	netbsd-2:1.6.0.4
	netbsd-2-base:1.6
	netbsd-2-0-RELEASE:1.6
	netbsd-2-0-RC5:1.6
	netbsd-2-0-RC4:1.6
	netbsd-2-0-RC3:1.6
	netbsd-2-0-RC2:1.6
	netbsd-2-0-RC1:1.6
	netbsd-2-0:1.6.0.2
	netbsd-2-0-base:1.6
	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
	netbsd-1-5-PATCH003:1.4.2.2
	netbsd-1-5:1.4.0.2;
locks; strict;
comment	@# @;


1.8
date	2010.07.17.19.29.36;	author jmmv;	state dead;
branches;
next	1.7;

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

1.6
date	2003.12.23.19.29.11;	author junyoung;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.12.01.24.12;	author tv;	state Exp;
branches;
next	1.4;

1.4
date	2001.08.06.02.25.57;	author lukem;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2001.07.17.15.24.27;	author simonb;	state Exp;
branches;
next	1.2;

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

1.1
date	2001.07.17.03.41.03;	author thorpej;	state Exp;
branches;
next	;

1.4.2.1
date	2001.08.06.02.25.57;	author he;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2001.12.09.17.27.17;	author he;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Remove the lib/csu/ and include/ tests; they have been converted to atf.
@
text
@#	$NetBSD: Makefile,v 1.7 2010/07/06 05:59:56 mrg Exp $

NOMAN=		# defined

.include <bsd.own.mk>

.if exists(arch/${MACHINE_CPU}/initfini_asm.S)
PROG=		initfini
SRCS=		initfini.c initfini_asm.S
WARNS?=		1
CLEANFILES+=	output

.PATH:		${.CURDIR}/arch/${MACHINE_CPU}

regress: ${PROG}
	@@./${PROG} > output
	@@if ! cmp -s ${.CURDIR}/expected output; then \
		echo "FAILED"; \
	else \
		echo "PASSED"; \
	fi
.else
regress:
	@@echo "FAILED -- asm stub not written for ${MACHINE_CPU}"
.endif

.include <bsd.prog.mk>
@


1.7
log
@remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2003/12/23 19:29:11 junyoung Exp $
@


1.6
log
@Fix regression failure due to missing dependency.

From Jorge Acereda via PR bin/23664.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2001/12/12 01:24:12 tv Exp $
a6 2
.if (${OBJECT_FMT} == "ELF")

a26 2
.endif

@


1.5
log
@MKfoo=no -> NOfoo
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2001/08/06 02:25:57 lukem Exp $
d17 2
a18 2
regress:
	@@./initfini > output
@


1.4
log
@only run this if (${OBJECT_FMT} == "ELF")
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.3 2001/07/17 15:24:27 simonb Exp $
a6 2
MKMAN=no

d10 4
a13 6
PROG=	initfini
SRCS=	initfini.c initfini_asm.S

WARNS?=	1

CLEANFILES+= output
d15 1
a15 1
.PATH: ${.CURDIR}/arch/${MACHINE_CPU}
@


1.4.2.1
log
@file Makefile was added on branch netbsd-1-5 on 2001-12-09 17:27:17 +0000
@
text
@d1 33
@


1.4.2.2
log
@Pull up revisions 1.1-1.4 (new, requested by skrll):
  Add init/fini section support in crtbegin and crtend, and introduce
  support for DWARF2 exception handling.  Fixes PR#12865, PR#13488,
  PR#13489, and PR#13491.  Also fix ld.elf_so to deal appropriately.
@
text
@a0 33
#	$NetBSD: Makefile,v 1.4.2.1 2001/12/09 17:27:17 he Exp $

.include <bsd.own.mk>

MKMAN=no

.if (${OBJECT_FMT} == "ELF")

.if exists(arch/${MACHINE_CPU}/initfini_asm.S)
PROG=	initfini
SRCS=	initfini.c initfini_asm.S

WARNS?=	1

CLEANFILES+= output

.PATH: ${.CURDIR}/arch/${MACHINE_CPU}

regress:
	@@./initfini > output
	@@if ! cmp -s ${.CURDIR}/expected output; then \
		echo "FAILED"; \
	else \
		echo "PASSED"; \
	fi
.else
regress:
	@@echo "FAILED -- asm stub not written for ${MACHINE_CPU}"
.endif

.endif

.include <bsd.prog.mk>
@


1.3
log
@Drop the .abicalls and .cp* magic; fixes .init/.fini test case on mips.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2001/07/17 05:40:28 thorpej Exp $
d7 2
d29 2
@


1.2
log
@Make this work on the MIPS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/07/17 03:41:03 thorpej Exp $
a15 4

.if (${MACHINE_CPU} == "mips")
AFLAGS+= -fPIC
.endif
@


1.1
log
@Regression test for .init/.fini.
@
text
@d1 3
a3 1
#	$NetBSD$
d7 1
a7 1
.if exists(arch/${MACHINE_ARCH}/initfini_asm.S)
d15 5
a19 1
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
d30 1
a30 1
	@@echo "FAILED -- asm stub not written for ${MACHINE_ARCH}"
@
