head	1.16;
access;
symbols
	perseant-exfatfs-base-20250801:1.16
	perseant-exfatfs-base-20240630:1.16
	perseant-exfatfs:1.16.0.140
	perseant-exfatfs-base:1.16
	bouyer-sunxi-drm:1.16.0.138
	bouyer-sunxi-drm-base:1.16
	cjep_sun2x:1.16.0.136
	cjep_sun2x-base:1.16
	cjep_staticlib_x-base1:1.16
	cjep_staticlib_x:1.16.0.134
	cjep_staticlib_x-base:1.16
	thorpej-futex-base:1.16
	bouyer-xenpvh-base2:1.16
	phil-wifi-20200421:1.16
	bouyer-xenpvh-base1:1.16
	phil-wifi-20200411:1.16
	bouyer-xenpvh:1.16.0.132
	bouyer-xenpvh-base:1.16
	phil-wifi-20200406:1.16
	ad-namecache-base3:1.16
	ad-namecache-base2:1.16
	ad-namecache-base1:1.16
	ad-namecache:1.16.0.130
	ad-namecache-base:1.16
	isaki-audio2:1.16.0.128
	isaki-audio2-base:1.16
	pgoyette-compat-merge-20190127:1.16
	pgoyette-compat-20190127:1.16
	pgoyette-compat-20190118:1.16
	pgoyette-compat-1226:1.16
	pgoyette-compat-1126:1.16
	pgoyette-compat-1020:1.16
	pgoyette-compat-0930:1.16
	pgoyette-compat-0906:1.16
	pgoyette-compat-0728:1.16
	pgoyette-compat-0625:1.16
	pgoyette-compat-0521:1.16
	pgoyette-compat-0502:1.16
	pgoyette-compat-0422:1.16
	pgoyette-compat-0415:1.16
	pgoyette-compat-0407:1.16
	pgoyette-compat-0330:1.16
	pgoyette-compat-0322:1.16
	pgoyette-compat-0315:1.16
	pgoyette-compat:1.16.0.8
	pgoyette-compat-base:1.16
	perseant-stdc-iso10646:1.16.0.126
	perseant-stdc-iso10646-base:1.16
	prg-localcount2-base3:1.16
	prg-localcount2-base2:1.16
	prg-localcount2-base1:1.16
	prg-localcount2:1.16.0.124
	prg-localcount2-base:1.16
	pgoyette-localcount-20170426:1.16
	bouyer-socketcan-base1:1.16
	pgoyette-localcount-20170320:1.16
	bouyer-socketcan:1.16.0.122
	bouyer-socketcan-base:1.16
	pgoyette-localcount-20170107:1.16
	pgoyette-localcount-20161104:1.16
	localcount-20160914:1.16
	pgoyette-localcount-20160806:1.16
	pgoyette-localcount-20160726:1.16
	pgoyette-localcount:1.16.0.120
	pgoyette-localcount-base:1.16
	netbsd-5-2-3-RELEASE:1.16
	netbsd-5-1-5-RELEASE:1.16
	yamt-pagecache-base9:1.16
	yamt-pagecache-tag8:1.16
	tls-earlyentropy:1.16.0.118
	tls-earlyentropy-base:1.16
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.16
	riastradh-drm2-base3:1.16
	netbsd-5-2-2-RELEASE:1.16
	netbsd-5-1-4-RELEASE:1.16
	netbsd-5-2-1-RELEASE:1.16
	netbsd-5-1-3-RELEASE:1.16
	rmind-smpnet-nbase:1.16
	rmind-smpnet:1.16.0.114
	rmind-smpnet-base:1.16
	agc-symver:1.16.0.116
	agc-symver-base:1.16
	tls-maxphys-base:1.16
	yamt-pagecache-base8:1.16
	netbsd-5-2:1.16.0.112
	yamt-pagecache-base7:1.16
	netbsd-5-2-RELEASE:1.16
	netbsd-5-2-RC1:1.16
	yamt-pagecache-base6:1.16
	yamt-pagecache-base5:1.16
	yamt-pagecache-base4:1.16
	netbsd-5-1-2-RELEASE:1.16
	netbsd-5-1-1-RELEASE:1.16
	jmcneill-usbmp:1.16.0.110
	jmcneill-usbmp-base:1.16
	jmcneill-audiomp3:1.16.0.108
	jmcneill-audiomp3-base:1.16
	yamt-pagecache-base3:1.16
	yamt-pagecache-base2:1.16
	yamt-pagecache:1.16.0.106
	yamt-pagecache-base:1.16
	rmind-uvmplock-nbase:1.16
	jym-xensuspend-nbase:1.16
	bouyer-quota2-nbase:1.16
	bouyer-quota2:1.16.0.104
	bouyer-quota2-base:1.16
	jruoho-x86intr:1.16.0.102
	jruoho-x86intr-base:1.16
	matt-nb5-pq3:1.16.0.100
	matt-nb5-pq3-base:1.16
	netbsd-5-1:1.16.0.98
	netbsd-5-1-RELEASE:1.16
	yamt-nfs-mp-base11:1.16
	netbsd-5-1-RC4:1.16
	uebayasi-xip-base2:1.16
	yamt-nfs-mp-base10:1.16
	netbsd-5-1-RC3:1.16
	netbsd-5-1-RC2:1.16
	netbsd-5-1-RC1:1.16
	rmind-uvmplock:1.16.0.96
	rmind-uvmplock-base:1.16
	yamt-nfs-mp-base9:1.16
	uebayasi-xip:1.16.0.94
	uebayasi-xip-base:1.16
	netbsd-5-0-2-RELEASE:1.16
	yamt-nfs-mp-base8:1.16
	yamt-nfs-mp-base7:1.16
	netbsd-5-0-1-RELEASE:1.16
	jymxensuspend-base:1.16
	yamt-nfs-mp-base6:1.16
	yamt-nfs-mp-base5:1.16
	yamt-nfs-mp-base4:1.16
	yamt-nfs-mp-base3:1.16
	netbsd-5-0:1.16.0.92
	netbsd-5-0-RELEASE:1.16
	netbsd-5-0-RC4:1.16
	netbsd-5-0-RC3:1.16
	netbsd-5-0-RC2:1.16
	jym-xensuspend:1.16.0.90
	jym-xensuspend-base:1.16
	netbsd-5-0-RC1:1.16
	haad-dm-base2:1.16
	haad-nbase2:1.16
	ad-audiomp2:1.16.0.88
	ad-audiomp2-base:1.16
	netbsd-5:1.16.0.86
	netbsd-5-base:1.16
	haad-dm-base1:1.16
	haad-dm:1.16.0.84
	haad-dm-base:1.16
	simonb-wapbl-nbase:1.16
	yamt-pf42-base4:1.16
	simonb-wapbl:1.16.0.82
	simonb-wapbl-base:1.16
	yamt-pf42-base3:1.16
	hpcarm-cleanup-nbase:1.16
	yamt-pf42-base2:1.16
	yamt-nfs-mp-base2:1.16
	yamt-nfs-mp:1.16.0.80
	yamt-nfs-mp-base:1.16
	yamt-pf42:1.16.0.78
	yamt-pf42-base:1.16
	ad-socklock-base1:1.16
	yamt-lazymbuf-base15:1.16
	yamt-lazymbuf-base14:1.16
	keiichi-mipv6-nbase:1.16
	mjf-devfs2:1.16.0.76
	mjf-devfs2-base:1.16
	keiichi-mipv6:1.16.0.74
	keiichi-mipv6-base:1.16
	bouyer-xeni386-merge1:1.16
	vmlocking2-base3:1.16
	bouyer-xeni386-nbase:1.16
	yamt-kmem-base3:1.16
	cube-autoconf:1.16.0.72
	cube-autoconf-base:1.16
	yamt-kmem-base2:1.16
	bouyer-xeni386:1.16.0.70
	bouyer-xeni386-base:1.16
	yamt-kmem:1.16.0.68
	yamt-kmem-base:1.16
	vmlocking2-base2:1.16
	reinoud-bufcleanup-nbase:1.16
	vmlocking2:1.16.0.66
	vmlocking2-base1:1.16
	jmcneill-base:1.16
	mjf-devfs:1.16.0.64
	mjf-devfs-base:1.16
	bouyer-xenamd64-base2:1.16
	vmlocking-nbase:1.16
	yamt-x86pmap-base4:1.16
	bouyer-xenamd64:1.16.0.62
	bouyer-xenamd64-base:1.16
	yamt-x86pmap-base3:1.16
	yamt-x86pmap-base2:1.16
	yamt-x86pmap:1.16.0.60
	yamt-x86pmap-base:1.16
	jmcneill-pm:1.16.0.58
	jmcneill-pm-base:1.16
	hpcarm-cleanup:1.16.0.56
	hpcarm-cleanup-base:1.16
	mjf-ufs-trans-base:1.16
	yamt-idlelwp-base8:1.16
	ppcoea-renovation:1.16.0.54
	ppcoea-renovation-base:1.16
	reinoud-bufcleanup-base:1.16
	vmlocking:1.16.0.52
	vmlocking-base:1.16
	ad-audiomp:1.16.0.50
	ad-audiomp-base:1.16
	yamt-idlelwp:1.16.0.48
	post-newlock2-merge:1.16
	newlock2-nbase:1.16
	yamt-splraiseipl-base5:1.16
	yamt-splraiseipl-base4:1.16
	yamt-splraiseipl-base3:1.16
	yamt-splraiseipl-base2:1.16
	yamt-splraiseipl:1.16.0.46
	yamt-splraiseipl-base:1.16
	newlock2:1.16.0.44
	newlock2-base:1.16
	yamt-pdpolicy-base8:1.16
	yamt-pdpolicy-base7:1.16
	yamt-pdpolicy-base6:1.16
	gdamore-uart:1.16.0.42
	gdamore-uart-base:1.16
	simonb-timcounters-final:1.16
	yamt-pdpolicy-base5:1.16
	elad-kernelauth-nbase:1.16
	yamt-pdpolicy-base4:1.16
	yamt-pdpolicy-base3:1.16
	yamt-pdpolicy-base2:1.16
	yamt-pdpolicy:1.16.0.40
	yamt-pdpolicy-base:1.16
	yamt-uio_vmspace-base5:1.16
	simonb-timecounters:1.16.0.38
	simonb-timecounters-base:1.16
	rpaulo-netinet-merge-pcb:1.16.0.36
	rpaulo-netinet-merge-pcb-base:1.16
	yamt-uio_vmspace:1.16.0.34
	yamt-readahead-base3:1.16
	yamt-readahead-base2:1.16
	yamt-readahead:1.16.0.32
	yamt-readahead-base:1.16
	yamt-vop-base3:1.16
	yamt-vop-base2:1.16
	thorpej-vnode-attr:1.16.0.30
	thorpej-vnode-attr-base:1.16
	yamt-vop:1.16.0.28
	yamt-vop-base:1.16
	yamt-lazymbuf:1.16.0.26
	yamt-km-base4:1.16
	yamt-km-base3:1.16
	yamt-km-base2:1.16
	yamt-km:1.16.0.24
	yamt-km-base:1.16
	kent-audio2:1.16.0.22
	kent-audio2-base:1.16
	ktrace-lwp:1.16.0.20
	ktrace-lwp-base:1.16
	nathanw_sa_before_merge:1.16
	gmcgarry_ctxsw:1.16.0.18
	gmcgarry_ctxsw_base:1.16
	gmcgarry_ucred:1.16.0.16
	gmcgarry_ucred_base:1.16
	nathanw_sa_base:1.16
	gehenna-devsw:1.16.0.14
	gehenna-devsw-base:1.16
	eeh-devprop:1.16.0.12
	eeh-devprop-base:1.16
	newlock:1.16.0.10
	newlock-base:1.16
	ifpoll-base:1.16
	thorpej-mips-cache:1.16.0.6
	thorpej-mips-cache-base:1.16
	thorpej-devvp:1.16.0.4
	thorpej-devvp-base:1.16
	kqueue:1.16.0.2
	kqueue-base:1.16
	thorpej_scsipi_beforemerge:1.16
	thorpej_scsipi_nbase:1.16
	netbsd-1-4-PATCH003:1.14
	netbsd-1-4-PATCH002:1.14
	chs-ubc2-newbase:1.16
	wrstuden-devbsize:1.15.0.8
	wrstuden-devbsize-base:1.15
	kame_141_19991130:1.14
	comdex-fall-1999:1.15.0.6
	comdex-fall-1999-base:1.15
	fvdl-softdep:1.15.0.4
	fvdl-softdep-base:1.15
	thorpej_scsipi:1.15.0.2
	thorpej_scsipi_base:1.16
	netbsd-1-4-PATCH001:1.14
	kame_14_19990705:1.14
	kame_14_19990628:1.14
	kame:1.14.0.6
	chs-ubc2:1.14.0.4
	chs-ubc2-base:1.15
	netbsd-1-4-RELEASE:1.14
	netbsd-1-4:1.14.0.2
	netbsd-1-4-base:1.14
	netbsd-1-3:1.3.0.2;
