head	1.82;
access;
symbols
	perseant-exfatfs-base-20250801:1.82
	perseant-exfatfs-base-20240630:1.82
	perseant-exfatfs:1.82.0.140
	perseant-exfatfs-base:1.82
	bouyer-sunxi-drm:1.82.0.138
	bouyer-sunxi-drm-base:1.82
	cjep_sun2x:1.82.0.136
	cjep_sun2x-base:1.82
	cjep_staticlib_x-base1:1.82
	cjep_staticlib_x:1.82.0.134
	cjep_staticlib_x-base:1.82
	thorpej-futex-base:1.82
	bouyer-xenpvh-base2:1.82
	phil-wifi-20200421:1.82
	bouyer-xenpvh-base1:1.82
	phil-wifi-20200411:1.82
	bouyer-xenpvh:1.82.0.132
	bouyer-xenpvh-base:1.82
	phil-wifi-20200406:1.82
	ad-namecache-base3:1.82
	ad-namecache-base2:1.82
	ad-namecache-base1:1.82
	ad-namecache:1.82.0.130
	ad-namecache-base:1.82
	isaki-audio2:1.82.0.128
	isaki-audio2-base:1.82
	pgoyette-compat-merge-20190127:1.82
	pgoyette-compat-20190127:1.82
	pgoyette-compat-20190118:1.82
	pgoyette-compat-1226:1.82
	pgoyette-compat-1126:1.82
	pgoyette-compat-1020:1.82
	pgoyette-compat-0930:1.82
	pgoyette-compat-0906:1.82
	pgoyette-compat-0728:1.82
	pgoyette-compat-0625:1.82
	pgoyette-compat-0521:1.82
	pgoyette-compat-0502:1.82
	pgoyette-compat-0422:1.82
	pgoyette-compat-0415:1.82
	pgoyette-compat-0407:1.82
	pgoyette-compat-0330:1.82
	pgoyette-compat-0322:1.82
	pgoyette-compat-0315:1.82
	pgoyette-compat:1.82.0.8
	pgoyette-compat-base:1.82
	perseant-stdc-iso10646:1.82.0.126
	perseant-stdc-iso10646-base:1.82
	prg-localcount2-base3:1.82
	prg-localcount2-base2:1.82
	prg-localcount2-base1:1.82
	prg-localcount2:1.82.0.124
	prg-localcount2-base:1.82
	pgoyette-localcount-20170426:1.82
	bouyer-socketcan-base1:1.82
	pgoyette-localcount-20170320:1.82
	bouyer-socketcan:1.82.0.122
	bouyer-socketcan-base:1.82
	pgoyette-localcount-20170107:1.82
	pgoyette-localcount-20161104:1.82
	localcount-20160914:1.82
	pgoyette-localcount-20160806:1.82
	pgoyette-localcount-20160726:1.82
	pgoyette-localcount:1.82.0.120
	pgoyette-localcount-base:1.82
	netbsd-5-2-3-RELEASE:1.82
	netbsd-5-1-5-RELEASE:1.82
	yamt-pagecache-base9:1.82
	yamt-pagecache-tag8:1.82
	tls-earlyentropy:1.82.0.118
	tls-earlyentropy-base:1.82
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.82
	riastradh-drm2-base3:1.82
	netbsd-5-2-2-RELEASE:1.82
	netbsd-5-1-4-RELEASE:1.82
	netbsd-5-2-1-RELEASE:1.82
	netbsd-5-1-3-RELEASE:1.82
	rmind-smpnet-nbase:1.82
	rmind-smpnet:1.82.0.114
	rmind-smpnet-base:1.82
	agc-symver:1.82.0.116
	agc-symver-base:1.82
	tls-maxphys-base:1.82
	yamt-pagecache-base8:1.82
	netbsd-5-2:1.82.0.112
	yamt-pagecache-base7:1.82
	netbsd-5-2-RELEASE:1.82
	netbsd-5-2-RC1:1.82
	yamt-pagecache-base6:1.82
	yamt-pagecache-base5:1.82
	yamt-pagecache-base4:1.82
	netbsd-5-1-2-RELEASE:1.82
	netbsd-5-1-1-RELEASE:1.82
	jmcneill-usbmp:1.82.0.110
	jmcneill-usbmp-base:1.82
	jmcneill-audiomp3:1.82.0.108
	jmcneill-audiomp3-base:1.82
	yamt-pagecache-base3:1.82
	yamt-pagecache-base2:1.82
	yamt-pagecache:1.82.0.106
	yamt-pagecache-base:1.82
	rmind-uvmplock-nbase:1.82
	jym-xensuspend-nbase:1.82
	bouyer-quota2-nbase:1.82
	bouyer-quota2:1.82.0.104
	bouyer-quota2-base:1.82
	jruoho-x86intr:1.82.0.102
	jruoho-x86intr-base:1.82
	matt-nb5-pq3:1.82.0.100
	matt-nb5-pq3-base:1.82
	netbsd-5-1:1.82.0.98
	netbsd-5-1-RELEASE:1.82
	yamt-nfs-mp-base11:1.82
	netbsd-5-1-RC4:1.82
	uebayasi-xip-base2:1.82
	yamt-nfs-mp-base10:1.82
	netbsd-5-1-RC3:1.82
	netbsd-5-1-RC2:1.82
	netbsd-5-1-RC1:1.82
	rmind-uvmplock:1.82.0.96
	rmind-uvmplock-base:1.82
	yamt-nfs-mp-base9:1.82
	uebayasi-xip:1.82.0.94
	uebayasi-xip-base:1.82
	netbsd-5-0-2-RELEASE:1.82
	yamt-nfs-mp-base8:1.82
	yamt-nfs-mp-base7:1.82
	netbsd-5-0-1-RELEASE:1.82
	jymxensuspend-base:1.82
	yamt-nfs-mp-base6:1.82
	yamt-nfs-mp-base5:1.82
	yamt-nfs-mp-base4:1.82
	yamt-nfs-mp-base3:1.82
	netbsd-5-0:1.82.0.92
	netbsd-5-0-RELEASE:1.82
	netbsd-5-0-RC4:1.82
	netbsd-5-0-RC3:1.82
	netbsd-5-0-RC2:1.82
	jym-xensuspend:1.82.0.90
	jym-xensuspend-base:1.82
	netbsd-5-0-RC1:1.82
	haad-dm-base2:1.82
	haad-nbase2:1.82
	ad-audiomp2:1.82.0.88
	ad-audiomp2-base:1.82
	netbsd-5:1.82.0.86
	netbsd-5-base:1.82
	haad-dm-base1:1.82
	haad-dm:1.82.0.84
	haad-dm-base:1.82
	simonb-wapbl-nbase:1.82
	yamt-pf42-base4:1.82
	simonb-wapbl:1.82.0.82
	simonb-wapbl-base:1.82
	yamt-pf42-base3:1.82
	hpcarm-cleanup-nbase:1.82
	yamt-pf42-base2:1.82
	yamt-nfs-mp-base2:1.82
	yamt-nfs-mp:1.82.0.80
	yamt-nfs-mp-base:1.82
	yamt-pf42:1.82.0.78
	yamt-pf42-base:1.82
	ad-socklock-base1:1.82
	yamt-lazymbuf-base15:1.82
	yamt-lazymbuf-base14:1.82
	keiichi-mipv6-nbase:1.82
	mjf-devfs2:1.82.0.76
	mjf-devfs2-base:1.82
	keiichi-mipv6:1.82.0.74
	keiichi-mipv6-base:1.82
	bouyer-xeni386-merge1:1.82
	vmlocking2-base3:1.82
	bouyer-xeni386-nbase:1.82
	yamt-kmem-base3:1.82
	cube-autoconf:1.82.0.72
	cube-autoconf-base:1.82
	yamt-kmem-base2:1.82
	bouyer-xeni386:1.82.0.70
	bouyer-xeni386-base:1.82
	yamt-kmem:1.82.0.68
	yamt-kmem-base:1.82
	vmlocking2-base2:1.82
	reinoud-bufcleanup-nbase:1.82
	vmlocking2:1.82.0.66
	vmlocking2-base1:1.82
	jmcneill-base:1.82
	mjf-devfs:1.82.0.64
	mjf-devfs-base:1.82
	bouyer-xenamd64-base2:1.82
	vmlocking-nbase:1.82
	yamt-x86pmap-base4:1.82
	bouyer-xenamd64:1.82.0.62
	bouyer-xenamd64-base:1.82
	yamt-x86pmap-base3:1.82
	yamt-x86pmap-base2:1.82
	yamt-x86pmap:1.82.0.60
	yamt-x86pmap-base:1.82
	jmcneill-pm:1.82.0.58
	jmcneill-pm-base:1.82
	hpcarm-cleanup:1.82.0.56
	hpcarm-cleanup-base:1.82
	mjf-ufs-trans-base:1.82
	yamt-idlelwp-base8:1.82
	ppcoea-renovation:1.82.0.54
	ppcoea-renovation-base:1.82
	reinoud-bufcleanup-base:1.82
	vmlocking:1.82.0.52
	vmlocking-base:1.82
	ad-audiomp:1.82.0.50
	ad-audiomp-base:1.82
	yamt-idlelwp:1.82.0.48
	post-newlock2-merge:1.82
	newlock2-nbase:1.82
	yamt-splraiseipl-base5:1.82
	yamt-splraiseipl-base4:1.82
	yamt-splraiseipl-base3:1.82
	yamt-splraiseipl-base2:1.82
	yamt-splraiseipl:1.82.0.46
	yamt-splraiseipl-base:1.82
	newlock2:1.82.0.44
	newlock2-base:1.82
	yamt-pdpolicy-base8:1.82
	yamt-pdpolicy-base7:1.82
	yamt-pdpolicy-base6:1.82
	gdamore-uart:1.82.0.42
	gdamore-uart-base:1.82
	simonb-timcounters-final:1.82
	yamt-pdpolicy-base5:1.82
	elad-kernelauth-nbase:1.82
	yamt-pdpolicy-base4:1.82
	yamt-pdpolicy-base3:1.82
	yamt-pdpolicy-base2:1.82
	yamt-pdpolicy:1.82.0.40
	yamt-pdpolicy-base:1.82
	yamt-uio_vmspace-base5:1.82
	simonb-timecounters:1.82.0.38
	simonb-timecounters-base:1.82
	rpaulo-netinet-merge-pcb:1.82.0.36
	rpaulo-netinet-merge-pcb-base:1.82
	yamt-uio_vmspace:1.82.0.34
	yamt-readahead-base3:1.82
	yamt-readahead-base2:1.82
	yamt-readahead:1.82.0.32
	yamt-readahead-base:1.82
	yamt-vop-base3:1.82
	yamt-vop-base2:1.82
	thorpej-vnode-attr:1.82.0.30
	thorpej-vnode-attr-base:1.82
	yamt-vop:1.82.0.28
	yamt-vop-base:1.82
	yamt-lazymbuf:1.82.0.26
	yamt-km-base4:1.82
	yamt-km-base3:1.82
	yamt-km-base2:1.82
	yamt-km:1.82.0.24
	yamt-km-base:1.82
	kent-audio2:1.82.0.22
	kent-audio2-base:1.82
	ktrace-lwp:1.82.0.20
	ktrace-lwp-base:1.82
	nathanw_sa_before_merge:1.82
	gmcgarry_ctxsw:1.82.0.18
	gmcgarry_ctxsw_base:1.82
	gmcgarry_ucred:1.82.0.16
	gmcgarry_ucred_base:1.82
	nathanw_sa_base:1.82
	gehenna-devsw:1.82.0.14
	gehenna-devsw-base:1.82
	netbsd-1-5-PATCH003:1.81
	eeh-devprop:1.82.0.12
	eeh-devprop-base:1.82
	newlock:1.82.0.10
	newlock-base:1.82
	ifpoll-base:1.82
	thorpej-mips-cache:1.82.0.6
	thorpej-mips-cache-base:1.82
	thorpej-devvp:1.82.0.4
	thorpej-devvp-base:1.82
	netbsd-1-5-PATCH002:1.81
	kqueue:1.82.0.2
	kqueue-base:1.82
	netbsd-1-5-PATCH001:1.81
	thorpej_scsipi_beforemerge:1.82
	thorpej_scsipi_nbase:1.82
	netbsd-1-5-RELEASE:1.81
	netbsd-1-5-BETA2:1.81
	netbsd-1-5-BETA:1.81
	netbsd-1-4-PATCH003:1.70.2.1
	netbsd-1-5-ALPHA2:1.81
	netbsd-1-5:1.81.0.4
	netbsd-1-5-base:1.81
	minoura-xpg4dl-base:1.81
	minoura-xpg4dl:1.81.0.2
	netbsd-1-4-PATCH002:1.70.2.1
	chs-ubc2-newbase:1.78
	wrstuden-devbsize-19991221:1.75
	wrstuden-devbsize:1.75.0.8
	wrstuden-devbsize-base:1.75
	kame_141_19991130:1.70.2.1
	comdex-fall-1999:1.75.0.6
	comdex-fall-1999-base:1.75
	fvdl-softdep:1.75.0.4
	fvdl-softdep-base:1.75
	thorpej_scsipi:1.75.0.2
	thorpej_scsipi_base:1.82
	netbsd-1-4-PATCH001:1.70.2.1
	kame_14_19990705:1.70.2.1
	kame_14_19990628:1.70.2.1
	kame:1.70.2.1.0.4
	chs-ubc2:1.70.2.1.0.2
	chs-ubc2-base:1.75
	netbsd-1-4-RELEASE:1.70.2.1
	netbsd-1-4:1.70.0.2
	netbsd-1-4-base:1.70
	netbsd-1-3-PATCH003:1.52.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.52.2.1
	kenh-if-detach:1.64.0.2
	kenh-if-detach-base:1.64
	netbsd-1-3-PATCH003-CANDIDATE1:1.52.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.52.2.1
	chs-ubc:1.62.0.2
	chs-ubc-base:1.62
	nisimura-pmax-wscons:1.61.0.2
	nisimura-pmax-wscons-base:1.61
	eeh-paddr_t:1.59.0.2
	eeh-paddr_t-base:1.59
	netbsd-1-3-PATCH002:1.52.2.1
	netbsd-1-3-PATCH001:1.52.2.1
	netbsd-1-3-RELEASE:1.52.2.1
	netbsd-1-3-BETA:1.52.2.1
	netbsd-1-3:1.52.0.2
	netbsd-1-3-base:1.52
	thorpej-signal:1.50.0.4
	thorpej-signal-base:1.50
	marc-pcmcia:1.50.0.2
	marc-pcmcia-bp:1.50
	marc-pcmcia-base:1.52
	bouyer-scsipi:1.49.0.2
	is-newarp-before-merge:1.43
	is-newarp:1.42.0.4
	is-newarp-base:1.42
	netbsd-1-2-PATCH001:1.29
	mrg-vm-swap:1.42.0.2
	thorpej-setroot:1.39.0.2
	netbsd-1-2-RELEASE:1.29
	netbsd-1-2-BETA:1.29
	netbsd-1-2:1.29.0.4
	netbsd-1-2-base:1.29
	netbsd-1-1-PATCH001:1.16.2.2
	netbsd-1-1-RELEASE:1.16.2.2
	netbsd-1-1:1.16.0.2
	netbsd-1-1-base:1.16
	netbsd-1-0-PATCH06:1.7
	netbsd-1-0-PATCH05:1.7
	netbsd-1-0-PATCH04:1.7
	netbsd-1-0-PATCH03:1.7
	netbsd-1-0-PATCH02:1.7
	netbsd-1-0-PATCH1:1.7
	netbsd-1-0-PATCH0:1.7
	netbsd-1-0-RELEASE:1.7
	netbsd-1-0:1.7.0.2
	netbsd-1-0-base:1.7
	netbsd-pmax-base:1.5
	bsd44-lite:1.4
	pre-bsd44:1.3
	pmax-initial-import:1.1.1.1
	pmax-base:1.1.1;
locks; strict;
comment	@# @;


1.82
date	2000.12.03.07.39.34;	author simonb;	state dead;
branches;
next	1.81;

1.81
date	2000.05.21.02.50.11;	author soren;	state Exp;
branches;
next	1.80;

1.80
date	2000.05.09.00.56.26;	author hubertf;	state Exp;
branches;
next	1.79;

1.79
date	2000.05.09.00.32.25;	author thorpej;	state Exp;
branches;
next	1.78;

1.78
date	2000.02.01.05.25.45;	author tsutsui;	state Exp;
branches;
next	1.77;

1.77
date	2000.01.24.20.36.16;	author tron;	state Exp;
branches;
next	1.76;

1.76
date	2000.01.19.16.30.00;	author tsutsui;	state Exp;
branches;
next	1.75;

1.75
date	99.07.26.05.20.48;	author cgd;	state Exp;
branches
	1.75.2.1;
next	1.74;

1.74
date	99.07.09.09.53.00;	author mrg;	state Exp;
branches;
next	1.73;

1.73
date	99.07.02.20.55.19;	author tv;	state Exp;
branches;
next	1.72;

1.72
date	99.04.25.04.04.53;	author simonb;	state Exp;
branches;
next	1.71;

1.71
date	99.04.06.06.16.07;	author simonb;	state Exp;
branches;
next	1.70;

1.70
date	99.03.27.08.15.29;	author simonb;	state Exp;
branches
	1.70.2.1;
next	1.69;

1.69
date	99.03.25.03.34.28;	author simonb;	state Exp;
branches;
next	1.68;