locks; strict;
comment	@# @;


1.16
date	99.11.27.03.54.43;	author simonb;	state dead;
branches;
next	1.15;

1.15
date	99.04.11.04.28.14;	author simonb;	state Exp;
branches
	1.15.2.1
	1.15.8.1;
next	1.14;

1.14
date	99.04.01.08.47.38;	author simonb;	state Exp;
branches
	1.14.4.1;
next	1.13;

1.13
date	99.04.01.06.05.05;	author simonb;	state Exp;
branches;
next	1.12;

1.12
date	99.03.31.07.43.39;	author simonb;	state Exp;
branches;
next	1.11;

1.11
date	99.03.31.07.23.28;	author simonb;	state Exp;
branches;
next	1.10;

1.10
date	99.03.31.04.30.11;	author simonb;	state Exp;
branches;
next	1.9;

1.9
date	99.03.27.07.17.51;	author simonb;	state Exp;
branches;
next	1.8;

1.8
date	99.03.25.12.26.32;	author simonb;	state Exp;
branches;
next	1.7;

1.7
date	99.03.14.00.57.06;	author simonb;	state Exp;
branches;
next	1.6;

1.6
date	99.02.24.13.54.54;	author simonb;	state Exp;
branches;
next	1.5;

1.5
date	99.02.22.10.53.13;	author simonb;	state Exp;
branches;
next	1.4;

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

1.3
date	99.01.22.14.05.06;	author simonb;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	99.01.21.14.16.52;	author simonb;	state Exp;
branches;
next	1.1;

1.1
date	99.01.21.12.33.45;	author simonb;	state Exp;
branches;
next	;

1.15.2.1
date	2000.11.20.22.17.06;	author bouyer;	state dead;
branches;
next	;

1.15.8.1
date	99.12.27.18.33.35;	author wrstuden;	state dead;
branches;
next	;

1.14.4.1
date	99.06.21.00.59.13;	author thorpej;	state Exp;
branches;
next	;

1.3.2.1
date	99.01.22.14.05.06;	author cgd;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	99.02.02.06.25.02;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.16
log
@Remove the remaining files in scsiboot directory.  The other files in
this directory were moved to ../common via a CVS repository copy.
@
text
@#	$NetBSD: Makefile,v 1.15 1999/04/11 04:28:14 simonb Exp $
#	@@(#)Makefile	8.3 (Berkeley) 2/16/94

S=	${.CURDIR}/../../../..

PROG=	bootxx
RELOC=	80700000	# Room for an almost 7MB kernel
VERS_O=			# no version info in first stage

SRCS=	start.S bootxx.c clear_cache.S printf.S strcmp.S strcpy.S \
	strlen.S