1.68
date	99.03.15.01.12.00;	author mrg;	state Exp;
branches;
next	1.67;

1.67
date	99.01.15.23.37.07;	author thorpej;	state Exp;
branches;
next	1.66;

1.66
date	99.01.15.10.33.12;	author castor;	state Exp;
branches;
next	1.65;

1.65
date	99.01.08.19.26.14;	author augustss;	state Exp;
branches;
next	1.64;

1.64
date	98.11.27.01.01.40;	author simonb;	state Exp;
branches;
next	1.63;

1.63
date	98.11.27.00.09.33;	author simonb;	state Exp;
branches;
next	1.62;

1.62
date	98.10.15.18.44.11;	author drochner;	state Exp;
branches;
next	1.61;

1.61
date	98.09.05.15.15.17;	author lukem;	state Exp;
branches
	1.61.2.1;
next	1.60;

1.60
date	98.08.04.20.17.09;	author jonathan;	state Exp;
branches;
next	1.59;

1.59
date	98.05.31.23.25.43;	author thorpej;	state Exp;
branches;
next	1.58;

1.58
date	98.04.19.08.01.01;	author jonathan;	state Exp;
branches;
next	1.57;

1.57
date	98.04.19.04.51.18;	author jonathan;	state Exp;
branches;
next	1.56;

1.56
date	98.04.12.23.47.44;	author tv;	state Exp;
branches;
next	1.55;

1.55
date	98.03.03.07.38.40;	author thorpej;	state Exp;
branches;
next	1.54;

1.54
date	97.11.12.23.12.23;	author thorpej;	state Exp;
branches;
next	1.53;

1.53
date	97.11.12.22.26.24;	author thorpej;	state Exp;
branches;
next	1.52;

1.52
date	97.10.08.21.26.16;	author thorpej;	state Exp;
branches
	1.52.2.1;
next	1.51;

1.51
date	97.09.30.22.55.38;	author christos;	state Exp;
branches;
next	1.50;

1.50
date	97.07.12.22.08.03;	author leo;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	97.06.23.02.40.29;	author jonathan;	state Exp;
branches;
next	1.48;

1.48
date	97.06.15.16.27.47;	author mhitch;	state Exp;
branches;
next	1.47;

1.47
date	97.06.15.01.20.59;	author jonathan;	state Exp;
branches;
next	1.46;

1.46
date	97.05.24.05.56.06;	author jonathan;	state Exp;
branches;
next	1.45;

1.45
date	97.04.26.02.20.59;	author jonathan;	state Exp;
branches;
next	1.44;

1.44
date	97.03.16.11.54.03;	author jonathan;	state Exp;
branches;
next	1.43;

1.43
date	97.03.05.04.41.57;	author jonathan;	state Exp;
branches;
next	1.42;

1.42
date	97.02.04.05.08.46;	author perry;	state Exp;
branches
	1.42.4.1;
next	1.41;

1.41
date	97.02.04.04.32.17;	author perry;	state Exp;
branches;
next	1.40;

1.40
date	97.02.03.07.23.32;	author thorpej;	state Exp;
branches;
next	1.39;

1.39
date	96.12.01.03.23.04;	author jonathan;	state Exp;
branches;
next	1.38;

1.38
date	96.11.22.18.53.31;	author jonathan;	state Exp;
branches;
next	1.37;

1.37
date	96.09.30.02.35.34;	author jonathan;	state Exp;
branches;
next	1.36;

1.36
date	96.09.25.20.41.00;	author jonathan;	state Exp;
branches;
next	1.35;

1.35
date	96.09.25.20.35.16;	author jonathan;	state Exp;
branches;
next	1.34;

1.34
date	96.09.09.21.07.06;	author mycroft;	state Exp;
branches;
next	1.33;

1.33
date	96.08.31.21.41.41;	author mycroft;	state Exp;
branches;
next	1.32;

1.32
date	96.08.12.00.52.01;	author mycroft;	state Exp;
branches;
next	1.31;

1.31
date	96.08.10.06.09.41;	author mycroft;	state Exp;
branches;
next	1.30;

1.30
date	96.08.10.05.29.48;	author mycroft;	state Exp;
branches;
next	1.29;

1.29
date	96.05.19.22.44.12;	author mhitch;	state Exp;
branches;
next	1.28;

1.28
date	96.05.19.17.17.48;	author jonathan;	state Exp;
branches;
next	1.27;

1.27
date	96.05.11.16.12.51;	author mycroft;	state Exp;
branches;
next	1.26;

1.26
date	96.02.29.20.57.22;	author cgd;	state Exp;
branches;
next	1.25;

1.25
date	96.02.26.02.53.46;	author mycroft;	state Exp;
branches;
next	1.24;

1.24
date	96.02.09.02.21.31;	author mycroft;	state Exp;
branches;
next	1.23;

1.23
date	96.02.04.07.08.38;	author jonathan;	state Exp;
branches;
next	1.22;

1.22
date	96.02.03.00.44.18;	author mycroft;	state Exp;
branches;
next	1.21;

1.21
date	96.02.02.20.09.31;	author mycroft;	state Exp;
branches;
next	1.20;

1.20
date	96.02.01.22.32.10;	author mycroft;	state Exp;
branches;
next	1.19;

1.19
date	96.01.14.21.06.54;	author thorpej;	state Exp;
branches;
next	1.18;

1.18
date	95.12.17.09.09.42;	author jonathan;	state Exp;
branches;
next	1.17;

1.17
date	95.11.25.05.55.38;	author mellon;	state Exp;
branches;
next	1.16;

1.16
date	95.09.19.23.30.54;	author thorpej;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	95.06.24.20.46.54;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	95.06.09.06.44.41;	author jonathan;	state Exp;
branches;
next	1.13;

1.13
date	95.05.16.22.25.05;	author jtc;	state Exp;
branches;
next	1.12;

1.12
date	95.03.23.19.47.20;	author jtc;	state Exp;
branches;
next	1.11;

1.11
date	95.01.18.06.36.13;	author mellon;	state Exp;
branches;
next	1.10;

1.10
date	94.12.12.19.34.59;	author dean;	state Exp;
branches;
next	1.9;

1.9
date	94.11.22.18.57.25;	author dean;	state Exp;
branches;
next	1.8;

1.8
date	94.10.26.21.08.45;	author cgd;	state Exp;
branches;
next	1.7;

1.7
date	94.06.15.05.18.31;	author glass;	state Exp;
branches;
next	1.6;

1.6
date	94.06.01.07.38.51;	author glass;	state Exp;
branches;
next	1.5;

1.5
date	94.05.27.08.57.47;	author glass;	state Exp;
branches;
next	1.4;

1.4
date	94.05.27.08.39.07;	author glass;	state Exp;
branches;
next	1.3;

1.3
date	94.04.16.08.38.22;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	94.01.16.00.34.10;	author deraadt;	state Exp;
branches;
next	1.1;

1.1
date	93.10.12.03.22.19;	author deraadt;	state Exp;
branches
	1.1.1.1;
next	;

1.75.2.1
date	2000.11.20.20.20.14;	author bouyer;	state Exp;
branches;
next	1.75.2.2;

1.75.2.2
date	2000.12.08.09.30.13;	author bouyer;	state dead;
branches;
next	;

1.70.2.1
date	99.04.16.12.57.52;	author simonb;	state Exp;
branches
	1.70.2.1.2.1;
next	;

1.70.2.1.2.1
date	99.06.21.00.58.32;	author thorpej;	state Exp;
branches;
next	1.70.2.1.2.2;

1.70.2.1.2.2
date	99.08.02.20.06.02;	author thorpej;	state Exp;
branches;
next	;

1.61.2.1
date	98.10.15.01.30.23;	author nisimura;	state Exp;
branches;
next	1.61.2.2;

1.61.2.2
date	98.10.19.19.24.11;	author drochner;	state Exp;
branches;
next	1.61.2.3;

1.61.2.3
date	98.12.06.21.13.02;	author drochner;	state Exp;
branches;
next	1.61.2.4;

1.61.2.4
date	99.01.18.20.21.19;	author drochner;	state Exp;
branches;
next	1.61.2.5;

1.61.2.5
date	99.06.11.00.53.33;	author nisimura;	state Exp;
branches;
next	;

1.52.2.1
date	97.11.12.23.45.47;	author thorpej;	state Exp;
branches;
next	;

1.50.2.1
date	97.10.14.10.18.02;	author thorpej;	state Exp;
branches;
next	;

1.42.4.1
date	97.03.12.21.17.43;	author is;	state Exp;
branches;
next	;

1.16.2.1
date	95.10.13.03.13.23;	author jonathan;	state Exp;
branches;
next	1.16.2.2;

1.16.2.2
date	95.10.13.03.15.59;	author jonathan;	state Exp;
branches;
next	;

1.1.1.1
date	93.10.12.03.22.20;	author deraadt;	state Exp;
branches;
next	;