CLEANFILES+=${PROG}.aout ${PROG}.map mkboot ${ALL}
.PATH:  ${.CURDIR}/../lib

# Don't compile in sanity checks for old file systems.
SAMISCCPPFLAGS=	-DLIBSA_NO_COMPAT_UFS

BOOTDEFADD+=	-DBOOTRZ -DSMALL -DRELOC=0x${RELOC} \
		-DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_WRITE \
		-DLIBSA_NO_DEV_CLOSE -DLIBSA_NO_DEV_IOCTL \
		-DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_TWIDDLE \
		-DALLOC_FIRST_FIT \
		-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
# The following will gain more space if needed (in rough order of
# preference):
# -DLIBSA_SINGLE_FILESYSTEM=ufs
# -DLIBSA_SINGLE_DEVICE=rz -D"rzioctl(x,y,z)=EINVAL" -D"rzclose(f)=0"
# -DLIBSA_FS_SINGLECOMPONENT
# -DLIBSA_NO_DISKLABEL_MSGS
# Also possible to save space:
#  + Remove disklabel support.
#  + Change alloc() to always allocate past "top", and don't worry
#    about free().  At the moment, there's only about 50kB alloc()'d.


ALL=	rzboot bootrz

all:	${ALL}

${PROG}.aout: ${PROG}
	elf2aout ${PROG} ${PROG}.aout

mkboot:	${.CURDIR}/mkboot.c
	${CC} ${CPPFLAGS} -I${DESTDIR}/usr/include -o mkboot ${.IMPSRC}

rzboot bootrz: ${PROG}.aout mkboot
	./mkboot ${PROG}.aout rzboot bootrz

proginstall:: bootrz rzboot
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.ALLSRC} ${DESTDIR}${BINDIR}

# .include <bsd.prog.mk>
.include "../Makefile.booters"
@


1.15
log
@Use BOOTRZ instead of BOOTXX.
Add -DLIBSA_NO_DEV_IOCTL.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1999/04/01 08:47:38 simonb Exp $
@


1.15.2.1
log
@Remove files that are no longer on the trunck
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1999/04/11 04:28:14 simonb Exp $
@


1.15.8.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1999/04/11 04:28:14 simonb Exp $
@


1.14
log
@Mention a few other (not implemented) space saving ideas in case we
get desparate in the future.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1999/04/01 06:05:05 simonb Exp $
a8 1
MKMAN=	no
d19 1
a19 1
BOOTDEFADD+=	-DBOOTXX -DRELOC=0x${RELOC} \
d21 2
a22 1
		-DLIBSA_NO_DEV_CLOSE -DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_TWIDDLE \
@


1.14.4.1
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1999/04/11 04:28:14 simonb Exp $
d9 1
d20 1
a20 1
BOOTDEFADD+=	-DBOOTRZ -DSMALL -DRELOC=0x${RELOC} \
d22 1
a22 2
		-DLIBSA_NO_DEV_CLOSE -DLIBSA_NO_DEV_IOCTL \
		-DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_TWIDDLE \
@


1.13
log
@Build the full MI libsa for the first stage bootblocks rather than
picking the bits we wanted explicitly, taking advantage of some of the
recent code-size trimming from cgd.  There's now no duplication if libsa
code in sys/arch/pmax/stand.

As a bonus, we now have 416 bytes free in stage one (up from 80), and
will all of Chris' space saving options enabled (these are commented out
in scsiboot/Makefile), theres over a 1kB free.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/03/31 07:43:39 simonb Exp $
d31 4
@


1.12
log
@G/C UFS_NOSYMLINK, UFS_NOCLOSE and UFS_NOWRITE and use new LIBSA_NO_FS_*.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1999/03/31 07:23:28 simonb Exp $
d11 2
a12 2
SRCS=	start.S alloc.c bootxx.c clear_cache.S memcpy.c memset.c printf.S \
	strcmp.S strcpy.S strlen.S
a13 4
# from sys/lib/libsa:
SRCS+=	disklabel.c dkcksum.c errno.c lseek.c open.c read.c ufs.c
# from sys/lib/libkern:
SRCS+=	bcmp.c
d15 16
a30 1
.PATH:  ${.CURDIR}/../lib $S/lib/libsa $S/lib/libkern
a31 3
BOOTDEFADD+=-DBOOTXX -DRELOC=0x${RELOC} \
	-DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SYMLINK \
	-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET -DLIBSA_NO_TWIDDLE