desc
@@


1.82
log
@Use shared Makefile.mips
@
text
@#	$NetBSD: Makefile.pmax,v 1.81 2000/05/21 02:50:11 soren Exp $

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/pmax/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/pmax/conf/Makefile.pmax
# after which config should be rerun for all machines of that type.
#
# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
#	IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
#
# -DTRACE	compile in kernel tracing hooks
# -DQUOTA	compile in file system quotas

# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.

AR?=	ar
AS?=	as
CC?=	cc
CPP?=	cpp
LD?=	ld
LORDER?=lorder
MKDEP?=	mkdep
NM?=	nm
RANLIB?=ranlib
SIZE?=	size
STRIP?=	strip
TSORT?=	tsort -q

COPTS?=	-O2

# source tree is located via $S relative to the compilation directory
.ifndef S
#S!=	cd ../../../..; pwd
S=	../../../..
.endif
PMAX=	$S/arch/pmax
MIPS=	$S/arch/mips

HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dpmax
CWARNFLAGS?=	-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes \
		-Wpointer-arith
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
CWARNFLAGS+=	-Wno-main
.endif
GP?=		-G 0
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
		-mno-abicalls -mno-half-pic
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript.le \
		-e start ${GP}
STRIPFLAGS=	-g -X -x

%INCLUDES

### find out what to use for libkern
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF
LIBKERN=	${KERNLIB}
.else
LIBKERN=	${KERNLIB_PROF}
.endif

### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT=	${COMPATLIB}
.else
LIBCOMPAT=	${COMPATLIB_PROF}
.endif

# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).

NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -c $<
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<

%OBJS

%CFILES

%SFILES

# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
SYSTEM_OBJ=	locore.o locore_machdep.o
.if !empty(IDENT:M-DMIPS1)
SYSTEM_OBJ+=	locore_mips1.o
.endif
.if !empty(IDENT:M-DMIPS3)
SYSTEM_OBJ+=	locore_mips3.o
.endif
SYSTEM_OBJ+=	fp.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	@@rm -f $@@
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o ; \
		${LD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@

DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+=	-X
SYSTEM_LD_TAIL+=; \
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
.else
LINKFLAGS+=	-x
.endif

SYSTEM_LD_TAIL+=;\
		echo elf2ecoff $@@ $@@.ecoff; elf2ecoff $@@ $@@.ecoff; \
		chmod 755 $@@.ecoff

%LOAD

assym.h: $S/kern/genassym.sh ${MIPS}/mips/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	  < ${MIPS}/mips/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h


param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .

param.o: param.c Makefile
	${NORMAL_C}

ioconf.o: ioconf.c
	${NORMAL_C}

newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c

__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
	rm -f eddep *netbsd netbsd.ecoff netbsd.gdb tags *.[io] \
	  [a-z]*.s [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir distclean: __CLEANKERNEL __CLEANDEPEND

lint:
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	  ${MIPS}/mips/Locore.c ${CFILES} \
	  ioconf.c param.c | \
	  grep -v 'static function .* unused'

tags:
	@@echo "see $S/kern/Makefile for tags"

links:
	egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
	  sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
	echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
	  sort -u | comm -23 - dontlink | \
	  sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
	sh makelinks && rm -f dontlink

SRCS=	${MIPS}/mips/locore.S ${MIPS}/mips/fp.S \
	${PMAX}/pmax/locore_machdep.S \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MIPS}/mips/locore.S ${MIPS}/mips/fp.S
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore_machdep.S
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
.if (${SFILES} != "")
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
.endif
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} < ${MIPS}/mips/genassym.cf
	@@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
	@@rm -f assym.dep

dependall: depend all


# depend on root or device configuration
autoconf.o conf.o: Makefile

# depend on network or filesystem configuration
uipc_proto.o vfs_conf.o: Makefile

# depend on maxusers
machdep.o: Makefile

# depend on CPU configuration
machdep.o mainbus.o trap.o: Makefile

# depend on System V IPC/shmem options
mips_machdep.o pmap.o: Makefile

locore.o: ${MIPS}/mips/locore.S assym.h
	${NORMAL_S}

locore_mips1.o: ${MIPS}/mips/locore_mips1.S assym.h
	${NORMAL_S}

locore_mips3.o: ${MIPS}/mips/locore_mips3.S assym.h
	${NORMAL_S}

fp.o: ${MIPS}/mips/fp.S assym.h
	${NORMAL_S}

locore_machdep.o: ${PMAX}/pmax/locore_machdep.S assym.h
	${NORMAL_S}

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif

%RULES
@


1.81
log
@Also share BE ldscripts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.80 2000/05/09 00:56:26 hubertf Exp $
@


1.80
log
@Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.79 2000/05/09 00:32:25 thorpej Exp $
d62 2
a63 1
LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript -e start ${GP}
@


1.79
log
@HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well.  Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.78 2000/02/01 05:25:45 tsutsui Exp $
d229 12
@


1.78
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.77 2000/01/24 20:36:16 tron Exp $
d47 1
a47 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo
d52 4
a55 1
.if (${HAVE_GCC28} != "")
@


1.77
log
@Add "dependall" target for comfort.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.76 2000/01/19 16:30:00 tsutsui Exp $
d34 1
a34 1
STRIPPROG?=strip
d117 2
a118 2
		echo ${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIPPROG} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.76
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.75 1999/07/26 05:20:48 cgd Exp $
d193 2
@


1.75
log
@be more efficient when doing the SYSTEM_LD_TAIL for -g kernels: don't
copy them just to strip them, use strip -o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.74 1999/07/09 09:53:00 mrg Exp $
d34 1
a34 1
STRIP?=	strip
d117 2
a118 2
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.75.2.1
log
@Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.81 2000/05/21 02:50:11 soren Exp $
d47 1
a47 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
d52 1
a52 4
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
d59 1
a59 2
LINKFLAGS=	-Ttext 0x80030000 -T ${MIPS}/conf/kern.ldscript.le \
		-e start ${GP}
a193 2
dependall: depend all

a223 12

# The install target can be redefined by putting a
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
MACHINE_NAME!=  uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
	rm -f /onetbsd
	ln /netbsd /onetbsd
	cp netbsd /nnetbsd
	mv /nnetbsd /netbsd
.endif
@


1.75.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.75.2.1 2000/11/20 20:20:14 bouyer Exp $
@


1.74
log
@clean up a bit after jason :)

- fix emitrules() like emitfiles() to deal with the prefix (otherwise it
  would attempt to find the file in the normal base for the NORMAL_C rule).
- add emitincludes() which adds include directives for each prefix to the
  $INCLUDES variable in the makefile.
- add %INCLUDES to each Makefile.arch to deal with the above.

this makes "prefix" actually work in a usable manner, and now i can move
on to fixing compiler warnings (errors) in the ESP code. :)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.73 1999/07/02 20:55:19 tv Exp $
d116 3
a118 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.73
log
@-Wuninitialized is not used in the NetBSD tree, explicitly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.72 1999/04/25 04:04:53 simonb Exp $
d61 2
@


1.72
log
@pmax kernels now compile with -Wuninitialized.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.71 1999/04/06 06:16:07 simonb Exp $
d51 1
a51 1
		-Wuninitialized -Wpointer-arith
@


1.71
log
@Don't build a.out kernels anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.70 1999/03/27 08:15:29 simonb Exp $
d51 1
a51 1
		-Wno-uninitialized -Wpointer-arith
@


1.70
log
@Remove trailing white-space.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.69 1999/03/25 03:34:28 simonb Exp $
a120 2
		echo elf2aout $@@ $@@.aout; elf2aout $@@ $@@.aout; \
		chmod 755 $@@.aout; \
d148 1
a148 1
	rm -f eddep *netbsd netbsd.aout netbsd.ecoff netbsd.gdb tags *.[io] \
@


1.70.2.1
log
@Pull up rev 1.71 from the trunk:
	Don't build a.out kernels anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.71 1999/04/06 06:16:07 simonb Exp $
d121 2
d150 1
a150 1
	rm -f eddep *netbsd netbsd.ecoff netbsd.gdb tags *.[io] \
@


1.70.2.1.2.1
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.72 1999/04/25 04:04:53 simonb Exp $
d51 1
a51 1
		-Wuninitialized -Wpointer-arith
@


1.70.2.1.2.2
log
@Update from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.70.2.1.2.1 1999/06/21 00:58:32 thorpej Exp $
d51 1
a51 1
		-Wpointer-arith
a61 2
%INCLUDES

d114 2
a115 3
		echo mv -f $@@ $@@.gdb; mv -f $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.69
log
@Change multiple spaces to tabs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.68 1999/03/15 01:12:00 mrg Exp $
d47 1
a47 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo 
d183 1
a183 1
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore_machdep.S 
d196 3
a198 3
 