@


1.11
log
@Don't define errno expliticly, use libsa/errno.c in first stage and
${LIBSA} in the second stage.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1999/03/31 04:30:11 simonb Exp $
d21 2
a22 1
BOOTDEFADD+=-DBOOTXX -DRELOC=0x${RELOC} -DUFS_NOCLOSE -DUFS_NOSYMLINK \
@


1.10
log
@Use recent LIBSA_NO_TWIDDLE support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1999/03/27 07:17:51 simonb Exp $
d15 1
a15 1
SRCS+=	disklabel.c dkcksum.c lseek.c open.c read.c ufs.c
@


1.9
log
@Go back to a Makefile.booters scheme, like most other ports do.  No
more problems for "make depend" - tested with and without obj dirs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1999/03/25 12:26:32 simonb Exp $
d12 1
a12 1
	strcmp.S strcpy.S strlen.S twiddle.c
d22 1
a22 1
	-DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
@


1.8
log
@Updates for new bootblocks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1999/03/14 00:57:06 simonb Exp $
a3 2
RELOC_BOOTXX=80700000	# Room for an almost 7MB kernel

d7 4
d18 1
a18 1
CLEANFILES+=${PROG}.elf ${PROG}.map ${ALL}
d21 1
a21 1
BOOTDEFADD+=-DBOOTXX -DRELOC=0x${RELOC_BOOTXX} -DUFS_NOCLOSE -DUFS_NOSYMLINK \
d24 1
a24 4
MKMAN=	no
LDBUG=	-T $S/arch/mips/conf/stand.ldscript

ALL=	bootxx mkboot rzboot bootrz
d28 2
a29 10
PMAX_STAND_DIR?= $S/arch/pmax/stand
### find out what to use for libpmax
PMAXDIR= ${PMAX_STAND_DIR}/lib
.include "${PMAXDIR}/Makefile.inc"
LIBPMAX=		${PMAXLIB}

${PROG}: ${OBJS} ${LIBPMAX}
	ld -Map ${PROG}.map -N -x -Ttext ${RELOC_BOOTXX} ${LDBUG} \
		-e start ${OBJS} ${LIBPMAX} -o ${PROG}.elf
	elf2aout ${PROG}.elf ${PROG}
d34 2
a35 2
rzboot bootrz:	mkboot ${PROG}
	./mkboot ${PROG} rzboot bootrz
d41 2
a42 1
.include <bsd.prog.mk>
@


1.7
log
@Merge contents of filesystem.c into conf.c, and remove declaration of
errno from conf.c and put it in boot.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1999/02/24 13:54:54 simonb Exp $
d4 1
d7 9
a15 2
PROG=	boot
SRCS=	start.S boot.c conf.c
d17 4
a21 1
DPADD+=	${LIBS}
d25 1
a25 5
# Tell boot code which drivers we want to link against
SRCS+=	rz.c


ALL=	boot mkboot rzboot bootrz
d29 9
a37 3
${PROG}: ${OBJS} ${LIBS}
	ld -Map ${PROG}.map -N -Ttext ${RELOC} ${LDBUG} -e start \
		${OBJS} ${LIBS} -o ${PROG}.elf
d41 1
a41 1
	${CC} ${CPPFLAGS} ${INCPATH} -o mkboot ${.CURDIR}/mkboot.c
a50 2
.include "../Makefile.inc" 	# XXX after <bsd.prog.mk> to reset CFLAGS, etc
.include "../Makefile.booters"
@


1.6
log
@Remove bootconf.c from CLEANFILES; not used anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1999/02/22 10:53:13 simonb Exp $
d7 1
a7 1
SRCS=	start.S boot.c conf.c filesystem.c
@


1.5
log
@Don't use the conf.c->bootconf.c guff, remove last tape support,
and actually install the bootblocks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1999/02/13 02:54:48 lukem Exp $
d8 1
a8 1
CLEANFILES+=${PROG}.elf ${PROG}.map bootconf.c ${ALL}
@


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/01/22 14:05:06 simonb Exp $
d7 1
a7 1
SRCS=	start.S boot.c bootconf.c filesystem.c
a18 1
#ALL+=	mkboottape	XXX not used now
a21 10
${PROG}: ${LIBS}

# before other deps on bootconf.o
bootconf.c: ${.CURDIR}/conf.c
	ln -s ${.CURDIR}/conf.c bootconf.c
	
bootconf.o: ${.CURDIR}/conf.c
	${CC} -c ${CFLAGS} ${CPPFLAGS} -DBOOT bootconf.c

# bootable from real disks
a29 3
mkboottape: ${.CURDIR}/mkboottape.c
	${CC} ${CPPFLAGS} ${INCPATH} -o mkboottape ${.CURDIR}/mkboottape.c

d34 2
a35 3
	@@echo "Sorry, bootblocks too large to install"
#	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
#		${.ALLSRC} ${DESTDIR}${BINDIR}
@


1.3
log
@More Makefile cleanups:
 + Don't use our own "clean" and "depend" targets
 + "make depend" works
 + Only include each include path once on compile lines
 + Clean up include file names
 + Don't build a separate libdrive.a, just specify driver source files
 + Use "make print-objdir" instead of old "printf ... | make -f-"
 + Remove more unnecessary targets, variables and other cruft

Still builds identical bootblocks to 1.3.3 with gcc, still too large
with egcs.

dec_boot.h, dec_exec.h & dec_prom.h were copied via respository
copy to sys/arch/pmax/stand/libsa.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1999/01/21 14:16:52 simonb Exp $
d11 1
a11 1
NOMAN=	noman	# XXX: Should have one
@


1.3.2.1
log
@file Makefile was added on branch netbsd-1-3 on 1999-02-02 06:25:02 +0000
@
text
@d1 54
@


1.3.2.2
log
@patch from simonb to compensate for differences between -current
and 1.3.x.  (simonb)
@
text
@a0 53
#	$NetBSD: Makefile,v 1.3.2.1 1999/02/02 06:25:02 cgd Exp $
#	@@(#)Makefile	8.3 (Berkeley) 2/16/94


S=	${.CURDIR}/../../../..
PROG=	boot
SRCS=	start.S boot.c bootconf.c filesystem.c
CLEANFILES+=${PROG}.elf ${PROG}.map bootconf.c ${ALL}

DPADD+=	${LIBS}
NOMAN=	noman	# XXX: Should have one
LDBUG=	-T $S/arch/mips/conf/stand.ldscript

# Tell boot code which drivers we want to link against
SRCS+=	rz.c


ALL=	boot mkboot rzboot bootrz
#ALL+=	mkboottape	XXX not used now

all:	${ALL}

${PROG}: ${LIBS}

# before other deps on bootconf.o
bootconf.c: ${.CURDIR}/conf.c
	ln -s ${.CURDIR}/conf.c bootconf.c
	
bootconf.o: ${.CURDIR}/conf.c
	${CC} -c ${CFLAGS} ${CPPFLAGS} -DBOOT bootconf.c

# bootable from real disks
${PROG}: ${OBJS} ${LIBS}
	ld -Map ${PROG}.map -N -Ttext ${RELOC} ${LDBUG} -e start \
		${OBJS} ${LIBS} -o ${PROG}.elf
	elf2aout ${PROG}.elf ${PROG}

mkboot:	${.CURDIR}/mkboot.c
	${CC} ${CPPFLAGS} ${INCPATH} -o mkboot ${.CURDIR}/mkboot.c

mkboottape: ${.CURDIR}/mkboottape.c
	${CC} ${CPPFLAGS} ${INCPATH} -o mkboottape ${.CURDIR}/mkboottape.c

rzboot bootrz:	mkboot ${PROG}
	./mkboot ${PROG} rzboot bootrz

proginstall:: bootrz rzboot
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.ALLSRC} ${DESTDIR}${BINDIR}