# depend on network or filesystem configuration 
uipc_proto.o vfs_conf.o: Makefile 
d203 1
a203 1
# depend on CPU configuration 
@


1.68
log
@delete netbsd.aout and netbsd.ecoff in "make clean"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.67 1999/01/15 23:37:07 thorpej Exp $
d96 1
a96 1
SYSTEM_OBJ=     locore.o locore_machdep.o
d98 1
a98 1
SYSTEM_OBJ+=    locore_mips1.o
d101 1
a101 1
SYSTEM_OBJ+=    locore_mips3.o
d103 1
a103 1
SYSTEM_OBJ+=    fp.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
@


1.67
log
@Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.66 1999/01/15 10:33:12 castor Exp $
d150 2
a151 2
	rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	  [Ee]rrs linterrs makelinks assym.h.tmp assym.h
@


1.66
log
@add support for locore_mips[13].S
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.65 1999/01/08 19:26:14 augustss Exp $
d49 3
a51 5
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
		-D__pmax__ -Dpmax ${GP}
#	-Wno-uninitialized avoids bogus warnings in cpu_reboot()
CWARNFLAGS?=	-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized \
		-Wpointer-arith
d56 2
a57 1
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} -mno-abicalls -mno-half-pic
@


1.65
log
@Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.64 1998/11/27 01:01:40 simonb Exp $
d97 8
a104 2
SYSTEM_OBJ=	locore.o fp.o locore_machdep.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
d210 2
d213 1
a213 1
locore.o: ${MIPS}/mips/locore.S ${MIPS}/mips/locore_r2000.S ${MIPS}/mips/locore_r4000.S assym.h
d216 2
@


1.64
log
@Don't do a mkdep on SFILES if it is empty.  Stops an annoying:
    cc: Warning: `-x assembler-with-cpp' after last input file has no effect
    cc: No input files
message.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.63 1998/11/27 00:09:33 simonb Exp $
d52 2
a53 1
CWARNFLAGS?=	-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized
@


1.63
log
@White space and comment formatting police
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.62 1998/10/15 18:44:11 drochner Exp $
d179 1
d181 1
@


1.62
log
@change handling of libkern:
-sys/lib/libkern builds as library per default (as it was documented all
 the time)
-ports able to LKM set "KERN_AS=obj" explicitely in their Makefiles
 (for now; should depend on actual "option LKM" or -better- functions
 included for LKM use should be pulled in by a stub)
-always link libcompat before libkern - libkern stuff can be referred to
 by libcompat, but not the other way
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.61 1998/09/05 15:15:17 lukem Exp $
d124 1
a124 1
	    < ${MIPS}/mips/genassym.cf > assym.h.tmp && \
d145 1
a145 1
	    [Ee]rrs linterrs makelinks assym.h.tmp assym.h
d156 3
a158 3
	    ${MIPS}/mips/Locore.c ${CFILES} \
	    ioconf.c param.c | \
	    grep -v 'static function .* unused'
@


1.61
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.60 1998/08/04 20:17:09 jonathan Exp $
d97 1
a97 1
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
@


1.61.2.1
log
@- Reflect all changes of this branch; NWSCONS, MI SCSI, new spl(9) and others.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.59 1998/05/31 23:25:43 thorpej Exp $
d96 2
a97 8
SYSTEM_OBJ=     locore.o locore_machdep.o
.if !empty(IDENT:M-DMIPS1)
SYSTEM_OBJ+=    locore_mips1.o
.endif  
.if !empty(IDENT:M-DMIPS3)
SYSTEM_OBJ+=    locore_mips3.o
.endif
SYSTEM_OBJ+=	fp.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
d152 1
a152 1
cleandir: __CLEANKERNEL __CLEANDEPEND
a173 1

d177 1
a177 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore_machdep.S 
d201 2
a202 1
locore.o: ${MIPS}/mips/locore.S assym.h
a204 2
locore_mips1.o: ${MIPS}/mips/locore_mips1.S assym.h
	${NORMAL_S}
d206 1
a206 1
locore_mips3.o: ${MIPS}/mips/locore_mips3.S assym.h
a209 3
	${NORMAL_S}

fp.o: ${MIPS}/mips/fp.S assym.h
@


1.61.2.2
log
@sync to trunk rev. 1.62
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.61.2.1 1998/10/15 01:30:23 nisimura Exp $
d103 1
a103 1
SYSTEM_OBJ+=	fp.o param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
@


1.61.2.3
log
@pull up 1.64 - No input files warning
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.61.2.2 1998/10/19 19:24:11 drochner Exp $
a185 1
.if (${SFILES} != "")
a186 1
.endif
@


1.61.2.4
log
@pull in trunc rev 1.65: -Wpointer-arith
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.61.2.3 1998/12/06 21:13:02 drochner Exp $
d52 1
a52 2
CWARNFLAGS?=	-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized \
		-Wpointer-arith
@


1.61.2.5
log
@- Track main trunk changes and cleanup accumulated bozos I made so far.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.61.2.4 1999/01/18 20:21:19 drochner Exp $
d122 2
@


1.60
log
@Add missing "-a" to mkdep line for pmax locore_machdep.S.
From Noriyuki Soda.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.59 1998/05/31 23:25:43 thorpej Exp $
d152 1
a152 1
cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.59
log
@Specify a non-profiling C rule.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.58 1998/04/19 08:01:01 jonathan Exp $
d177 1
a177 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore_machdep.S 
@


1.58
log
@Add -D__pmax__. Leave -Dpmax until all uses changed to __pmax__.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.57 1998/04/19 04:51:18 jonathan Exp $
d82 1
@


1.57
log
@Add dependencies on Makefile for  SYSVSHM, SYSVIPC options.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.56 1998/04/12 23:47:44 tv Exp $
d50 1
a50 1
		-Dpmax ${GP}
@


1.56
log
@Add -Wno-main conditional on compiler being gcc 2.8 or egcs.  (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.55 1998/03/03 07:38:40 thorpej Exp $
d196 3
@


1.55
log
@Make this work with DEBUG="-g"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.54 1997/11/12 23:12:23 thorpej Exp $
d47 1
d52 4
a55 1
CWARNFLAGS=	-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized
@


1.54
log
@Make sure CPP, AR, AS, and RANLIB are defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.53 1997/11/12 22:26:24 thorpej Exp $
d56 1
a56 1
STRIPFLAGS=	-d
@


1.53
log
@Define LORDER, NM, and TSORT here, like we do the rest of the tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.52 1997/10/08 21:26:16 thorpej Exp $
d24 2
d27 1
d32 1
d36 2
a37 1
COPTS?=		-O2
@


1.52
log
@The MIPS toolchain generates ELF.  Don't pretend like it generates a.out
by renaming "netbsd" to "netbsd.elf", and then creating an a.out image
called "netbsd".

Instead, create _both_ ECOFF and a.out versions of the kernels, named
"netbsd.ecoff" and "netbsd.aout" respectively, and drop the ".elf"
from the ELF kernel.

(And, with any luck, the a.out hack will go away completely Very Soon.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.51 1997/09/30 22:55:38 christos Exp $
d26 1
d28 2
d31 1
a31 1
SIZE?=	size
@


1.52.2.1
log
@Pull up "make sure tools are defined" changes from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.54 1997/11/12 23:12:23 thorpej Exp $
a23 2
AR?=	ar
AS?=	as
a24 1
CPP?=	cpp
a25 1
LORDER?=lorder
d27 1
a27 2
NM?=	nm
RANLIB?=ranlib
d29 1
a29 4
STRIP?=	strip
TSORT?=	tsort -q

COPTS?=	-O2
@


1.51
log
@PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.50 1997/07/12 22:08:03 leo Exp $
d102 4
a105 3
		mv $@@ $@@.elf; \
		elf2aout $@@.elf $@@; \
		chmod 755 $@@
@


1.50
log
@Generate assym.h dependencies when making 'depend'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.49 1997/06/23 02:40:29 jonathan Exp $
d128 2
a129 3

clean: cleankernel
cleankernel:
d132 7
@


1.50.2.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.52 1997/10/08 21:26:16 thorpej Exp $
d102 3
a104 4
		echo elf2aout $@@ $@@.aout; elf2aout $@@ $@@.aout; \
		chmod 755 $@@.aout; \
		echo elf2ecoff $@@ $@@.ecoff; elf2ecoff $@@ $@@.ecoff; \
		chmod 755 $@@.ecoff
d128 3
a130 2
__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
a132 7

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.49
log
@Set kernel text start address in port-specific Makefile, not ldscript.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.48 1997/06/15 16:27:47 mhitch Exp $
d160 4
@


1.48
log
@Since locore_r2000.S and locore_r4000.S are included by locore.S, they need
to be included in the dependency list for locore.o.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.47 1997/06/15 01:20:59 jonathan Exp $
d47 1
a47 1
LINKFLAGS=	-T ${MIPS}/conf/kern.ldscript -e start ${GP}
@


1.47
log
@Turn on -Wall -Weror and -Wstrict-prototypes -Wmissing-prototypes.

Turn off warnings for uninitialized variables to avoid spurious warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.46 1997/05/24 05:56:06 jonathan Exp $
d175 1
a175 1
locore.o: ${MIPS}/mips/locore.S assym.h
@


1.46
log
@Use a ldscript to work around `features' (not enough section headers)
when linking kernels with GNU binutils-2.7 or newer ld.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.45 1997/04/26 02:20:59 jonathan Exp $
d42 2
a43 1
CWARNFLAGS=	-Werror
@