.include <bsd.prog.mk>
.include "../Makefile.inc" 	# XXX after <bsd.prog.mk> to reset CFLAGS, etc
.include "../Makefile.booters"
@


1.2
log
@Round one of the Makefile clean up:
 + dependency on libsa works
 + set and use BINDIR/BINMODE
 + don't pull in sys/lib/lib{sa,kern}/Makefile.inc (``make clean''
   doesn't make empty lib/{sa,kern} directories in each
   directory/obj dir).
 + remove unnecessary targets, variables and other cruft
 + wrap lines at 80 chars

Re-ordering SRCS line in libsa/Makefile to a more logical sequence
(alphabetical by source dir) results in a libsa.a with archive members
in a different order, and a resultant bootrz that differs from the 1.3.3
bootrz.  Untested as yet, so left in but commented out.

Also, _don't_ install the bootblocks (as per intent of previous commit)
or our own small libsa(!).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1999/01/21 12:33:45 simonb Exp $
d7 4
d14 3
d23 1
a23 2
boot:	${LIBS}
DPADD+=	${LIBS}
d25 4
a28 8
.PATH:	${.CURDIR}/../libsa

# Tell boot code which drivers we want to link against
DRIVERS=rz.c
LIBS+=	libdrive.a


#before other deps on bootconf.o
d30 1
a30 5
	rm -f bootconf.c
	ln -s ${.CURDIR}/conf.c bootconf.c
	${CC} -c ${CFLAGS} -DBOOT bootconf.c
	rm -f bootconf.c

d33 4
a36 7

boot:	start.o boot.o bootconf.o filesystem.o ${LIBS}
	ld -Map boot.map -N -Ttext ${RELOC} ${LDBUG} -e start \
		start.o boot.o bootconf.o filesystem.o ${LIBS} -o boot.elf
	elf2aout boot.elf boot

start.o: ${.CURDIR}/start.S
d44 2
a45 11
rzboot bootrz:	mkboot boot
	./mkboot boot rzboot bootrz

# utilities

clean cleandir:
	rm -f .depend *.o *.exe *.i errs make.out core*
	rm -f a.out boot.elf ${ALL}
	rm -f boot[a-z][a-z] [a-z][a-z]boot
	rm -f libdrive.a
	rm -f boot.map
d52 2
a54 2
.include <bsd.prog.mk>
.include "../Makefile.inc" 	# XXX after to reset CFLAGS, etc
@


1.1
log
@Almost working bootblocks for the pmax.  This compiles fine with gcc
2.7.2.2-myc2 (and produces _identical_ bootblocks with the 1.3.3
bootblocks which weren't in the tree), but egcs 1.1.1 builds a ufs.o
that's about a 100 bytes too big, and it busts the 7.5k we've got for
bootrz.

Still needs cleanup - the Makefiles could be better/cleaner, and doesn't
install yet (because of above problem).  At least there's something to
work with now.

Note that we have our own versions of a lot of the sys/lib/libsa
routines which are less functional/smaller.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,,v 1.8 1996/10/18 06:08:15 thorpej Exp $
d5 4
a8 4
S=      ${.CURDIR}/../../../..
PROG = boot
NOMAN =
LDBUG= -T $S/arch/mips/conf/stand.ldscript
d14 1
a14 1
all: ${ALL}
d16 2
a17 1
boot: ${LIBS}
d19 1
a19 1
.PATH: ${.CURDIR}/../libsa
d22 2
a23 2
DRIVERS= rz.c
LIBS+= libdrive.a
a25 2
# depend on DEFS?

d37 2
a38 1
	ld -Map boot.map -N -Ttext ${RELOC} ${LDBUG} -e start  start.o boot.o bootconf.o filesystem.o ${LIBS} -o boot.elf
d43 1
a43 2

mkboot: ${.CURDIR}/mkboot.c
d61 4
a64 6
install:
	./mkboot boot rzboot bootrz
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 rzboot ${DESTDIR}/usr/mdec
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 bootrz ${DESTDIR}/usr/mdec


@