1.45
log
@Ted Lemon's (RR 3540) cross-compilation patch:  use ${SIZE} instead of size,
Also add "SIZE=? size",  so that native kernel compiles work, too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.44 1997/03/16 11:54:03 jonathan Exp $
a25 1
KERNLD?=	ld.old	# GNU binutils 2.7 ld can't link kernels, use 2.6
d43 1
d46 1
a46 1
LINKFLAGS=	-N -Ttext 80030000 -e start
a48 1

d86 2
a87 2
SYSTEM_LD=	@@echo ${KERNLD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o ; \
		${KERNLD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
@


1.44
log
@Use genassym.sh script to make assym.h, for cross-compiling.
Remove dependencies on genassym.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.43 1997/03/05 04:41:57 jonathan Exp $
d29 1
d89 1
a89 1
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@
@


1.43
log
@Build kernel object files with -mno-abicalls and -mno-half-pic.  (The
kernel doesn't support GP-relative addressing, and is statically linked).

Compile genassym without those flags: -mno-abicalls will make it coredump.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.42 1997/02/04 05:08:46 perry Exp $
a47 3
HOSTED_CC=	${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS=	${CFLAGS:S/-mno-abicalls//:S/-mno-half-pic//}
a70 2
HOSTED_C=	${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<

d107 4
a110 5
assym.h: genassym
	./genassym >assym.h

genassym: genassym.o
	${CC} -o $@@ genassym.o
a111 2
genassym.o: $S/arch/mips/mips/genassym.c
	${HOSTED_C}
d131 1
a131 1
	    [Ee]rrs linterrs makelinks genassym genassym.o assym.h
a158 2
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
	    $S/arch/mips/mips/genassym.c
d168 1
a168 1
genassym.o machdep.o: Makefile
@


1.42
log
@Nuke some options GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.41 1997/02/04 04:32:17 perry Exp $
d43 1
a43 1
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
d50 1
a50 1
HOSTED_CFLAGS=	${CFLAGS}
@


1.42.4.1
log
@Merge in changes from Trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.43 1997/03/05 04:41:57 jonathan Exp $
d43 1
a43 1
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS} -mno-abicalls -mno-half-pic
d50 1
a50 1
HOSTED_CFLAGS=	${CFLAGS:S/-mno-abicalls//:S/-mno-half-pic//}
@


1.41
log
@Nuke some GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.40 1997/02/03 07:23:32 thorpej Exp $
d143 1
a143 1
	    ${MIPS}/mips/Locore.c ${CFILES} ${PMAX}/pmax/swapgeneric.c \
@


1.40
log
@Update clean and depend rule for kernel make changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.39 1996/12/01 03:23:04 jonathan Exp $
d142 1
a142 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
@


1.39
log
@Replace explicit -O2 in CFLAGS with  COPTS macro. Default COPTS?= -O2.
Lets users over-ride with makeoptions COPTS="..." in kernel config files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.38 1996/11/22 18:53:31 jonathan Exp $
d136 2
a137 1
clean::
d161 1
a161 1
depend:: .depend
@


1.38
log
@Add KERNLD hook to allow overriding the LD used to link kernels.
Set KERNLD to ld.old.  gcc binutils 2.7 gets an assert error linking kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.34 1996/09/09 21:07:06 mycroft Exp $
d29 1
d43 1
a43 1
CFLAGS=		${DEBUG} ${CWARNFLAGS} -O2
@


1.37
log
@Build and link in locore_machdep.S.
@
text
@d26 1
d90 2
a91 2
SYSTEM_LD=	@@echo ${LD} ${LINKFLAGS} -o $@@ '$${SYSTEM_OBJ}' vers.o ; \
		${LD} ${LINKFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o
@


1.36
log
@Build locore using merged mips (mips1, mips3) locore source:
  * Add MIPS make variable pointing at $S/arch/mips
  * Build locore from $MIPS/mips locore source
  * Build locore.o and fp.o (fp emulation) from arch/mips locore source
  * Add target and rules to build pmax-specific locore code locore_machdep.o
    from $PMAX/pmax/lcore_machdep.S
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.35 1996/09/25 20:35:16 jonathan Exp $
d31 2
a32 1
S!=	cd ../../../..; pwd
d85 1
a85 1
SYSTEM_OBJ=	locore.o fp.o \
d188 1
a188 1
locore_machdep.o: ${pmax}/pmax/locore.S assym.h
@


1.35
log
@Back out  part of revision 1.30:

>* Use `-S' rather than `-x' to remove debugging symbols.

because the pmax toolchain and gcc disagree about what is a "local"
symbol, and ld requires a "-x" to let elf2aout build bootable a.out kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.34 1996/09/09 21:07:06 mycroft Exp $
d34 1
d139 1
a139 1
	    ${PMAX}/pmax/Locore.c ${CFILES} ${PMAX}/pmax/swapgeneric.c \
d154 2
a155 1
SRCS=	${PMAX}/pmax/locore.S ${PMAX}/pmax/fp.S \
d159 2
a160 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pmax/fp.S
d180 1
a180 1
locore.o: ${PMAX}/pmax/locore.S assym.h
d183 5
a187 1
fp.o: ${PMAX}/pmax/fp.S assym.h
@


1.34
log
@Move strip(1) flags into a separate variable, so that $STRIP can
be passed to subordinate make(1)s.  Remove $TOUCH.  Add HOSTED_CC,
HOSTED_CPPFLAGS, and HOSTED_CFLAGS, and use them when depending genassym.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.33 1996/08/31 21:41:41 mycroft Exp $
d98 1
a98 1
LINKFLAGS+=	-S
@


1.33
log
@Wrap the default definition of `S' in `.ifndef'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.32 1996/08/12 00:52:01 mycroft Exp $
d27 1
a27 2
STRIP?=	strip -d
TOUCH?=	touch -f -c
d42 5
d70 1
a70 1
HOSTED_C=	${NORMAL_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d96 1
a96 1
		echo ${STRIP} $@@; ${STRIP} $@@
d160 2
a161 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} $S/arch/mips/mips/genassym.c
@


1.32
log
@Put  into .  Remove hooks for `config-dependent' and
`device-driver' flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.31 1996/08/10 06:09:41 mycroft Exp $
d31 1
d33 1
@


1.31
log
@* Add a HOSTED_C_C variable, which strips `-p', `-pg', and
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.30 1996/08/10 05:29:48 mycroft Exp $
d35 2
a36 1
CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -Dpmax ${GP}
d58 2
a59 4
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
# is marked as config-dependent.
a61 5
NORMAL_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<

DRIVER_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
DRIVER_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<

a62 1
NORMAL_S_C=	${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d64 1
a64 1
HOSTED_C_C=	${NORMAL_C_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d108 2
a109 2
genassym.o: ${S}/arch/mips/mips/genassym.c
	${HOSTED_C_C}
d116 1
a116 1
	${NORMAL_C_C}
d131 1
a131 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} ${PARAM} -UKGDB \
d154 1
a154 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${S}/arch/mips/mips/genassym.c
@


1.30
log
@* Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.29 1996/05/19 22:44:12 mhitch Exp $
d34 1
a34 1
INCLUDES=	-I. -I$S/arch -I$S
d71 2
d116 1
a116 1
	${NORMAL_C_C}
@


1.29
log
@Also use genassym.c from sys/arch/mips/mips for make depend.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.28 1996/05/19 17:17:48 jonathan Exp $
a23 1
AS?=	as
a24 1
CPP?=	cpp
d26 1
d31 2
a32 2
S=	../../../..
PMAX=	../..
d36 2
a37 1
CFLAGS=		${DEBUG} -O2 -Werror
d97 1
a97 1
LINKFLAGS+=	-x
d156 4
a159 4
	mkdep ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pmax/fp.S
	mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${S}/arch/mips/mips/genassym.c
@


1.28
log
@Use  genassym.c from sys/arch/mips/mips.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.27 1996/05/11 16:12:51 mycroft Exp $
d159 1
a159 1
	mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${PMAX}/pmax/genassym.c
@


1.27
log
@Make `make depend' work for libraries.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.26 1996/02/29 20:57:22 cgd Exp $
d113 1
a113 1
genassym.o: ${PMAX}/pmax/genassym.c
@


1.26
log
@Do not build vnode_if.[ch] for each kernel.  Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.25 1996/02/26 02:53:46 mycroft Exp $
d154 1
a154 1
depend: .depend
@


1.25
log
@Define build programs with `?=', so they can be overridden with `makeoptions'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.23 1996/02/04 07:08:38 jonathan Exp $
a24 1
AWK?=	awk
d83 1
a83 1
		vnode_if.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
a115 3
vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src

d132 1
a132 1
	rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.[io] [a-z]*.s \
d153 1
a153 1
	vnode_if.c param.c ioconf.c ${CFILES} ${SFILES}
d155 1
a155 1
.depend: ${SRCS} assym.h vnode_if.h param.c
d157 1
a157 1
	mkdep -a ${CFLAGS} ${CPPFLAGS} vnode_if.c param.c ioconf.c ${CFILES}
@


1.24
log
@Fix mkdep problems due to missing flags.
@
text
@d24 7
a30 7
AS=	as
AWK=	awk
CC=	cc
CPP=	cpp
LD=	ld
STRIP=	strip -d
TOUCH=	touch -f -c
@


1.23
log
@A semicolon was missing from the SYSTEM_LD_TAIL stanza that converts
from elf to netbsd a.out, causing the mv to fail; add one.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.22 1996/02/03 00:44:18 mycroft Exp $
d39 1
a39 1
AFLAGS=		-D_LOCORE
d69 2
a70 2
NORMAL_S=	${CC} -traditional-cpp -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -traditional-cpp -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d160 1
a160 1
	mkdep -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PMAX}/pmax/locore.S ${PMAX}/pmax/fp.S
d162 1
a162 1
	mkdep -a -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${SFILES}
@


1.22
log
@Use `-traditional-cpp' when building .s and .S files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.21 1996/02/02 20:09:31 mycroft Exp $
d101 2
a102 1
SYSTEM_LD_TAIL+=mv $@@ $@@.elf; \
@


1.21
log
@Clone these, and fix many bugs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.20 1996/02/01 22:32:10 mycroft Exp $
d69 2
a70 2
NORMAL_S=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
@


1.20
log
@LOCORE -> _LOCORE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.19 1996/01/14 21:06:54 thorpej Exp $
d3 1
a3 3
#	@@(#)Makefile.pmax	8.2 (Berkeley) 2/16/94
#
# Makefile for 4.4 BSD
d8 1
a8 1
#	/sys/arch/MACHINE/conf/``machineid''
d10 1
a10 1
#	 config machineid
d12 1
a12 1
#	/sys/arch/MACHINE/conf/Makefile.``machinetype''
d21 2
d24 6
a29 2
# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
d36 5
a40 8
INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL -Dpmax -D__NetBSD__ ${GP}
CPPOPTS=${INCLUDES} ${IDENT} -D_KERNEL -Dpmax -D__NetBSD__
.ifdef DEBUG 
CFLAGS=	${DEBUG} -Werror -fno-builtin ${COPTS}
.else
CFLAGS= -O2 -Werror -fno-builtin ${COPTS}
.endif
a57 12
TARGET_MACHINE = pmax
TARGET_ARCH = mips
.if (${MACHINE} != pmax)
CC=	/usr/local/mips-dec-netbsd/bin/gcc
LD=	/usr/local/mips-dec-netbsd/bin/ld
AS=	/usr/local/mips-dec-netbsd/bin/as
AR=	/usr/local/mips-dec-netbsd/bin/ar
NM=	/usr/local/mips-dec-netbsd/bin/nm
LORDER=	NM=$(NM) sh ../../../../../../../usr.bin/lorder/lorder.sh.gnm
RANLIB=	/usr/local/mips-dec-netbsd/bin/ranlib
.endif

d63 2
a64 2
NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d66 2
a67 2
DRIVER_C=	${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d69 2
a70 4
PROFILE_C=	${CC} -p -c ${COPTS} $<

NORMAL_S=	${AS} ${COPTS} $< -o $@@
NORMAL_S_C=	${AS}  ${COPTS} ${PARAM} $< -o $@@
d76 2
d83 2
a84 3
SYSTEM_OBJ=	locore.o fp.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN} \
		${LIBCOMPAT}
#SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ} ${LIBKERN}
d86 17
a102 17
SYSTEM_LD_HEAD=	rm -f $@@
SYSTEM_LD=	-@@if [ X${DEBUG} = X-g ]; \
		then strip=-X; \
		else strip=-x; \
		fi; \
		echo ${LD} $$strip -N -o $@@ -e start -Ttext 80030000 \
			'$${SYSTEM_OBJ}' vers.o ; \
		${LD} $$strip -N -o $@@ -e start -Ttext 80030000 \
			${SYSTEM_OBJ} vers.o
#SYSTEM_LD_TAIL= @@echo rearranging symbols;\
#		symorder symbols.sort $@@;\
#SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@; \
#		[ X${DEBUG} = X-g ] && { \
#		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
#		echo strip -d $@@; strip -d $@@; } || true
SYSTEM_LD_TAIL=	mv $@@ ${@@}.elf; \
		elf2aout ${@@}.elf $@@; \
d107 2
a108 3
newvers:
	sh $S/conf/newvers.sh
	${CC} $(CFLAGS) -c vers.c
d110 2
a111 3
clean::
	rm -f eddep *vmunix vmunix.gdb tags *.o locore.i [a-z]*.s \
		vnode_if.[ch] Errs errs linterrs makelinks genassym
d113 2
a114 4
lint: /tmp param.c
	@@lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
	    ${PMAX}/pmax/Locore.c ${CFILES} ${PMAX}/pmax/swapgeneric.c \
	    ioconf.c param.c
d116 2
a117 3
symbols.sort: ${PMAX}/pmax/symbols.raw
	grep -v '^#' ${PMAX}/pmax/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort
d119 3
a121 3
locore.o: ${PMAX}/pmax/locore.S ${PMAX}/include/machAsmDefs.h \
	${PMAX}/include/machConst.h ${PMAX}/include/reg.h assym.h
	${CC} -c ${COPTS} ${PARAM} -D_LOCORE ${PMAX}/pmax/locore.S
d123 2
a124 3
fp.o: ${PMAX}/pmax/fp.S ${PMAX}/include/machAsmDefs.h \
	${PMAX}/include/machConst.h ${PMAX}/include/reg.h assym.h
	${CC} -c ${COPTS} ${PARAM} -D_LOCORE ${PMAX}/pmax/fp.S
d126 2
a127 2
# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o: Makefile
d129 3
a131 3
# the following are necessary because the files depend on the types of
# cpu's included in the system configuration
clock.o machdep.o autoconf.o conf.o: Makefile
a132 2
# depend on network configuration
uipc_proto.o vfs_conf.o: Makefile
d134 3
a136 2
assym.h: genassym
	./genassym >assym.h
d138 5
a142 2
genassym: ${PMAX}/pmax/genassym.c
	cc ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${PMAX}/pmax/genassym.c
d144 2
a145 3
depend: assym.h param.c vnode_if.h
	mkdep ${COPTS} ${CFILES} ioconf.c param.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${PMAX}/pmax/genassym.c
d152 1
a152 1
	  sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
d155 21
a175 9
tags:
	@@echo "see $S/kern/Makefile for tags"

ioconf.o: ioconf.c
	${CC} -c ${CFLAGS} ioconf.c

param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .
a176 2
param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c
d178 2
a179 3
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c
d181 2
a182 4
vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
a184 3



@


1.19
log
@Remove vnode_if.[ch] during a "make clean", per PR#536 from
Dan Carosone <danielce@@ee.mu.oz.au>.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.18 1995/12/17 09:09:42 jonathan Exp $
d138 1
a138 1
	${CC} -c ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/locore.S
d142 1
a142 1
	${CC} -c ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/fp.S
@


1.18
log
@Fix cross-compilation bug: native architecture is "pmax", not "mips".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.17 1995/11/25 05:55:38 mellon Exp $
d125 1
a125 1
		Errs errs linterrs makelinks genassym
@


1.17
log
@Provide compiler tool definitions for cross compilation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.16.2.2 1995/10/13 03:15:59 jonathan Exp $
d59 1
a59 1
.if (${MACHINE_ARCH} != pmax)
@


1.16
log
@Compile the kernel with -Werror and -fno-builtin.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.15 1995/06/24 20:46:54 christos Exp $
d57 12
d104 1
a104 1
			'$${SYSTEM_OBJ}' vers.o $(LIBKERN); \
d106 1
a106 1
			${SYSTEM_OBJ} vers.o $(LIBKERN)
d158 1
a158 1
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${PMAX}/pmax/genassym.c
@


1.16.2.1
log
@Fix bug introduced arount revision 1.14, which caused  $(LIBKERN) to be
linked into the kernel twice.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.16 1995/09/19 23:30:54 thorpej Exp $
d92 1
a92 1
			'$${SYSTEM_OBJ}' vers.o; \
@


1.16.2.2
log
@(really fix $(LIBKERN))
@
text
@d92 1
a92 1
			'$${SYSTEM_OBJ}' vers.o ; \
d94 1
a94 1
			${SYSTEM_OBJ} vers.o
@


1.15
log
@Makefile.`arch`:	- Add -lcompat
			- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.14 1995/06/09 06:44:41 jonathan Exp $
d36 1
a36 1
CFLAGS=	${DEBUG} ${COPTS}
d38 1
a38 1
CFLAGS= -O2 ${COPTS}
@


1.14
log
@Change default optimization level from -O to -O2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.13 1995/05/16 22:25:05 jtc Exp $
d48 9
d82 4
a85 3
SYSTEM_OBJ=	locore.o fp.o vnode_if.o ${OBJS} param.o ioconf.o $(LIBKERN)
#SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ} $(LIBKERN)
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ} $(LIBKERN)
d111 1
a111 1
clean:
d113 1
a113 1
		Errs errs linterrs makelinks
@


1.13
log
@Removing -DKERNEL, transition to _KERNEL has been completed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.12 1995/03/23 19:47:20 jtc Exp $
d38 1
a38 1
CFLAGS= -O ${COPTS}
@


1.12
log
@Added -D_KERNEL to CFLAGS alongside each -DKERNEL.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.11 1995/01/18 06:36:13 mellon Exp $
d33 2
a34 2
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -D_KERNEL -Dpmax -D__NetBSD__ ${GP}
CPPOPTS=${INCLUDES} ${IDENT} -DKERNEL -D_KERNEL -Dpmax -D__NetBSD__
@


1.11
log
@Make it easier to use different compilers (we hope)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.10 1994/12/12 19:34:59 dean Exp $
d33 2
a34 2
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dpmax -D__NetBSD__ ${GP}
CPPOPTS=${INCLUDES} ${IDENT} -DKERNEL -Dpmax -D__NetBSD__
@


1.10
log
@removed ifdef XXX
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.9 1994/11/22 18:57:25 dean Exp $
a25 4
AS=	as ${DEBUG}
CC=	cc ${DEBUG}
CPP=	cpp
LD=	ld
d33 1
a33 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dpmax -D__NetBSD__ -G0
d35 5
a39 1
CFLAGS=	-O ${COPTS}
d91 3
a93 1
SYSTEM_LD_TAIL=	chmod 755 $@@
d116 1
a116 1
	${CPP} ${CPPOPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/locore.S |${AS} -G0 -o locore.o
d120 1
a120 1
	${CPP} ${CPPOPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/fp.S | as -G0 -o fp.o
@


1.9
log
@run locore.S and fp.S through cpp
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.pmax,v 1.8 1994/10/26 21:08:45 cgd Exp $
a40 1
.if defined(XXX)
a46 3
.endif
.else
LIBKERN = ../libkern.a
@


1.8
log
@new RCS ID format.
@
text
@d1 1
a1 1
#	$NetBSD$
d27 2
a28 2
CC=	gcc ${DEBUG}
CPP=	gcpp
d37 2
a38 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dpmax -D__NetBSD__ -G 0
d77 1
a77 1
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o $(LIBKERN)
d116 1
a116 1
locore.o: ${PMAX}/pmax/locore.s ${PMAX}/include/machAsmDefs.h \
d118 5
a122 1
	${AS} ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/locore.s -o locore.o
@


1.7
log
@much works but untested w/new fs.  expect more tomorrow
@
text
@d1 3
a3 2
#	from: @@(#)Makefile.pmax	8.2 (Berkeley) 2/16/94
#       $Id: Makefile.pmax,v 1.5 1994/05/27 08:57:47 glass Exp $
@


1.6
log
@the evil -G 0 must be used on locore too
@
text
@d75 1
a75 1
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o $(LIBKERN) #vnode_if.o
d134 1
a134 1
depend: assym.h param.c #vnode_if.h
d163 4
a166 4
#vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
#	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
#vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
#	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
@


1.5
log
@bsd 4.4-lite pmax port as ported to NetBSD
@
text
@d2 1
a2 1
#       $Id$
d36 2
a37 2
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -Dpmax -D__NetBSD__
CFLAGS=	-G 0 -O ${COPTS}
@


1.4
log
@upgrade to bsd 4.4-lite code base. only mod is rcsids
@
text
@d2 1
a2 1
#	$Id$
d9 1
a9 1
#	/sys/conf/``machineid''
d13 1
a13 1
#	/sys/conf/Makefile.``machinetype''
d27 1
a27 1
CPP=	cpp
d32 2
a33 6
S=	/sys
PMAX=	$S/pmax

INCLUDES= -I. -I$S
COPTS=	${INCLUDES} ${IDENT} -DKERNEL
CFLAGS=	-O ${COPTS}
d35 15
d63 2
a64 2
NORMAL_S=	${CPP} ${COPTS} $< | ${AS} -o $@@
NORMAL_S_C=	${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@@
d75 3
a77 3
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o vnode_if.o
#SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ} libkern.a
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ} libkern.a
d84 1
a84 1
			'$${SYSTEM_OBJ}' vers.o libkern.a; \
d86 1
a86 1
			${SYSTEM_OBJ} vers.o libkern.a
a96 7
libkern.a:
	-@@if [ X${PROF} = X ]; \
	then ln -s $S/libkern/obj/libkern.a libkern.a; \
	else ln -s $S/libkern/obj/libkern_p.a libkern.a; \
	fi; \
	echo ln -s $S/libkern/obj/libkern.a libkern.a

d116 1
a116 2
	${CPP} ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/locore.s | \
	${AS} -o locore.o
d134 1
a134 1
depend: assym.h param.c vnode_if.h
d159 8
a166 4
vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
d169 3
@


1.3
log
@kill symbols.{raw,sort}; no longer necessary, with kvm dbs.
@
text
@d1 2
a2 2
# $Id: Makefile.pmax,v 1.2 1994/01/16 00:34:10 deraadt Exp $
# from:	@@(#)Makefile.pmax	7.7 (Berkeley) 2/20/93
d26 2
a27 4
#CC=	cc ${DEBUG}
CC=	gcc -nostdinc ${DEBUG}			# TEMP
#CPP=	cpp ${DEBUG}
CPP=	/lib/cpp				# TEMP
d32 2
a33 2
S=	../../../..
PMAX=	../..
d35 2
a36 2
INCLUDES= -I. -I${S}/arch -I${S} -I${S}/sys
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -DNETBSD
d52 2
a53 3
# TEMP commented out
#NORMAL_S=	${CPP} ${COPTS} $< | ${AS} -o $@@
#NORMAL_S_C=	${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@@
d64 2
a65 1
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o
d76 2
d82 1
a82 1
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@
d98 1
a98 1
	rm -f eddep *netbsd netbsd.gdb tags *.o locore.i [a-z]*.s \
d113 1
a113 6
		${AS} -o locore.o

fp.o: ${PMAX}/pmax/fp.s ${PMAX}/include/machAsmDefs.h \
	${PMAX}/include/machConst.h ${PMAX}/include/regdef.h assym.h
	${CPP} ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/fp.s | \
		${AS} -o fp.o
d123 1
a123 1
af.o uipc_proto.o vfs_conf.o: Makefile
d131 1
a131 1
depend: assym.h param.c
d155 5
@


1.2
log
@cleanup
@
text
@d1 1
a1 1
# $Id: Makefile.pmax,v 1.1.1.1 1993/10/12 03:22:20 deraadt Exp $
a77 2
#SYSTEM_LD_TAIL= @@echo rearranging symbols;\
#		symorder symbols.sort $@@;\
d82 1
a82 1
SYSTEM_LD_TAIL=	chmod 755 $@@
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Id: $
d26 4
a29 2
CC=	cc ${DEBUG}
CPP=	cpp
d34 2
a35 2
S=	../..
PMAX=	$S/pmax
d37 2
a38 2
INCLUDES= -I. -I$S
COPTS=	${INCLUDES} ${IDENT} -DKERNEL
d54 3
a56 2
NORMAL_S=	${CPP} ${COPTS} $< | ${AS} -o $@@
NORMAL_S_C=	${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@@
d67 1
a67 2
SYSTEM_OBJ=	locore.o ${OBJS} param.o ioconf.o vnode_if.o
#SYSTEM_DEP=	Makefile symbols.sort ${SYSTEM_OBJ} libkern.a
d100 1
a100 1
	rm -f eddep *vmunix vmunix.gdb tags *.o locore.i [a-z]*.s \
d115 6
a120 1
	${AS} -o locore.o
d138 1
a138 1
depend: assym.h param.c vnode_if.h
a161 5

vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
	sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
@


1.1.1.1
log
@pmax code from <ralphc@@pyramid.com> & <rick@@snowhite.cis.uoguelph.ca>
@
text
@@
