head	1.86;
access;
symbols
	netbsd-11-0-RC3:1.86
	netbsd-11-0-RC2:1.86
	netbsd-11-0-RC1:1.86
	perseant-exfatfs-base-20250801:1.86
	netbsd-11:1.86.0.8
	netbsd-11-base:1.86
	netbsd-10-1-RELEASE:1.85.20.1
	perseant-exfatfs-base-20240630:1.86
	perseant-exfatfs:1.86.0.6
	perseant-exfatfs-base:1.86
	netbsd-8-3-RELEASE:1.83
	netbsd-9-4-RELEASE:1.84
	netbsd-10-0-RELEASE:1.85.20.1
	netbsd-10-0-RC6:1.85.20.1
	netbsd-10-0-RC5:1.85.20.1
	netbsd-10-0-RC4:1.85.20.1
	netbsd-10-0-RC3:1.85.20.1
	netbsd-10-0-RC2:1.85.20.1
	thorpej-ifq:1.86.0.4
	thorpej-ifq-base:1.86
	thorpej-altq-separation:1.86.0.2
	thorpej-altq-separation-base:1.86
	netbsd-10-0-RC1:1.85.20.1
	netbsd-10:1.85.0.20
	netbsd-10-base:1.85
	bouyer-sunxi-drm:1.85.0.18
	bouyer-sunxi-drm-base:1.85
	netbsd-9-3-RELEASE:1.84
	thorpej-i2c-spi-conf2:1.85.0.16
	thorpej-i2c-spi-conf2-base:1.85
	thorpej-futex2:1.85.0.14
	thorpej-futex2-base:1.85
	thorpej-cfargs2:1.85.0.12
	thorpej-cfargs2-base:1.85
	cjep_sun2x-base1:1.85
	cjep_sun2x:1.85.0.10
	cjep_sun2x-base:1.85
	cjep_staticlib_x-base1:1.85
	netbsd-9-2-RELEASE:1.84
	cjep_staticlib_x:1.85.0.8
	cjep_staticlib_x-base:1.85
	thorpej-i2c-spi-conf:1.85.0.6
	thorpej-i2c-spi-conf-base:1.85
	thorpej-cfargs:1.85.0.4
	thorpej-cfargs-base:1.85
	thorpej-futex:1.85.0.2
	thorpej-futex-base:1.85
	netbsd-9-1-RELEASE:1.84
	bouyer-xenpvh-base2:1.84
	phil-wifi-20200421:1.84
	bouyer-xenpvh-base1:1.84
	phil-wifi-20200411:1.84
	bouyer-xenpvh:1.84.0.10
	bouyer-xenpvh-base:1.84
	is-mlppp:1.84.0.8
	is-mlppp-base:1.84
	phil-wifi-20200406:1.84
	netbsd-8-2-RELEASE:1.83
	ad-namecache-base3:1.84
	netbsd-9-0-RELEASE:1.84
	netbsd-9-0-RC2:1.84
	ad-namecache-base2:1.84
	ad-namecache-base1:1.84
	ad-namecache:1.84.0.6
	ad-namecache-base:1.84
	netbsd-9-0-RC1:1.84
	phil-wifi-20191119:1.84
	netbsd-9:1.84.0.4
	netbsd-9-base:1.84
	phil-wifi-20190609:1.84
	netbsd-8-1-RELEASE:1.83
	netbsd-8-1-RC1:1.83
	isaki-audio2:1.84.0.2
	isaki-audio2-base:1.84
	pgoyette-compat-merge-20190127:1.83.26.1
	pgoyette-compat-20190127:1.84
	pgoyette-compat-20190118:1.84
	pgoyette-compat-1226:1.84
	pgoyette-compat-1126:1.84
	pgoyette-compat-1020:1.84
	pgoyette-compat-0930:1.84
	pgoyette-compat-0906:1.83
	netbsd-7-2-RELEASE:1.83
	pgoyette-compat-0728:1.83
	netbsd-8-0-RELEASE:1.83
	phil-wifi:1.83.0.28
	phil-wifi-base:1.83
	pgoyette-compat-0625:1.83
	netbsd-8-0-RC2:1.83
	pgoyette-compat-0521:1.83
	pgoyette-compat-0502:1.83
	pgoyette-compat-0422:1.83
	netbsd-8-0-RC1:1.83
	pgoyette-compat-0415:1.83
	pgoyette-compat-0407:1.83
	pgoyette-compat-0330:1.83
	pgoyette-compat-0322:1.83
	pgoyette-compat-0315:1.83
	netbsd-7-1-2-RELEASE:1.83
	pgoyette-compat:1.83.0.26
	pgoyette-compat-base:1.83
	netbsd-7-1-1-RELEASE:1.83
	tls-maxphys-base-20171202:1.83
	matt-nb8-mediatek:1.83.0.24
	matt-nb8-mediatek-base:1.83
	nick-nhusb-base-20170825:1.83
	perseant-stdc-iso10646:1.83.0.22
	perseant-stdc-iso10646-base:1.83
	netbsd-8:1.83.0.20
	netbsd-8-base:1.83
	prg-localcount2-base3:1.83
	prg-localcount2-base2:1.83
	prg-localcount2-base1:1.83
	prg-localcount2:1.83.0.18
	prg-localcount2-base:1.83
	pgoyette-localcount-20170426:1.83
	bouyer-socketcan-base1:1.83
	jdolecek-ncq:1.83.0.16
	jdolecek-ncq-base:1.83
	pgoyette-localcount-20170320:1.83
	netbsd-7-1:1.83.0.14
	netbsd-7-1-RELEASE:1.83
	netbsd-7-1-RC2:1.83
	nick-nhusb-base-20170204:1.83
	netbsd-7-nhusb-base-20170116:1.83
	bouyer-socketcan:1.83.0.12
	bouyer-socketcan-base:1.83
	pgoyette-localcount-20170107:1.83
	netbsd-7-1-RC1:1.83
	nick-nhusb-base-20161204:1.83
	pgoyette-localcount-20161104:1.83
	netbsd-7-0-2-RELEASE:1.83
	nick-nhusb-base-20161004:1.83
	localcount-20160914:1.83
	netbsd-7-nhusb:1.83.0.10
	netbsd-7-nhusb-base:1.83
	pgoyette-localcount-20160806:1.83
	pgoyette-localcount-20160726:1.83
	pgoyette-localcount:1.83.0.8
	pgoyette-localcount-base:1.83
	nick-nhusb-base-20160907:1.83
	nick-nhusb-base-20160529:1.83
	netbsd-7-0-1-RELEASE:1.83
	nick-nhusb-base-20160422:1.83
	nick-nhusb-base-20160319:1.83
	nick-nhusb-base-20151226:1.83
	netbsd-7-0:1.83.0.6
	netbsd-7-0-RELEASE:1.83
	nick-nhusb-base-20150921:1.83
	netbsd-7-0-RC3:1.83
	netbsd-7-0-RC2:1.83
	netbsd-7-0-RC1:1.83
	nick-nhusb-base-20150606:1.83
	nick-nhusb-base-20150406:1.83
	nick-nhusb:1.83.0.4
	nick-nhusb-base:1.83
	netbsd-5-2-3-RELEASE:1.80
	netbsd-5-1-5-RELEASE:1.80
	netbsd-6-0-6-RELEASE:1.81
	netbsd-6-1-5-RELEASE:1.81
	netbsd-7:1.83.0.2
	netbsd-7-base:1.83
	yamt-pagecache-base9:1.81
	yamt-pagecache-tag8:1.81
	netbsd-6-1-4-RELEASE:1.81
	netbsd-6-0-5-RELEASE:1.81
	tls-earlyentropy:1.81.0.28
	tls-earlyentropy-base:1.83
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.81
	riastradh-drm2-base3:1.81
	netbsd-6-1-3-RELEASE:1.81
	netbsd-6-0-4-RELEASE:1.81
	netbsd-5-2-2-RELEASE:1.80
	netbsd-5-1-4-RELEASE:1.80
	netbsd-6-1-2-RELEASE:1.81
	netbsd-6-0-3-RELEASE:1.81
	netbsd-5-2-1-RELEASE:1.80
	netbsd-5-1-3-RELEASE:1.80
	rmind-smpnet-nbase:1.81
	netbsd-6-1-1-RELEASE:1.81
	riastradh-drm2-base2:1.81
	riastradh-drm2-base1:1.81
	riastradh-drm2:1.81.0.26
	riastradh-drm2-base:1.81
	rmind-smpnet:1.81.0.18
	rmind-smpnet-base:1.81
	netbsd-6-1:1.81.0.24
	netbsd-6-0-2-RELEASE:1.81
	netbsd-6-1-RELEASE:1.81
	khorben-n900:1.81.0.22
	netbsd-6-1-RC4:1.81
	netbsd-6-1-RC3:1.81
	agc-symver:1.81.0.20
	agc-symver-base:1.81
	netbsd-6-1-RC2:1.81
	netbsd-6-1-RC1:1.81
	yamt-pagecache-base8:1.81
	netbsd-5-2:1.80.0.36
	netbsd-6-0-1-RELEASE:1.81
	yamt-pagecache-base7:1.81
	netbsd-5-2-RELEASE:1.80
	netbsd-5-2-RC1:1.80
	matt-nb6-plus-nbase:1.81
	yamt-pagecache-base6:1.81
	netbsd-6-0:1.81.0.16
	netbsd-6-0-RELEASE:1.81
	netbsd-6-0-RC2:1.81
	tls-maxphys:1.81.0.14
	tls-maxphys-base:1.83
	matt-nb6-plus:1.81.0.12
	matt-nb6-plus-base:1.81
	netbsd-6-0-RC1:1.81
	jmcneill-usbmp-base10:1.81
	yamt-pagecache-base5:1.81
	jmcneill-usbmp-base9:1.81
	yamt-pagecache-base4:1.81
	jmcneill-usbmp-base8:1.81
	jmcneill-usbmp-base7:1.81
	jmcneill-usbmp-base6:1.81
	jmcneill-usbmp-base5:1.81
	jmcneill-usbmp-base4:1.81
	jmcneill-usbmp-base3:1.81
	jmcneill-usbmp-pre-base2:1.81
	jmcneill-usbmp-base2:1.81
	netbsd-6:1.81.0.10
	netbsd-6-base:1.81
	netbsd-5-1-2-RELEASE:1.80
	netbsd-5-1-1-RELEASE:1.80
	jmcneill-usbmp:1.81.0.8
	jmcneill-usbmp-base:1.81
	jmcneill-audiomp3:1.81.0.6
	jmcneill-audiomp3-base:1.81
	yamt-pagecache-base3:1.81
	yamt-pagecache-base2:1.81
	yamt-pagecache:1.81.0.4
	yamt-pagecache-base:1.81
	rmind-uvmplock-nbase:1.81
	cherry-xenmp:1.81.0.2
	cherry-xenmp-base:1.81
	uebayasi-xip-base7:1.81
	bouyer-quota2-nbase:1.81
	bouyer-quota2:1.80.0.34
	bouyer-quota2-base:1.81
	jruoho-x86intr:1.80.0.32
	jruoho-x86intr-base:1.80
	matt-mips64-premerge-20101231:1.80
	matt-nb5-mips64-premerge-20101231:1.80
	matt-nb5-pq3:1.80.0.30
	matt-nb5-pq3-base:1.80
	netbsd-5-1:1.80.0.28
	uebayasi-xip-base6:1.80
	uebayasi-xip-base5:1.80
	netbsd-5-1-RELEASE:1.80
	uebayasi-xip-base4:1.80
	uebayasi-xip-base3:1.80
	yamt-nfs-mp-base11:1.80
	netbsd-5-1-RC4:1.80
	matt-nb5-mips64-k15:1.80
	uebayasi-xip-base2:1.80
	yamt-nfs-mp-base10:1.80
	netbsd-5-1-RC3:1.80
	netbsd-5-1-RC2:1.80
	uebayasi-xip-base1:1.80
	netbsd-5-1-RC1:1.80
	rmind-uvmplock:1.80.0.26
	rmind-uvmplock-base:1.81
	yamt-nfs-mp-base9:1.80
	uebayasi-xip:1.80.0.24
	uebayasi-xip-base:1.80
	netbsd-5-0-2-RELEASE:1.80
	matt-nb5-mips64-premerge-20091211:1.80
	matt-premerge-20091211:1.80
	yamt-nfs-mp-base8:1.80
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.80
	matt-nb4-mips64-k7-u2a-k9b:1.80
	matt-nb5-mips64-u1-k1-k5:1.80
	yamt-nfs-mp-base7:1.80
	matt-nb5-mips64:1.80.0.22
	netbsd-5-0-1-RELEASE:1.80
	jymxensuspend-base:1.80
	yamt-nfs-mp-base6:1.80
	yamt-nfs-mp-base5:1.80
	yamt-nfs-mp-base4:1.80
	jym-xensuspend-nbase:1.81
	yamt-nfs-mp-base3:1.80
	nick-hppapmap-base4:1.80
	nick-hppapmap-base3:1.80
	netbsd-5-0:1.80.0.20
	netbsd-5-0-RELEASE:1.80
	netbsd-5-0-RC4:1.80
	netbsd-5-0-RC3:1.80
	nick-hppapmap-base2:1.80
	netbsd-5-0-RC2:1.80
	jym-xensuspend:1.80.0.18
	jym-xensuspend-base:1.81
	netbsd-5-0-RC1:1.80
	haad-dm-base2:1.80
	haad-nbase2:1.80
	ad-audiomp2:1.80.0.16
	ad-audiomp2-base:1.80
	netbsd-5:1.80.0.14
	netbsd-5-base:1.80
	nick-hppapmap:1.80.0.12
	nick-hppapmap-base:1.80
	matt-mips64-base2:1.80
	haad-dm-base1:1.80
	wrstuden-revivesa-base-4:1.80
	netbsd-4-0-1-RELEASE:1.77
	wrstuden-revivesa-base-3:1.80
	wrstuden-revivesa-base-2:1.80
	wrstuden-fixsa-newbase:1.77.10.1
	nick-csl-alignment-base5:1.78
	haad-dm:1.80.0.10
	haad-dm-base:1.80
	wrstuden-revivesa-base-1:1.80
	simonb-wapbl-nbase:1.80
	yamt-pf42-base4:1.80
	simonb-wapbl:1.80.0.8
	simonb-wapbl-base:1.80
	yamt-pf42-base3:1.80
	hpcarm-cleanup-nbase:1.80
	yamt-pf42-baseX:1.80
	yamt-pf42-base2:1.80
	yamt-nfs-mp-base2:1.80
	wrstuden-revivesa:1.80.0.6
	wrstuden-revivesa-base:1.80
	yamt-nfs-mp:1.80.0.4
	yamt-nfs-mp-base:1.80
	yamt-pf42:1.80.0.2
	yamt-pf42-base:1.80
	ad-socklock-base1:1.80
	yamt-lazymbuf-base15:1.80
	yamt-lazymbuf-base14:1.80
	keiichi-mipv6-nbase:1.80
	mjf-devfs2:1.79.0.6
	mjf-devfs2-base:1.80
	nick-net80211-sync:1.79.0.4
	nick-net80211-sync-base:1.79
	keiichi-mipv6:1.79.0.2
	keiichi-mipv6-base:1.80
	bouyer-xeni386-merge1:1.78.26.1
	matt-armv6-prevmlocking:1.78
	wrstuden-fixsa-base-1:1.77
	vmlocking2-base3:1.79
	netbsd-4-0:1.77.0.26
	netbsd-4-0-RELEASE:1.77
	bouyer-xeni386-nbase:1.79
	yamt-kmem-base3:1.78
	cube-autoconf:1.78.0.28
	cube-autoconf-base:1.78
	yamt-kmem-base2:1.78
	bouyer-xeni386:1.78.0.26
	bouyer-xeni386-base:1.79
	yamt-kmem:1.78.0.24
	yamt-kmem-base:1.78
	vmlocking2-base2:1.78
	reinoud-bufcleanup-nbase:1.78
	vmlocking2:1.78.0.22
	vmlocking2-base1:1.78
	netbsd-4-0-RC5:1.77
	matt-nb4-arm:1.77.0.24
	matt-nb4-arm-base:1.77
	matt-armv6-nbase:1.80
	jmcneill-base:1.78
	netbsd-4-0-RC4:1.77
	mjf-devfs:1.78.0.20
	mjf-devfs-base:1.79
	bouyer-xenamd64-base2:1.78
	vmlocking-nbase:1.78
	yamt-x86pmap-base4:1.78
	bouyer-xenamd64:1.78.0.18
	bouyer-xenamd64-base:1.78
	netbsd-4-0-RC3:1.77
	yamt-x86pmap-base3:1.78
	yamt-x86pmap-base2:1.78
	netbsd-4-0-RC2:1.77
	yamt-x86pmap:1.78.0.16
	yamt-x86pmap-base:1.78
	netbsd-4-0-RC1:1.77
	matt-armv6:1.78.0.14
	matt-armv6-base:1.79
	jmcneill-pm:1.78.0.12
	jmcneill-pm-base:1.78
	hpcarm-cleanup:1.78.0.10
	hpcarm-cleanup-base:1.79
	nick-csl-alignment:1.78.0.8
	nick-csl-alignment-base:1.78
	matt-mips64:1.78.0.6
	matt-mips64-base:1.78
	netbsd-3-1-1-RELEASE:1.73
	netbsd-3-0-3-RELEASE:1.73
	yamt-idlelwp-base8:1.78
	wrstuden-fixsa:1.77.0.22
	wrstuden-fixsa-base:1.77.10.1
	ppcoea-renovation:1.78.0.4
	ppcoea-renovation-base:1.78
	thorpej-atomic:1.78.0.2
	thorpej-atomic-base:1.78
	reinoud-bufcleanup:1.77.0.20
	reinoud-bufcleanup-base:1.78
	mjf-ufs-trans:1.77.0.18
	mjf-ufs-trans-base:1.78
	vmlocking:1.77.0.16
	vmlocking-base:1.78
	ad-audiomp:1.77.0.14
	ad-audiomp-base:1.77
	yamt-idlelwp:1.77.0.12
	post-newlock2-merge:1.77
	newlock2-nbase:1.77
	yamt-splraiseipl-base5:1.77
	yamt-splraiseipl-base4:1.77
	yamt-splraiseipl-base3:1.77
	abandoned-netbsd-4-base:1.77
	abandoned-netbsd-4:1.77.0.4
	netbsd-3-1:1.73.0.14
	netbsd-3-1-RELEASE:1.73
	netbsd-3-0-2-RELEASE:1.73
	yamt-splraiseipl-base2:1.77
	netbsd-3-1-RC4:1.73
	yamt-splraiseipl:1.77.0.8
	yamt-splraiseipl-base:1.77
	netbsd-3-1-RC3:1.73
	yamt-pdpolicy-base9:1.77
	newlock2:1.77.0.6
	newlock2-base:1.77
	yamt-pdpolicy-base8:1.77
	netbsd-3-1-RC2:1.73
	netbsd-3-1-RC1:1.73
	yamt-pdpolicy-base7:1.77
	netbsd-4:1.77.0.10
	netbsd-4-base:1.77
	yamt-pdpolicy-base6:1.77
	chap-midi-nbase:1.77
	netbsd-3-0-1-RELEASE:1.73
	gdamore-uart:1.77.0.2
	gdamore-uart-base:1.77
	simonb-timcounters-final:1.75.6.2
	yamt-pdpolicy-base5:1.76
	chap-midi:1.76.0.2
	chap-midi-base:1.77
	yamt-pdpolicy-base4:1.76
	yamt-pdpolicy-base3:1.75
	peter-altq-base:1.75
	peter-altq:1.75.0.12
	yamt-pdpolicy-base2:1.75
	elad-kernelauth-base:1.76
	elad-kernelauth:1.75.0.10
	yamt-pdpolicy:1.75.0.8
	yamt-pdpolicy-base:1.75
	yamt-uio_vmspace-base5:1.75
	simonb-timecounters:1.75.0.6
	simonb-timecounters-base:1.77
	rpaulo-netinet-merge-pcb:1.75.0.4
	rpaulo-netinet-merge-pcb-base:1.77
	yamt-uio_vmspace:1.75.0.2
	netbsd-3-0:1.73.0.12
	netbsd-3-0-RELEASE:1.73
	netbsd-3-0-RC6:1.73
	yamt-readahead-base3:1.74
	netbsd-3-0-RC5:1.73
	netbsd-3-0-RC4:1.73
	netbsd-3-0-RC3:1.73
	yamt-readahead-base2:1.74
	netbsd-3-0-RC2:1.73
	yamt-readahead-pervnode:1.74
	yamt-readahead-perfile:1.74
	yamt-readahead:1.74.0.8
	yamt-readahead-base:1.74
	netbsd-3-0-RC1:1.73
	yamt-vop-base3:1.74
	netbsd-2-0-3-RELEASE:1.72
	netbsd-2-1:1.72.4.1.0.2
	yamt-vop-base2:1.74
	thorpej-vnode-attr:1.74.0.6
	thorpej-vnode-attr-base:1.74
	netbsd-2-1-RELEASE:1.72.4.1
	yamt-vop:1.74.0.4
	yamt-vop-base:1.74
	netbsd-2-1-RC6:1.72.4.1
	netbsd-2-1-RC5:1.72.4.1
	netbsd-2-1-RC4:1.72.4.1
	netbsd-2-1-RC3:1.72.4.1
	netbsd-2-1-RC2:1.72.4.1
	netbsd-2-1-RC1:1.72.4.1
	yamt-lazymbuf:1.74.0.2
	yamt-km-base4:1.73
	netbsd-2-0-2-RELEASE:1.72
	yamt-km-base3:1.73
	netbsd-3:1.73.0.10
	netbsd-3-base:1.73
	yamt-km-base2:1.73
	yamt-km:1.73.0.6
	yamt-km-base:1.73
	kent-audio2:1.73.0.4
	kent-audio2-base:1.73
	netbsd-2-0-1-RELEASE:1.72
	kent-audio1-beforemerge:1.73
	netbsd-2:1.72.0.4
	netbsd-2-base:1.72
	kent-audio1:1.73.0.2
	kent-audio1-base:1.73
	netbsd-2-0-RELEASE:1.72
	netbsd-2-0-RC5:1.72
	netbsd-2-0-RC4:1.72
	netbsd-2-0-RC3:1.72
	netbsd-2-0-RC2:1.72
	netbsd-2-0-RC1:1.72
	netbsd-2-0:1.72.0.2
	netbsd-2-0-base:1.72
	netbsd-1-6-PATCH002-RELEASE:1.69.10.1
	netbsd-1-6-PATCH002:1.69.10.1
	netbsd-1-6-PATCH002-RC4:1.69.10.1
	netbsd-1-6-PATCH002-RC3:1.69.10.1
	netbsd-1-6-PATCH002-RC2:1.69.10.1
	netbsd-1-6-PATCH002-RC1:1.69.10.1
	ktrace-lwp:1.70.0.6
	ktrace-lwp-base:1.74
	netbsd-1-6-PATCH001:1.69.10.1
	netbsd-1-6-PATCH001-RELEASE:1.69.10.1
	netbsd-1-6-PATCH001-RC3:1.69.10.1
	netbsd-1-6-PATCH001-RC2:1.69.10.1
	netbsd-1-6-PATCH001-RC1:1.69.10.1
	nathanw_sa_end:1.63.2.4
	nathanw_sa_before_merge:1.70
	fvdl_fs64_base:1.70
	gmcgarry_ctxsw:1.70.0.4
	gmcgarry_ctxsw_base:1.70
	gmcgarry_ucred:1.70.0.2
	gmcgarry_ucred_base:1.70
	nathanw_sa_base:1.70
	kqueue-aftermerge:1.69
	kqueue-beforemerge:1.69
	netbsd-1-6-RELEASE:1.69
	netbsd-1-6-RC3:1.69
	netbsd-1-6-RC2:1.69
	netbsd-1-6-RC1:1.69
	netbsd-1-6:1.69.0.10
	netbsd-1-6-base:1.69
	gehenna-devsw:1.69.0.8
	gehenna-devsw-base:1.69
	netbsd-1-5-PATCH003:1.55
	eeh-devprop:1.69.0.6
	eeh-devprop-base:1.69
	newlock:1.69.0.4
	newlock-base:1.69
	ifpoll-base:1.69
	nathanw_sa:1.63.0.2
	thorpej-mips-cache:1.61.0.2
	thorpej-mips-cache-base:1.62
	thorpej-devvp-base3:1.60
	thorpej-devvp-base2:1.60
	post-chs-ubcperf:1.60
	pre-chs-ubcperf:1.60
	thorpej-devvp:1.59.0.4
	thorpej-devvp-base:1.59
	netbsd-1-5-PATCH002:1.55
	kqueue:1.59.0.2
	kqueue-base:1.69
	netbsd-1-5-PATCH001:1.55
	thorpej_scsipi_beforemerge:1.57
	thorpej_scsipi_nbase:1.57
	netbsd-1-5-RELEASE:1.55
	netbsd-1-5-BETA2:1.55
	netbsd-1-5-BETA:1.55
	netbsd-1-4-PATCH003:1.47
	netbsd-1-5-ALPHA2:1.55
	netbsd-1-5:1.55.0.4
	netbsd-1-5-base:1.55
	minoura-xpg4dl-base:1.55
	minoura-xpg4dl:1.55.0.2
	netbsd-1-4-PATCH002:1.47
	chs-ubc2-newbase:1.53
	wrstuden-devbsize-19991221:1.49
	wrstuden-devbsize:1.49.0.8
	wrstuden-devbsize-base:1.49
	kame_141_19991130:1.47
	comdex-fall-1999:1.49.0.6
	comdex-fall-1999-base:1.49
	fvdl-softdep:1.49.0.4
	fvdl-softdep-base:1.49
	thorpej_scsipi:1.49.0.2
	thorpej_scsipi_base:1.57
	netbsd-1-4-PATCH001:1.47
	kame_14_19990705:1.47
	kame_14_19990628:1.47
	kame:1.47.0.6
	chs-ubc2:1.47.0.4
	chs-ubc2-base:1.49
	netbsd-1-4-RELEASE:1.47
	netbsd-1-4:1.47.0.2
	netbsd-1-4-base:1.47
	netbsd-1-3-PATCH003:1.34.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.34.2.1
	kenh-if-detach:1.45.0.4
	kenh-if-detach-base:1.45
	netbsd-1-3-PATCH003-CANDIDATE1:1.34.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.34.2.1
	chs-ubc:1.45.0.2
	chs-ubc-base:1.45
	eeh-paddr_t:1.42.0.2
	eeh-paddr_t-base:1.42
	netbsd-1-3-PATCH002:1.34.2.1
	netbsd-1-3-PATCH001:1.34.2.1
	netbsd-1-3-RELEASE:1.34.2.1
	netbsd-1-3-BETA:1.34.2.1
	netbsd-1-3:1.34.0.2
	netbsd-1-3-base:1.34
	thorpej-signal:1.32.0.6
	thorpej-signal-base:1.32
	marc-pcmcia:1.32.0.4
	marc-pcmcia-bp:1.32
	marc-pcmcia-base:1.34
	bouyer-scsipi:1.32.0.2
	is-newarp-before-merge:1.31
	is-newarp:1.30.0.4
	is-newarp-base:1.30
	netbsd-1-2-PATCH001:1.21
	mrg-vm-swap:1.30.0.2
	thorpej-setroot:1.28.0.2
	netbsd-1-2-RELEASE:1.21
	netbsd-1-2-BETA:1.21
	netbsd-1-2:1.21.0.4
	netbsd-1-2-base:1.21
	netbsd-1-1-PATCH001:1.12
	netbsd-1-1-RELEASE:1.12
	netbsd-1-1:1.12.0.2
	netbsd-1-1-base:1.12
	netbsd-1-0-PATCH06:1.2
	netbsd-1-0-PATCH05:1.2
	netbsd-1-0-PATCH04:1.2
	netbsd-1-0-PATCH03:1.2
	netbsd-1-0-PATCH02:1.2
	netbsd-1-0-PATCH1:1.2
	netbsd-1-0-PATCH0:1.2
	netbsd-1-0-RELEASE:1.2
	netbsd-1-0:1.2.0.2
	netbsd-1-0-base:1.2;
locks; strict;
comment	@# @;


1.86
date	2023.10.07.12.15.54;	author rin;	state Exp;
branches;
next	1.85;
commitid	vmlIp8dcEoVdRGHE;

1.85
date	2020.09.15.05.08.07;	author mrg;	state Exp;
branches
	1.85.20.1;
next	1.84;
commitid	si9yZMWUsph8p6oC;

1.84
date	2018.09.22.12.24.03;	author rin;	state Exp;
branches;
next	1.83;
commitid	oPiNEJ7VnAF626TA;

1.83
date	2014.06.14.20.49.37;	author mrg;	state Exp;
branches
	1.83.26.1
	1.83.28.1;
next	1.82;

1.82
date	2014.06.04.21.24.54;	author matt;	state Exp;
branches;
next	1.81;

1.81
date	2011.01.21.15.59.10;	author joerg;	state Exp;
branches
	1.81.14.1
	1.81.28.1;
next	1.80;

1.80
date	2008.03.01.13.59.56;	author joerg;	state Exp;
branches
	1.80.26.1
	1.80.32.1
	1.80.34.1;
next	1.79;

1.79
date	2007.12.22.08.17.57;	author tsutsui;	state Exp;
branches
	1.79.2.1
	1.79.6.1;
next	1.78;

1.78
date	2007.03.31.05.59.45;	author matt;	state Exp;
branches
	1.78.14.1
	1.78.22.1
	1.78.26.1;
next	1.77;

1.77
date	2006.06.02.22.16.18;	author mrg;	state Exp;
branches
	1.77.10.1
	1.77.12.1
	1.77.16.1
	1.77.18.1
	1.77.22.1;
next	1.76;

1.76
date	2006.04.07.19.38.59;	author mrg;	state Exp;
branches
	1.76.2.1;
next	1.75;

1.75
date	2005.12.11.12.19.34;	author christos;	state Exp;
branches
	1.75.4.1
	1.75.6.1
	1.75.8.1
	1.75.10.1
	1.75.12.1;
next	1.74;

1.74
date	2005.05.31.04.03.11;	author christos;	state Exp;
branches
	1.74.2.1;
next	1.73;

1.73
date	2004.06.04.04.45.51;	author thorpej;	state Exp;
branches;
next	1.72;

1.72
date	2003.12.10.04.59.35;	author simonb;	state Exp;
branches
	1.72.4.1;
next	1.71;

1.71
date	2003.12.08.09.28.36;	author matt;	state Exp;
branches;
next	1.70;

1.70
date	2002.11.05.14.35.33;	author thorpej;	state Exp;
branches
	1.70.6.1;
next	1.69;

1.69
date	2002.02.23.23.48.00;	author matt;	state Exp;
branches
	1.69.10.1;
next	1.68;

1.68
date	2002.02.11.00.25.19;	author thorpej;	state Exp;
branches;
next	1.67;

1.67
date	2001.12.23.02.14.03;	author matt;	state Exp;
branches;
next	1.66;

1.66
date	2001.11.23.15.44.15;	author atatat;	state Exp;
branches;
next	1.65;

1.65
date	2001.11.23.05.19.02;	author atatat;	state Exp;
branches;
next	1.64;

1.64
date	2001.11.20.12.56.42;	author lukem;	state Exp;
branches;
next	1.63;

1.63
date	2001.11.16.00.23.04;	author atatat;	state Exp;
branches
	1.63.2.1;
next	1.62;

1.62
date	2001.10.26.06.45.41;	author jmc;	state Exp;
branches;
next	1.61;

1.61
date	2001.10.23.19.26.47;	author thorpej;	state Exp;
branches
	1.61.2.1;
next	1.60;

1.60
date	2001.09.09.22.53.02;	author matt;	state Exp;
branches;
next	1.59;

1.59
date	2001.06.25.05.12.01;	author matt;	state Exp;
branches
	1.59.2.1
	1.59.4.1;
next	1.58;

1.58
date	2001.05.29.02.20.26;	author mrg;	state Exp;
branches;
next	1.57;

1.57
date	2001.02.08.15.19.14;	author chs;	state Exp;
branches
	1.57.2.1;
next	1.56;

1.56
date	2000.12.17.15.52.44;	author jdolecek;	state Exp;
branches;
next	1.55;

1.55
date	2000.05.09.00.56.28;	author hubertf;	state Exp;
branches;
next	1.54;

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

1.53
date	2000.02.01.05.25.48;	author tsutsui;	state Exp;
branches;
next	1.52;

1.52
date	2000.01.24.20.36.18;	author tron;	state Exp;
branches;
next	1.51;

1.51
date	2000.01.19.16.30.01;	author tsutsui;	state Exp;
branches;
next	1.50;

1.50
date	2000.01.19.14.45.14;	author tsutsui;	state Exp;
branches;
next	1.49;

1.49
date	99.07.26.05.20.49;	author cgd;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	99.07.09.09.53.01;	author mrg;	state Exp;
branches;
next	1.47;

1.47
date	99.01.17.19.09.00;	author matt;	state Exp;
branches
	1.47.4.1;
next	1.46;

1.46
date	99.01.08.19.26.15;	author augustss;	state Exp;
branches;
next	1.45;

1.45
date	98.10.15.18.37.17;	author drochner;	state Exp;
branches;
next	1.44;

1.44
date	98.09.05.15.15.18;	author lukem;	state Exp;
branches;
next	1.43;

1.43
date	98.08.22.09.16.45;	author ragge;	state Exp;
branches;
next	1.42;

1.42
date	98.05.31.23.25.43;	author thorpej;	state Exp;
branches;
next	1.41;

1.41
date	98.05.22.09.59.55;	author ragge;	state Exp;
branches;
next	1.40;

1.40
date	98.05.03.12.59.56;	author ragge;	state Exp;
branches;
next	1.39;

1.39
date	98.04.12.23.47.45;	author tv;	state Exp;
branches;
next	1.38;

1.38
date	97.11.12.23.12.37;	author thorpej;	state Exp;
branches;
next	1.37;

1.37
date	97.11.12.22.26.42;	author thorpej;	state Exp;
branches;
next	1.36;

1.36
date	97.11.04.22.59.42;	author ragge;	state Exp;
branches;
next	1.35;

1.35
date	97.11.03.20.00.31;	author ragge;	state Exp;
branches;
next	1.34;

1.34
date	97.10.03.07.17.49;	author lukem;	state Exp;
branches
	1.34.2.1;
next	1.33;

1.33
date	97.09.30.23.07.45;	author christos;	state Exp;
branches;
next	1.32;

1.32
date	97.03.14.23.27.35;	author mycroft;	state Exp;
branches
	1.32.4.1;
next	1.31;

1.31
date	97.02.12.18.07.53;	author ragge;	state Exp;
branches;
next	1.30;

1.30
date	97.02.04.05.08.54;	author perry;	state Exp;
branches
	1.30.4.1;
next	1.29;

1.29
date	97.02.04.04.32.24;	author perry;	state Exp;
branches;
next	1.28;

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

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

1.26
date	96.08.31.21.41.56;	author mycroft;	state Exp;
branches;
next	1.25;

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

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

1.23
date	96.08.10.05.29.55;	author mycroft;	state Exp;
branches;
next	1.22;

1.22
date	96.07.01.21.07.28;	author ragge;	state Exp;
branches;
next	1.21;

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

1.20
date	96.02.29.20.57.46;	author cgd;	state Exp;
branches;
next	1.19;

1.19
date	96.02.26.02.53.53;	author mycroft;	state Exp;
branches;
next	1.18;

1.18
date	96.02.09.02.21.38;	author mycroft;	state Exp;
branches;
next	1.17;

1.17
date	96.02.03.00.44.30;	author mycroft;	state Exp;
branches;
next	1.16;

1.16
date	96.02.02.20.09.45;	author mycroft;	state Exp;
branches;
next	1.15;

1.15
date	96.02.02.19.08.36;	author mycroft;	state Exp;
branches;
next	1.14;

1.14
date	96.02.02.13.38.29;	author mycroft;	state Exp;
branches;
next	1.13;

1.13
date	96.02.01.22.33.21;	author mycroft;	state Exp;
branches;
next	1.12;

1.12
date	95.09.19.23.57.55;	author thorpej;	state Exp;
branches;
next	1.11;

1.11
date	95.07.24.18.58.32;	author ragge;	state Exp;
branches;
next	1.10;

1.10
date	95.07.05.08.17.17;	author ragge;	state Exp;
branches;
next	1.9;

1.9
date	95.06.24.21.14.40;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	95.05.16.22.25.24;	author jtc;	state Exp;
branches;
next	1.7;

1.7
date	95.03.23.19.47.43;	author jtc;	state Exp;
branches;
next	1.6;

1.6
date	95.02.23.17.50.57;	author ragge;	state Exp;
branches;
next	1.5;

1.5
date	95.02.13.00.41.56;	author ragge;	state Exp;
branches;
next	1.4;

1.4
date	94.10.26.08.01.42;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	94.10.08.15.42.28;	author ragge;	state Exp;
branches;
next	1.2;

1.2
date	94.08.16.23.41.11;	author ragge;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	94.08.02.20.19.22;	author ragge;	state Exp;
branches;
next	;

1.85.20.1
date	2023.10.08.14.35.23;	author martin;	state Exp;
branches;
next	;
commitid	u2OxnQINGCBFBPHE;

1.83.26.1
date	2018.09.30.01.45.48;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.83.28.1
date	2019.06.10.22.06.51;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.81.14.1
date	2014.08.20.00.03.27;	author tls;	state Exp;
branches;
next	;

1.81.28.1
date	2014.08.10.06.54.09;	author tls;	state Exp;
branches;
next	;

1.80.26.1
date	2011.03.05.20.52.15;	author rmind;	state Exp;
branches;
next	;

1.80.32.1
date	2011.06.06.09.06.58;	author jruoho;	state Exp;
branches;
next	;

1.80.34.1
date	2011.02.08.16.19.43;	author bouyer;	state Exp;
branches;
next	;

1.79.2.1
date	2008.03.24.07.15.05;	author keiichi;	state Exp;
branches;
next	;

1.79.6.1
date	2008.04.03.12.42.27;	author mjf;	state Exp;
branches;
next	;

1.78.14.1
date	2008.01.09.01.49.32;	author matt;	state Exp;
branches;
next	1.78.14.2;

1.78.14.2
date	2008.03.23.02.04.25;	author matt;	state Exp;
branches;
next	;

1.78.22.1
date	2007.12.26.19.42.52;	author ad;	state Exp;
branches;
next	;

1.78.26.1
date	2008.01.02.21.51.09;	author bouyer;	state Exp;
branches;
next	;

1.77.10.1
date	2008.04.19.16.07.22;	author bouyer;	state Exp;
branches;
next	;

1.77.12.1
date	2007.04.07.17.20.53;	author matt;	state Exp;
branches;
next	;

1.77.16.1
date	2007.04.10.13.23.19;	author ad;	state Exp;
branches;
next	;

1.77.18.1
date	2007.07.11.20.02.54;	author mjf;	state Exp;
branches;
next	;

1.77.22.1
date	2008.04.07.13.18.27;	author skrll;	state Exp;
branches;
next	;

1.76.2.1
date	2006.06.19.03.45.15;	author chap;	state Exp;
branches;
next	;

1.75.4.1
date	2006.09.09.02.44.14;	author rpaulo;	state Exp;
branches;
next	;

1.75.6.1
date	2006.04.22.11.38.06;	author simonb;	state Exp;
branches;
next	1.75.6.2;

1.75.6.2
date	2006.06.03.19.44.03;	author kardel;	state Exp;
branches;
next	;

1.75.8.1
date	2006.04.11.11.53.47;	author yamt;	state Exp;
branches;
next	1.75.8.2;

1.75.8.2
date	2006.06.26.12.45.40;	author yamt;	state Exp;
branches;
next	;

1.75.10.1
date	2006.04.19.02.33.57;	author elad;	state Exp;
branches;
next	;

1.75.12.1
date	2006.05.24.15.48.24;	author tron;	state Exp;
branches;
next	;

1.74.2.1
date	2006.06.21.14.57.17;	author yamt;	state Exp;
branches;
next	1.74.2.2;

1.74.2.2
date	2007.09.03.14.30.46;	author yamt;	state Exp;
branches;
next	1.74.2.3;

1.74.2.3
date	2008.01.21.09.39.59;	author yamt;	state Exp;
branches;
next	1.74.2.4;

1.74.2.4
date	2008.03.17.09.14.28;	author yamt;	state Exp;
branches;
next	;

1.72.4.1
date	2005.02.06.07.45.26;	author jmc;	state Exp;
branches;
next	;

1.70.6.1
date	2004.08.03.10.42.22;	author skrll;	state Exp;
branches;
next	1.70.6.2;

1.70.6.2
date	2004.09.18.14.41.58;	author skrll;	state Exp;
branches;
next	1.70.6.3;

1.70.6.3
date	2004.09.21.13.23.40;	author skrll;	state Exp;
branches;
next	1.70.6.4;

1.70.6.4
date	2005.11.10.13.59.59;	author skrll;	state Exp;
branches;
next	;

1.69.10.1
date	2003.01.26.10.08.47;	author jmc;	state Exp;
branches;
next	;

1.63.2.1
date	2001.11.16.00.23.04;	author nathanw;	state dead;
branches;
next	1.63.2.2;

1.63.2.2
date	2002.01.08.00.28.30;	author nathanw;	state Exp;
branches;
next	1.63.2.3;

1.63.2.3
date	2002.02.28.04.12.29;	author nathanw;	state Exp;
branches;
next	1.63.2.4;

1.63.2.4
date	2002.11.11.22.05.51;	author nathanw;	state Exp;
branches;
next	;

1.61.2.1
date	2001.11.12.21.17.39;	author thorpej;	state Exp;
branches;
next	;

1.59.2.1
date	2001.09.13.01.15.05;	author thorpej;	state Exp;
branches;
next	1.59.2.2;

1.59.2.2
date	2002.01.10.19.50.01;	author thorpej;	state Exp;
branches;
next	1.59.2.3;

1.59.2.3
date	2002.03.16.16.00.13;	author jdolecek;	state Exp;
branches;
next	;

1.59.4.1
date	2001.10.01.12.42.56;	author fvdl;	state Exp;
branches;
next	;

1.57.2.1
date	2001.06.21.19.37.56;	author nathanw;	state Exp;
branches;
next	;

1.49.2.1
date	2000.11.20.20.32.43;	author bouyer;	state Exp;
branches;
next	1.49.2.2;

1.49.2.2
date	2001.01.05.17.35.13;	author bouyer;	state Exp;
branches;
next	1.49.2.3;

1.49.2.3
date	2001.02.11.19.12.56;	author bouyer;	state Exp;
branches;
next	;

1.47.4.1
date	99.08.02.21.47.19;	author thorpej;	state Exp;
branches;
next	;

1.34.2.1
date	97.11.12.23.45.55;	author thorpej;	state Exp;
branches;
next	;

1.32.4.1
date	97.10.14.10.19.54;	author thorpej;	state Exp;
branches;
next	;

1.30.4.1
date	97.03.12.21.18.41;	author is;	state Exp;
branches;
next	;

1.2.2.1
date	94.08.16.23.41.11;	author ragge;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	94.08.16.23.41.12;	author ragge;	state Exp;
branches;
next	;


desc
@@


1.86
log
@Drop -O[01] hacks for vax; no longer necessary for patched GCC 10

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

XXXRO: GCC 12 may require hacks for a while, but it turned out that
GCC 12 should be treated differently from older versions; a lot of new
files need -O[01] flags, while some may no longer require it.

I will take a look later.

Note that these hacks are not required if Kalvis's patches for GCC 12
are applied.

Keep doc/HACKS entries for a while (will be sync with update for GCC 12).

diff --git a/crypto/external/bsd/openssh/lib/Makefile b/crypto/external/bsd/openssh/lib/Makefile
index 96a93f5e396..4e38be1b642 100644
--- a/crypto/external/bsd/openssh/lib/Makefile
+++ b/crypto/external/bsd/openssh/lib/Makefile
@@@@ -117,12 +117,6 @@@@ COPTS.${f}.c+=	-Wno-pointer-sign
 # XXX
 COPTS.channels.c+=	-fno-strict-aliasing

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.poly1305.c+=	-O0
-COPTS.umac.c+=		-O0
-.endif
-
 COPTS.hostfile.c+=	${CC_WNO_FORMAT_TRUNCATION}
 COPTS.sshkey.c+=	${CC_WNO_FORMAT_TRUNCATION}
 COPTS.cipher.c+=	-Wno-error=deprecated-declarations
diff --git a/distrib/utils/x_ping/Makefile b/distrib/utils/x_ping/Makefile
index f1c452a0d60..8ee77580a3f 100644
--- a/distrib/utils/x_ping/Makefile
+++ b/distrib/utils/x_ping/Makefile
@@@@ -12,10 +12,6 @@@@ CPPFLAGS+=	-I${SRCDIR} -DCRUNCHOPS
 DPADD=		${LIBM}
 LDADD=		-lm

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
 .include <bsd.prog.mk>

 .PATH:		${SRCDIR}
diff --git a/external/apache2/argon2/lib/libargon2/Makefile.inc b/external/apache2/argon2/lib/libargon2/Makefile.inc
index d3f4470c6c7..6a1dd146d7d 100644
--- a/external/apache2/argon2/lib/libargon2/Makefile.inc
+++ b/external/apache2/argon2/lib/libargon2/Makefile.inc
@@@@ -16,7 +16,3 @@@@ CFLAGS+=	-pthread
 LDADD+=-lpthread
 DPADD+=${LIBPTHREAD}
 .endif
-
-.if ${MACHINE} == "vax"
-COPTS.blake2b.c+=	-O0
-.endif
diff --git a/external/bsd/jemalloc/lib/Makefile.inc b/external/bsd/jemalloc/lib/Makefile.inc
index 2f524358f46..d5da774f293 100644
--- a/external/bsd/jemalloc/lib/Makefile.inc
+++ b/external/bsd/jemalloc/lib/Makefile.inc
@@@@ -53,12 +53,6 @@@@ COPTS.ctl.c+=-Wno-error=stack-protector
 COPTS.stats.c+=-Wno-error=stack-protector
 COPTS.tcache.c+=-Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-# in merge_overlapping_regs, at regrename.c
-COPTS.arena.c+=-O0
-COPTS.extent.c+=-O0
-.endif
-
 SRCS+=${JEMALLOC_SRCS}

 jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \
diff --git a/external/bsd/mdocml/lib/libmandoc/Makefile b/external/bsd/mdocml/lib/libmandoc/Makefile
index 40d7e29ae88..dfd3077a2c7 100644
--- a/external/bsd/mdocml/lib/libmandoc/Makefile
+++ b/external/bsd/mdocml/lib/libmandoc/Makefile
@@@@ -39,11 +39,6 @@@@ tbl_opts.c

 MAN=	mandoc.3

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.mdoc_macro.c+=-O0
-.endif
-
 COPTS.man_validate.c+=-Wno-error=array-bounds

 .include <bsd.lib.mk>
diff --git a/external/gpl3/binutils.old/lib/libbfd/Makefile b/external/gpl3/binutils.old/lib/libbfd/Makefile
index 03477232b55..74a354532fa 100644
--- a/external/gpl3/binutils.old/lib/libbfd/Makefile
+++ b/external/gpl3/binutils.old/lib/libbfd/Makefile
@@@@ -41,10 +41,6 @@@@ CPPFLAGS+=	-I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
 		-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
 		-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c +=	-O0
-.endif
-
 COPTS.pei-x86_64.c+=	-Wno-stack-protector
 COPTS.elfxx-mips.c+=	-Wno-stack-protector
 COPTS.elf.c+=		${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/binutils/lib/libbfd/Makefile b/external/gpl3/binutils/lib/libbfd/Makefile
index 00cb2b20081..a3f0c25fd35 100644
--- a/external/gpl3/binutils/lib/libbfd/Makefile
+++ b/external/gpl3/binutils/lib/libbfd/Makefile
@@@@ -41,10 +41,6 @@@@ CPPFLAGS+=	-I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
 		-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
 		-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c +=	-O0
-.endif
-
 COPTS.pei-x86_64.c+=	-Wno-stack-protector
 COPTS.elfxx-mips.c+=	-Wno-stack-protector
 COPTS.elf.c+=		${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/gcc.old/lib/Makefile.sanitizer b/external/gpl3/gcc.old/lib/Makefile.sanitizer
index efd36ae4bee..5173a5109a0 100644
--- a/external/gpl3/gcc.old/lib/Makefile.sanitizer
+++ b/external/gpl3/gcc.old/lib/Makefile.sanitizer
@@@@ -88,22 +88,3 @@@@ COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables

 # Can't profile without it`
 #-fomit-frame-pointer
-
-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_allocator.cc += -O1
-COPTS.sanitizer_common.cc += -O1
-COPTS.sanitizer_common_libcdep.cc += -O1
-COPTS.sanitizer_coverage_libcdep.cc += -O1
-COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1
-COPTS.sanitizer_deadlock_detector1.cc += -O1
-COPTS.sanitizer_mac.cc += -O1
-COPTS.sanitizer_netbsd.cc += -O1
-COPTS.sanitizer_posix.cc += -O1
-COPTS.sanitizer_printf.cc += -O1
-COPTS.sanitizer_procmaps_common.cc += -O1
-COPTS.sanitizer_stackdepot.cc += -O1
-COPTS.sanitizer_symbolizer_libcdep.cc += -O1
-COPTS.sanitizer_symbolizer_report.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
diff --git a/external/gpl3/gcc.old/lib/libasan/Makefile b/external/gpl3/gcc.old/lib/libasan/Makefile
index 1e6f9608abe..3da7bbf2f58 100644
--- a/external/gpl3/gcc.old/lib/libasan/Makefile
+++ b/external/gpl3/gcc.old/lib/libasan/Makefile
@@@@ -49,14 +49,6 @@@@ LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
 CPPFLAGS+=-DCAN_SANITIZE_UB=0

-.if ${MACHINE_ARCH} == "vax"
-COPTS.asan_allocator.cc += -O1
-COPTS.asan_report.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
-
 .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
 COPTS.asan_interceptors.cc += -O1
 .endif
diff --git a/external/gpl3/gcc.old/lib/liblsan/Makefile b/external/gpl3/gcc.old/lib/liblsan/Makefile
index 4578544a9a8..ddb7981077c 100644
--- a/external/gpl3/gcc.old/lib/liblsan/Makefile
+++ b/external/gpl3/gcc.old/lib/liblsan/Makefile
@@@@ -16,11 +16,6 @@@@ LSAN_SRCS+= \
 	lsan_linux.cc \
 	lsan_thread.cc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lsan_allocator.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-.endif
-
 LIB=	lsan
 SRCS+=	${LSAN_SRCS}
 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/lib/libubsan/Makefile b/external/gpl3/gcc.old/lib/libubsan/Makefile
index 2e2faca7b1c..9de82550d14 100644
--- a/external/gpl3/gcc.old/lib/libubsan/Makefile
+++ b/external/gpl3/gcc.old/lib/libubsan/Makefile
@@@@ -26,10 +26,6 @@@@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor

-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_file.cc += -O1
-.endif
-
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/usr.bin/cc1/Makefile b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
index c55e292ee8e..ff12a5be524 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
@@@@ -46,17 +46,6 @@@@ CPPFLAGS.default-c.c+=	-I${BACKENDOBJ}
 BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c
 .endif

-.if ${MACHINE_CPU} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1-checksum.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
 .endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
index 3123ee0d60b..aab82ad3448 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
@@@@ -44,16 +44,8 @@@@ COPTS.objc-act.c+=			-Wno-stack-protector
 COPTS.objc-gnu-runtime-abi-01.c+=	-Wno-stack-protector
 COPTS.objc-next-runtime-abi-01.c+=	-Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-.endif
+COPTS.c-cppbuiltin.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
+COPTS.c-typeck.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}

 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
diff --git a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
index b9c108251c5..e04e8fc7f53 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
@@@@ -69,18 +69,6 @@@@ COPTS.objc-act.c+=			-Wno-stack-protector
 COPTS.objc-gnu-runtime-abi-01.c+=	-Wno-stack-protector
 COPTS.objc-next-runtime-abi-01.c+=	-Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-COPTS.decl.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
 .endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
index 7936efd3a5e..7c54559e21a 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
@@@@ -31,23 +31,6 @@@@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \

 CFLAGS+=	-Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.call.c+=-O0
-COPTS.decl.c+=-O0
-COPTS.typeck2.c+=-O0
-COPTS.class.c+=-O0
-COPTS.typeck.c+=-O0
-COPTS.init.c+=-O0
-COPTS.semantics.c+=-O0
-COPTS.mangle.c+=-O0
-COPTS.constexpr.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1plus-checksum.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
 .endif
diff --git a/external/gpl3/gcc.old/usr.bin/gcc/Makefile b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
index 7a66d77ffc7..a5a4b1c3adf 100644
--- a/external/gpl3/gcc.old/usr.bin/gcc/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
@@@@ -25,9 +25,6 @@@@ ${SRCS}: ${GCCARCH}/defs.mk
 .include <bsd.info.mk>

 COPTS.gcc.c=	-Wno-stack-protector
-.if ${MACHINE_ARCH} == "vax"
-COPTS.dse.c=	-O1
-.endif

 .PATH: ${DIST}/gcc ${DIST}/gcc/doc ${DIST}/gcc/c

diff --git a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
index 751d1513eec..33aeb1c9898 100644
--- a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
@@@@ -14,10 +14,6 @@@@ SRCS=		decNumber.c decContext.c decimal32.c decimal64.c decimal128.c
 CPPFLAGS+=	-I${.CURDIR}/arch/${GCC_MACHINE_ARCH} -I${DIST}/libdecnumber
 CPPFLAGS+=	-I${DIST}/libgcc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
 .include <bsd.lib.mk>

 # Force using C++ for this
diff --git a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
index 90f44a9fcf6..fd251464fb7 100644
--- a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
@@@@ -24,11 +24,6 @@@@ COPTS.lto-common.c+=	-Wno-stack-protector
 .include "../Makefile.backtrace"
 .include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
 LDADD+=	${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
 DPADD+=	${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

diff --git a/external/gpl3/gcc.old/usr.bin/lto1/Makefile b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
index 4c49161a64c..340d3c6124f 100644
--- a/external/gpl3/gcc.old/usr.bin/lto1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
@@@@ -21,11 +21,6 @@@@ COPTS.lto-common.c+=	-Wno-stack-protector
 .include "../Makefile.libcpp"
 .include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
 LDADD+= ${LIBIBERTYOBJ}/libiberty.a
 DPADD+= ${LIBIBERTYOBJ}/libiberty.a
 LDADD+=	${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
diff --git a/external/gpl3/gdb.old/lib/libdecnumber/Makefile b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
index bcd4ae5b222..ce28811526b 100644
--- a/external/gpl3/gdb.old/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
@@@@ -18,10 +18,6 @@@@ CPPFLAGS+=	-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

 SRCS=		${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
 .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd

 .include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libdecnumber/Makefile b/external/gpl3/gdb/lib/libdecnumber/Makefile
index c95d36e3dfa..e3169865304 100644
--- a/external/gpl3/gdb/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb/lib/libdecnumber/Makefile
@@@@ -18,10 +18,6 @@@@ CPPFLAGS+=	-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

 SRCS=		${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
 .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd ${DIST}/libdecnumber/bid

 .include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libgdb/Makefile b/external/gpl3/gdb/lib/libgdb/Makefile
index b87a515d13a..c118c363975 100644
--- a/external/gpl3/gdb/lib/libgdb/Makefile
+++ b/external/gpl3/gdb/lib/libgdb/Makefile
@@@@ -66,12 +66,6 @@@@ CFLAGS:=		${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector

 ada-exp.c: ada-lex.c

-.if ${MACHINE} == "vax"
-. if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8
-COPTS.read.c+=	-O0
-. endif
-.endif
-
 # These are generated by implicit rules and are not easy to generate
 CLEANDIRFILES+= \
 	ada-exp.c ada-lex.c \
diff --git a/external/mit/xorg/lib/gallium.old/Makefile b/external/mit/xorg/lib/gallium.old/Makefile
index 55b2fe3d1c1..bfa40c8974f 100644
--- a/external/mit/xorg/lib/gallium.old/Makefile
+++ b/external/mit/xorg/lib/gallium.old/Makefile
@@@@ -1211,10 +1211,6 @@@@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
 # XXXGCC12
 .if ${MACHINE_ARCH} == "m68k"
 COPTS.st_glsl_to_tgsi.cpp += -O1
diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile
index 6778a8c11c8..9f1422080fe 100644
--- a/external/mit/xorg/lib/gallium/Makefile
+++ b/external/mit/xorg/lib/gallium/Makefile
@@@@ -1428,10 +1428,6 @@@@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
 COPTS.u_atomic.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-builtin-declaration-mismatch :}

 .include <bsd.lib.mk>
diff --git a/external/mit/xorg/lib/libX11/Makefile.libx11 b/external/mit/xorg/lib/libX11/Makefile.libx11
index e103d9ace12..0e55c2a4732 100644
--- a/external/mit/xorg/lib/libX11/Makefile.libx11
+++ b/external/mit/xorg/lib/libX11/Makefile.libx11
@@@@ -471,11 +471,6 @@@@ COPTS.OpenDis.c+=	-Wno-error	# XXX xf86bigfstr.h
 COPTS.XlibInt.c+=	-Wno-error	# XXX xcmiscstr.h
 COPTS.XKBBind.c+=	-Wno-deprecated-declarations	# uses XKeycodeToKeysym

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.lcWrap.c+=	-O0
-.endif
-
 CWARNFLAGS.clang+=	-Wno-string-plus-int

 .include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys"
diff --git a/games/gomoku/Makefile b/games/gomoku/Makefile
index e86a63aaea7..678537066ed 100644
--- a/games/gomoku/Makefile
+++ b/games/gomoku/Makefile
@@@@ -9,10 +9,6 @@@@ LDADD=	-lcurses -lterminfo
 HIDEGAME=hidegame
 CPPFLAGS+=	${DEBUG:D-DDEBUG}

-.if ${MACHINE} == "vax"
-COPTS.pickmove.c += -O0
-.endif
-
 #WARNS=		6	# would produce warnings about small integer types
 LINTFLAGS+=	-w	# treat warnings as errors
 LINTFLAGS+=	-T	# strict bool mode
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index e9c53f23ae5..b919dac17c6 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@@@ -52,7 +52,3 @@@@ map: map.c
 	./map | plot > /dev/tty

 .include <bsd.prog.mk>
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.misc.c+=	-O0
-.endif
diff --git a/lib/i18n_module/UTF7/Makefile b/lib/i18n_module/UTF7/Makefile
index 712c1515d42..7136f7f0cc3 100644
--- a/lib/i18n_module/UTF7/Makefile
+++ b/lib/i18n_module/UTF7/Makefile
@@@@ -3,6 +3,3 @@@@
 SRCPRE=citrus_
 .include <bsd.lib.mk>

-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.citrus_utf7.c+=	-O0
-.endif
diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile
index b2aea1e04b0..e60a2862d48 100644
--- a/lib/libbz2/Makefile
+++ b/lib/libbz2/Makefile
@@@@ -15,11 +15,6 @@@@ SRCS=		blocksort.c huffman.c crctable.c randtable.c compress.c \
 INCS=		bzlib.h
 INCSDIR=	/usr/include

-# XXX huffman.c gets mis-compiled with 2.95.3
-.if ${MACHINE_ARCH} == "vax"
-COPTS+=		-O0
-.endif
-
 COPTS+=		${CC_WNO_IMPLICIT_FALLTHROUGH}

 # XXX blocksort.c gets mis-compiled with 4.1
diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc
index 132686fc33d..609da919803 100644
--- a/lib/libc/gdtoa/Makefile.inc
+++ b/lib/libc/gdtoa/Makefile.inc
@@@@ -44,10 +44,3 @@@@ SRCS+=	dmisc.c \
 .if ${MACHINE_ARCH} != "vax"
 SRCS+=	strtord.c
 .endif
-
-# XXX revisit with newer GCC.
-# Ensure numbers like 0xffff319f5fa95963 print correctly
-# ("999999999999999.98", not garbage like "?A>C>@@>C:BA;A><.:<")
-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.misc.c+=	-O0
-.endif
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index cb3f89d6d09..e9c8be820da 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@@@ -30,9 +30,6 @@@@ SRCS+=		crypt-argon2.c
 SRCS+=		${src}
 COPTS.${src}+=	-fvisibility=hidden
 .  endfor
-.  if ${MACHINE} == "vax"
-COPTS.blake2b.c+=	-O0
-.  endif
 .endif

 WARNS?=	5
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile
index f5baae1e883..24f7e1121e5 100644
--- a/libexec/ld.elf_so/Makefile
+++ b/libexec/ld.elf_so/Makefile
@@@@ -141,10 +141,6 @@@@ CPPFLAGS+=	-DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
 COPTS.rtld.c+=	-Wno-stack-protector
 COPTS.symbol.c+=-Wno-stack-protector

-.if ${MACHINE_CPU} == "vax"
-COPTS.rtld.c+=	-O0
-.endif
-
 LDADD+=		-Wl,--version-script=${.CURDIR}/symbols.map
 LDADD+=		-L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
 .if ${MKPICLIB} != "no"
diff --git a/sbin/fsck_ffs/Makefile.common b/sbin/fsck_ffs/Makefile.common
index 765638b2801..824e3bf2628 100644
--- a/sbin/fsck_ffs/Makefile.common
+++ b/sbin/fsck_ffs/Makefile.common
@@@@ -36,7 +36,3 @@@@ COPTS.ffs_appleufs.c+=	-Wno-pointer-sign
 .if ${MACHINE_ARCH} == "m68000"
 COPTS.pass1.c+=	-fno-tree-fre -fno-tree-lrs
 .endif
-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+=	-O0
-COPTS.inode.c+=	-O0
-.endif
diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile
index c039f73a1eb..3b0331e5880 100644
--- a/sbin/fsdb/Makefile
+++ b/sbin/fsdb/Makefile
@@@@ -39,12 +39,6 @@@@ COPTS.${f}.c+=	-Wno-pointer-sign
 COPTS.pass1.c+=	-fno-tree-fre -fno-tree-lrs
 .endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+=	-O0
-COPTS.inode.c+=	-O0
-COPTS.fsdb.c+=	-O0
-.endif
-
 CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

 .include <bsd.prog.mk>
diff --git a/sbin/newfs_ext2fs/Makefile b/sbin/newfs_ext2fs/Makefile
index 40a44b9a038..ecfdbff4d3a 100644
--- a/sbin/newfs_ext2fs/Makefile
+++ b/sbin/newfs_ext2fs/Makefile
@@@@ -20,8 +20,4 @@@@ DPADD+=${LIBPROP}

 .PATH:	${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mke2fs.c=-O0
-.endif
-
 .include <bsd.prog.mk>
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 4f33501ea7a..1f7f56e3ea5 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@@@ -12,8 +12,4 @@@@ CPPFLAGS+=	-DIPSEC
 LDADD+= -lipsec
 DPADD+= ${LIBIPSEC}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
 .include <bsd.prog.mk>
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index cf095d54a86..c483eaa644a 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@@@ -34,7 +34,6 @@@@ GENASSYM_CONF=	${VAX}/vax/genassym.cf
 CPPFLAGS+=	-D_VAX_INLINE_
 AFLAGS+=	-x assembler-with-cpp -fno-pic
 CFLAGS+=	-fno-pic
-COPTS.wsmux.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}


 ##
diff --git a/sys/lib/libsa/Makefile b/sys/lib/libsa/Makefile
index 718c97ce857..4ef3840c753 100644
--- a/sys/lib/libsa/Makefile
+++ b/sys/lib/libsa/Makefile
@@@@ -96,7 +96,3 @@@@ SRCS+=	ufs.c
 lib${LIB}.o:: ${OBJS:O} __buildstdlib

 CPPFLAGS+=	-Wno-pointer-sign
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.bootp.c+=	-O0
-.endif
diff --git a/sys/lib/libz/Makefile b/sys/lib/libz/Makefile
index 6945c0da6c6..61fb7d4f652 100644
--- a/sys/lib/libz/Makefile
+++ b/sys/lib/libz/Makefile
@@@@ -25,7 +25,3 @@@@ CLEANFILES+= lib${LIB}.o
 .include <bsd.lib.mk>

 lib${LIB}.o:: ${OBJS:O} __buildstdlib
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.inftrees.c+=	-O0
-.endif
diff --git a/sys/modules/lfs/Makefile b/sys/modules/lfs/Makefile
index 962538821a5..ea8f187e160 100644
--- a/sys/modules/lfs/Makefile
+++ b/sys/modules/lfs/Makefile
@@@@ -18,9 +18,4 @@@@ SRCS+=	ulfs_bmap.c ulfs_dirhash.c ulfs_inode.c ulfs_lookup.c \

 WARNS=	3

-.if ${MACHINE} == "vax"
-# GCC 6.5 and 7.4 cannot compile this with -DDIAGNOSTIC and -O2/-O1
-COPTS.lfs_inode.c+=	-O0
-.endif
-
 .include <bsd.kmodule.mk>
diff --git a/sys/rump/fs/lib/liblfs/Makefile b/sys/rump/fs/lib/liblfs/Makefile
index abade3767d9..68b74c62502 100644
--- a/sys/rump/fs/lib/liblfs/Makefile
+++ b/sys/rump/fs/lib/liblfs/Makefile
@@@@ -17,9 +17,6 @@@@ SRCS+=	ulfs_bmap.c ulfs_dirhash.c ulfs_extattr.c 			\


 CFLAGS+=        -DLFS_KERNEL_RFW
-.if ${MACHINE_ARCH} == "vax"
-COPTS.lfs_inode.c+=-O0
-.endif

 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>
diff --git a/usr.sbin/mtrace/Makefile b/usr.sbin/mtrace/Makefile
index aef09db6198..9c125c15265 100644
--- a/usr.sbin/mtrace/Makefile
+++ b/usr.sbin/mtrace/Makefile
@@@@ -12,10 +12,6 @@@@ PROG=	mtrace
 SRCS=	igmp.c inet.c kern.c mtrace.c
 MAN=	mtrace.8

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mtrace.c=-O0
-.endif
-
 BINMODE=4555
 BINOWN= root

diff --git a/external/gpl3/gcc.old/usr.bin/backend/Makefile b/external/gpl3/gcc.old/usr.bin/backend/Makefile
index d69a26fe619..99e881c783d 100644
--- a/external/gpl3/gcc.old/usr.bin/backend/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/backend/Makefile
@@@@ -533,68 +533,9 @@@@ COPTS.insn-recog.c+=-Wno-error

 .if ${GCC_MACHINE_ARCH} == "vax"
 CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH}
-COPTS.builtins.c+=-O0
-COPTS.calls.c+=-O0
-COPTS.convert.c+=-O0
-COPTS.data-streamer-out.c+=-O0
-COPTS.dse.c+=-O0					# XXX port-vax/51967
-COPTS.dwarf2out.c+=-O0
-COPTS.expmed.c+=-O0
-COPTS.expr.c+=-O0 -Wno-error=tautological-compare
-COPTS.fixed-value.c+=-O0
-COPTS.fold-const.c+=-O0
-COPTS.generic-match.c+=-O0
-COPTS.gimple-fold.c+=-O0
-COPTS.gimple-match.c+=-O0
-COPTS.gimple-ssa-strength-reduction.c+=-O0
-COPTS.gimple-ssa-warn-restrict.c+=-O0
-COPTS.gimple.c+=-O0
-COPTS.internal-fn.c+=-O0
-COPTS.lto-streamer-out.c+=-O0
-COPTS.omp-low.c+=-O0
-COPTS.predict.c+=-O0
-COPTS.range-op.cc+=-O0
-COPTS.recog.c+=-O0
-COPTS.sanopt.c+=-O0
-COPTS.stmt.c+=-O0
-COPTS.stor-layout.c+=-O0
-COPTS.targhooks.c+=-O0
-COPTS.tree-affine.c+=-O0
-COPTS.tree-cfg.c+=-O0
-COPTS.tree-data-ref.c+=-O0
-COPTS.tree-eh.c+=-O0
-COPTS.tree-if-conv.c+=-O0
-COPTS.tree-object-size.c+=-O0
-COPTS.tree-parloops.c+=-O0
-COPTS.tree-predcom.c+=-O0
-COPTS.tree-pretty-print.c+=-O0
-COPTS.tree-ssa-alias.c+=-O0
-COPTS.tree-ssa-ccp.c+=-O0
-COPTS.tree-ssa-forwprop.c+=-O0
-COPTS.tree-ssa-loop-ivopts.c+=-O0
-COPTS.tree-ssa-loop-manip.c+=-O0
-COPTS.tree-ssa-loop-niter.c+=-O0
-COPTS.tree-ssa-math-opts.c+=-O0
-COPTS.tree-ssa-phiopt.c+= -O0
-COPTS.tree-ssa-pre.c+=-O0
-COPTS.tree-ssa-reassoc.c+=-O0
-COPTS.tree-ssa-strlen.c+=-O0
-COPTS.tree-ssa-uninit.c+=-O0
-COPTS.tree-ssa.c+=-O0
-COPTS.tree-switch-conversion.c+=-O0
-COPTS.tree-vect-data-refs.c+=-O0
-COPTS.tree-vect-loop-manip.c+=-O0
-COPTS.tree-vect-loop.c+=-O0
-COPTS.tree-vect-patterns.c+=-O0
-COPTS.tree-vect-stmts.c+=-O0
-COPTS.tree-vrp.c+=-O0
-COPTS.tree.c+=-O0
-COPTS.ubsan.c+=-O0
-COPTS.varasm.c+=-O0
-COPTS.vr-values.c+=-O0
-COPTS.web.c+=-O0
-COPTS.wide-int-range.cc+=-O0
-COPTS.wide-int.cc+=-O0
+
+COPTS.expmed.c+=-Wno-error=tautological-compare
+COPTS.expr.c+=-Wno-error=tautological-compare
 .else
 COPTS.tree.c=	${${ACTIVE_CC} == "clang" :? -O0 :}
 .endif
@
text
@#	$NetBSD: Makefile.vax,v 1.85 2020/09/15 05:08:07 mrg 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/vax/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/vax/conf/Makefile.vax
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=	vax
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
VAX=		$S/arch/vax
GENASSYM_CONF=	${VAX}/vax/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-D_VAX_INLINE_
AFLAGS+=	-x assembler-with-cpp -fno-pic
CFLAGS+=	-fno-pic


##
## (3) libkern and compat
##
OPT_MODULAR=	%MODULAR%

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	intvec.o subr.o
MD_CFILES=
MD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S

intvec.o: ${VAX}/vax/intvec.S assym.h
	${NORMAL_S}

subr.o: ${VAX}/vax/subr.S assym.h
	${NORMAL_S}

##
## (5) link settings
##
TEXTADDR?=	80000000
LINKFORMAT=	-N
LINKFLAGS_DEBUG=	-X
LINKFLAGS_NORMAL=	-S

##
## (6) port specific target dependencies
##

# depend on CPU configuration
tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
sbi.o subr.o: Makefile

lock_stubs.o unimpl_emul.o: assym.h

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.85
log
@make build (and run) with GCC 9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.84 2018/09/22 12:24:03 rin Exp $
a36 1
COPTS.wsmux.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}
@


1.85.20.1
log
@Pull up following revision(s) (requested by rin in ticket #394):

	external/gpl3/binutils/dist/gas/config/tc-vax.h: revision 1.10
	tools/gcc/Makefile: revision 1.109
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.16
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.17
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.18
	external/gpl3/gcc.old/dist/gcc/recog.c: revision 1.12
	external/gpl3/gcc.old/dist/gcc/function.c: revision 1.16
	external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.14 - 1.16
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.13
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.14
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.15
	external/gpl3/gcc.old/dist/gcc/doc/tm.texi.in: revision 1.10
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.16
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.17
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.18
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.19
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.13
	external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.20
	external/gpl3/gcc.old/dist/gcc/targhooks.c: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.14
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.15
	external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.16
	external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.13
	external/gpl3/gcc.old/dist/gcc/doc/tm.texi: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.17
	external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.18
	external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.12
	external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.13
	external/gpl3/gcc.old/dist/gcc/targhooks.h: revision 1.12
	external/gpl3/gcc.old/dist/gcc/target.def: revision 1.10
	external/gpl3/gcc.old/dist/gcc/rtlanal.c: revision 1.14
	external/gpl3/gcc.old/dist/gcc/reload.c: revision 1.12
	external/gpl3/gcc.old/usr.bin/gcc/Makefile: revision 1.11
	external/gpl3/gcc.old/usr.bin/lto-dump/Makefile: revision 1.3
	external/gpl3/gcc.old/lib/Makefile.sanitizer: revision 1.7
	external/gpl3/binutils.old/lib/libbfd/Makefile: revision 1.10
	distrib/utils/x_ping/Makefile: revision 1.9
	games/phantasia/Makefile: revision 1.38
	external/apache2/argon2/lib/libargon2/Makefile.inc: revision 1.2
	external/gpl3/gcc.old/lib/libubsan/Makefile: revision 1.8
	external/bsd/mdocml/lib/libmandoc/Makefile: revision 1.13
	sbin/ping/Makefile: revision 1.18
	sbin/newfs_ext2fs/Makefile: revision 1.7
	sys/lib/libz/Makefile: revision 1.24
	sys/lib/libsa/Makefile: revision 1.97
	external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile: revision 1.3
	external/gpl3/gdb/lib/libgdb/Makefile: revision 1.36
	sys/modules/lfs/Makefile: revision 1.11
	external/mit/xorg/lib/gallium/Makefile: revision 1.51
	external/gpl3/gdb.old/lib/libdecnumber/Makefile: revision 1.10
	external/mit/xorg/lib/libX11/Makefile.libx11: revision 1.26
	libexec/ld.elf_so/Makefile: revision 1.148
	external/bsd/jemalloc/lib/Makefile.inc: revision 1.16
	external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile: revision 1.14
	crypto/external/bsd/openssh/lib/Makefile: revision 1.38
	external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.21
	external/gpl3/gcc.old/usr.bin/cc1/Makefile: revision 1.12
	external/gpl3/gcc.old/lib/libasan/Makefile: revision 1.11
	external/gpl3/gcc.old/usr.bin/cc1plus/Makefile: revision 1.13
	lib/libcrypt/Makefile: revision 1.36
	external/gpl3/gdb/lib/libdecnumber/Makefile: revision 1.5
	lib/libc/gdtoa/Makefile.inc: revision 1.13
	games/gomoku/Makefile: revision 1.13
	sbin/fsdb/Makefile: revision 1.43
	external/gpl3/gcc.old/usr.bin/lto1/Makefile: revision 1.9
	external/mit/xorg/lib/gallium.old/Makefile: revision 1.8
	lib/libbz2/Makefile: revision 1.22
	external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.12
	usr.sbin/mtrace/Makefile: revision 1.14
	external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.13
	sys/arch/vax/conf/Makefile.vax: revision 1.86
	sys/rump/fs/lib/liblfs/Makefile: revision 1.18
	sbin/fsck_ffs/Makefile.common: revision 1.3
	external/gpl3/binutils/lib/libbfd/Makefile: revision 1.27
	lib/i18n_module/UTF7/Makefile: revision 1.5
	external/gpl3/gcc.old/lib/liblsan/Makefile: revision 1.7
	doc/CHANGES (apply patch)
	(all external/gpl3/gcc.old/ changes applied to external/gpl3/gcc/)

PR 57646: Import major vax toolchain fix.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.85 2020/09/15 05:08:07 mrg Exp $
d37 1
@


1.84
log
@- Determine KERN_AS automatically depending on whether OPT_MODULAR is
  set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.83 2014/06/14 20:49:37 mrg Exp $
d37 2
@


1.83
log
@remove remaining makefile support for GCC < 45 that i found.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.82 2014/06/04 21:24:54 matt Exp $
d41 1
a41 1
KERN_AS=	obj
@


1.83.28.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.84 2018/09/22 12:24:03 rin Exp $
d41 1
a41 1
OPT_MODULAR=	%MODULAR%
@


1.83.26.1
log
@Ssync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.84 2018/09/22 12:24:03 rin Exp $
d41 1
a41 1
OPT_MODULAR=	%MODULAR%
@


1.82
log
@Modify compiler HACK to be for GCC 4.1 only
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.81 2011/01/21 15:59:10 joerg Exp $
a77 5
# XXX recent gcc4 gets ICE on this one
.if ${HAVE_GCC} == "4"
COPTS.db_command.c+=	-fno-tree-ter
.endif

@


1.81
log
@Switch remaining platforms to modern CPP for assembler.
@
text
@d1 1
a1 1
#	$NetBSD: src/sys/arch/vax/conf/Makefile.vax,v 1.80 2008-03-01 13:59:56 joerg Exp $
d79 1
d81 1
@


1.81.14.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d78 3
@


1.81.28.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.83 2014/06/14 20:49:37 mrg Exp $
d78 3
@


1.80
log
@Missing assym.h dependency.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.79 2007/12/22 08:17:57 tsutsui Exp $
d35 1
a35 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
@


1.80.32.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.81 2011/01/21 15:59:10 joerg Exp $
d35 1
a35 1
AFLAGS+=	-x assembler-with-cpp -fno-pic
@


1.80.26.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d35 1
a35 1
AFLAGS+=	-x assembler-with-cpp -fno-pic
@


1.80.34.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.81 2011/01/21 15:59:10 joerg Exp $
d35 1
a35 1
AFLAGS+=	-x assembler-with-cpp -fno-pic
@


1.79
log
@Put a workaround for gcc ICE on ddb/db_command.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.78 2007/03/31 05:59:45 matt Exp $
d72 1
a72 1
unimpl_emul.o: assym.h
@


1.79.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d72 1
a72 1
lock_stubs.o unimpl_emul.o: assym.h
@


1.79.2.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.80 2008/03/01 13:59:56 joerg Exp $
d72 1
a72 1
lock_stubs.o unimpl_emul.o: assym.h
@


1.78
log
@Build kernels with -fno-pic.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.77 2006/06/02 22:16:18 mrg Exp $
d78 3
@


1.78.14.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.78 2007/03/31 05:59:45 matt Exp $
a77 3
# XXX recent gcc4 gets ICE on this one
COPTS.db_command.c+=	-fno-tree-ter

@


1.78.14.2
log
@sync with HEAD
@
text
@d1 1
a1 1
#	Makefile.vax,v 1.78.14.1 2008/01/09 01:49:32 matt Exp
d72 1
a72 1
lock_stubs.o unimpl_emul.o: assym.h
@


1.78.26.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
a77 3
# XXX recent gcc4 gets ICE on this one
COPTS.db_command.c+=	-fno-tree-ter

@


1.78.22.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.79 2007/12/22 08:17:57 tsutsui Exp $
a77 3
# XXX recent gcc4 gets ICE on this one
COPTS.db_command.c+=	-fno-tree-ter

@


1.77
log
@remove support for building (with) GCC 2.95.  also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.76 2006/04/07 19:38:59 mrg Exp $
d35 1
a35 3
AFLAGS+=	-x assembler-with-cpp -traditional-cpp
.if ${OBJECT_FMT} == "ELF"
.else
a36 1
.endif
@


1.77.10.1
log
@Pull up following revision(s) (requested by skrll in ticket #1129):
	share/mk/bsd.own.mk: revision 1.489.4.3
	gnu/dist/gcc4/gcc/config/vax/vax.h: revision 1.2.6.1
	gnu/dist/gcc4/gcc/config/vax/builtins.md: revision 1.2.10.2
	sys/arch/vax/conf/Makefile.vax: revision 1.77.22.1
	gnu/dist/gcc4/gcc/config/vax/vax-protos.h: revision 1.1.1.1.6.1
	gnu/dist/binutils/gas/config/tc-vax.h: revision 1.1.1.1.18.1
	gnu/lib/libgcc4/libgcc/Makefile: revision 1.2.6.1
	sys/arch/vax/include/macros.h: revision 1.37.14.1
	gnu/lib/crtstuff4/Makefile: revision 1.1.6.1
	gnu/dist/gcc4/gcc/config/vax/elf.h: revision 1.1.1.1.6.1
	gnu/dist/gcc4/gcc/config/vax/vax.c: revision 1.1.1.1.6.1
	sys/arch/vax/boot/Makefile.inc: revision 1.12.16.1
	tools/gcc/Makefile: revision 1.22.4.1
	lib/libcrypto/Makefile: revision 1.46.4.2
	gnu/dist/gcc4/gcc/config/vax/netbsd-elf.h: revision 1.1.1.1.6.1
	sys/lib/libkern/libkern.h: revision 1.67.6.1
	gnu/dist/gcc4/gcc/config/vax/predicates.md: revision 1.3.10.2
	gnu/dist/binutils/bfd/elf32-vax.c: revision 1.5.6.1
	gnu/dist/gcc4/gcc/config/vax/vax.md: revision 1.1.1.1.4.1.2.1
	gnu/dist/gcc4/gcc/config/vax/vax.opt: revision 1.1.1.1.6.1
	gnu/dist/binutils/gas/config/tc-vax.c: revision 1.4.4.1.2.1
Pullup changes to get vax shlibs working from the wrstuden-fixsa branch.
@
text
@d1 1
a1 1
#	$NetBSD$
d35 3
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
d39 1
@


1.77.22.1
log
@Pullup changes to get vax shlibs working.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.77 2006/06/02 22:16:18 mrg Exp $
d35 3
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
d39 1
@


1.77.18.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.78 2007/03/31 05:59:45 matt Exp $
d35 3
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
d39 1
@


1.77.16.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.77 2006/06/02 22:16:18 mrg Exp $
d35 3
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
d39 1
@


1.77.12.1
log
@Sync with -current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.77 2006/06/02 22:16:18 mrg Exp $
d35 3
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
d39 1
@


1.76
log
@retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.75 2005/12/11 12:19:34 christos Exp $
a36 4
.if ${HAVE_GCC} == "2"
CFLAGS+=	-mno-asm-pic
AFLAGS+=	-mno-asm-pic
.endif
@


1.76.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.77 2006/06/02 22:16:18 mrg Exp $
d37 4
@


1.75
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.70.6.4 2005/11/10 13:59:59 skrll Exp $
d37 1
a37 1
.if ${HAVE_GCC3} == "no"
@


1.75.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.77 2006/06/02 22:16:18 mrg Exp $
d37 4
@


1.75.12.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d1 1
a1 1
#	$NetBSD$
d37 1
a37 1
.if ${HAVE_GCC} == "2"
@


1.75.6.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.76 2006/04/07 19:38:59 mrg Exp $
d37 1
a37 1
.if ${HAVE_GCC} == "2"
@


1.75.6.2
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.75.6.1 2006/04/22 11:38:06 simonb Exp $
d37 4
@


1.75.10.1
log
@sync with head - hopefully this will work
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.76 2006/04/07 19:38:59 mrg Exp $
d37 1
a37 1
.if ${HAVE_GCC} == "2"
@


1.75.8.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.75 2005/12/11 12:19:34 christos Exp $
d37 1
a37 1
.if ${HAVE_GCC} == "2"
@


1.75.8.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.75.8.1 2006/04/11 11:53:47 yamt Exp $
d37 4
@


1.74
log
@s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.73 2004/06/04 04:45:51 thorpej Exp $
@


1.74.2.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.74 2005/05/31 04:03:11 christos Exp $
d37 4
@


1.74.2.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.74.2.1 2006/06/21 14:57:17 yamt Exp $
d35 3
a37 1
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -fno-pic
d39 1
@


1.74.2.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.74.2.2 2007/09/03 14:30:46 yamt Exp $
a77 3
# XXX recent gcc4 gets ICE on this one
COPTS.db_command.c+=	-fno-tree-ter

@


1.74.2.4
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.74.2.3 2008/01/21 09:39:59 yamt Exp $
d72 1
a72 1
lock_stubs.o unimpl_emul.o: assym.h
@


1.73
log
@Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.72 2003/12/10 04:59:35 simonb Exp $
d29 1
a29 1
GENASSYM=	${VAX}/vax/genassym.cf
@


1.72
log
@Make unimpl_emul.o depend on assym.h so that "make -j N" kernel builds
work.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.71 2003/12/08 09:28:36 matt Exp $
d104 5
@


1.72.4.1
log
@Pull up patch (requested by martti in ticket #1086)
Move ipf to sys/dist/ipf and sync w. trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.72 2003/12/10 04:59:35 simonb Exp $
a103 5

##
## (10) IPF source directory
##
CPPFLAGS+=	-I$S/dist/ipf
@


1.71
log
@Make -mno-asm-pic dependend on HAVE_GCC3 == no
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.70 2002/11/05 14:35:33 thorpej Exp $
d78 2
@


1.70
log
@Add -mno-asm-pic to CFLAGS and AFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.69 2002/02/23 23:48:00 matt Exp $
d37 1
d40 1
@


1.70.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.73 2004/06/04 04:45:51 thorpej Exp $
a36 1
.if ${HAVE_GCC3} == "no"
a38 1
.endif
a76 2
unimpl_emul.o: assym.h

a99 5

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.70.6.2
log
@Sync with HEAD.
@
text
@@


1.70.6.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.70.6.1 2004/08/03 10:42:22 skrll Exp $
@


1.70.6.4
log
@Sync with HEAD. Here we go again...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.70.6.3 2004/09/21 13:23:40 skrll Exp $
d29 1
a29 1
GENASSYM_CONF=	${VAX}/vax/genassym.cf
@


1.69
log
@Rename VAX kernel assembly source from .s to .S (the NetBSD standard)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.68 2002/02/11 00:25:19 thorpej Exp $
d36 5
a40 2
.if ${OBJECT_FMT} != "ELF"
CFLAGS+=	-mno-pic
@


1.69.10.1
log
@Pullup revisions 1.69-1.70 (requested by he in ticket #1072)
 Add -mno-asm-pic to CFLAGS and AFLAGS, and add -ffreestanding and
 empty LIBC setting to bootloader Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD$
d36 2
a37 5
.if ${OBJECT_FMT} == "ELF"
CFLAGS+=	-mno-asm-pic
AFLAGS+=	-mno-asm-pic
.else
CFLAGS+=	-fno-pic
@


1.68
log
@Don't pass -mno-pic if we're using ELF.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.67 2001/12/23 02:14:03 matt Exp $
d50 1
a50 1
MD_SFILES=	${VAX}/vax/intvec.s ${VAX}/vax/subr.s
d52 1
a52 1
intvec.o: ${VAX}/vax/intvec.s assym.h
d55 1
a55 1
subr.o: ${VAX}/vax/subr.s assym.h
@


1.67
log
@Make VAX kernels work again.  Entry on vax is start, not _start.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.66 2001/11/23 15:44:15 atatat Exp $
d36 1
d38 1
@


1.66
log
@Oops.  Add in missing entry point settings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.65 2001/11/23 05:19:02 atatat Exp $
a59 1
ENTRYPOINT=	_start
@


1.65
log
@Instead of checking for previous usage, just append to some make
variables.  Tweak some variables to provide for more uniform defaults.
Minor adaption to makefiles for already converted ports.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.64 2001/11/20 12:56:42 lukem Exp $
d60 1
@


1.64
log
@cleanup:
	options SPACE TAB
	makeoptions TAB
	psuedo-device TAB
	remove trailing whitespace
	replace multiple spaces -> tabs
	options "FOO" -> options FOO
	options "FOO=bar" -> options FOO=bar
	options "FOO=\"bar\"" -> options FOO="\"bar\""
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.63 2001/11/16 00:23:04 atatat Exp $
a29 1
MD_CPPFLAGS=	-D_VAX_INLINE_
d34 2
a35 8
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
		${MD_CPPFLAGS}
COPTS?=		-O2
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE

HAVE_EGCS!=	${CC} --version | egrep "^(2\.8|2\.9[0-4]|egcs)" ; echo
.if (${HAVE_EGCS} != "")
a36 1
.endif
@


1.63
log
@Abstract out a large chunk of the kernel build machinery so that new
build features (such as ross's DEBUGLIST) can easily be applied to all
ports.  This should reduce the complexity of each port's kernel
Makefile considerably.  Line counts:

     227 arch/i386/conf/Makefile.i386.orig
      98 arch/i386/conf/Makefile.i386
     227 arch/alpha/conf/Makefile.alpha.orig
      99 arch/alpha/conf/Makefile.alpha
     219 arch/sparc/conf/Makefile.sparc.orig
     102 arch/sparc/conf/Makefile.sparc
     215 arch/vax/conf/Makefile.vax.orig
     102 arch/vax/conf/Makefile.vax
     253 conf/Makefile.kern.inc

Roll i386, alpha, sparc, and vax over to the new build machinery.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.62 2001/10/26 06:45:41 jmc Exp $
d15 1
a15 1
# To specify debugging, add the config line: makeoptions DEBUG="-g" 
d41 1
a41 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.8|2\.9[0-4]|egcs)" ; echo 
d47 1
a47 1
## (3) libkern and compat 
d76 1
a76 1
# depend on CPU configuration 
@


1.63.2.1
log
@file Makefile.vax was added on branch nathanw_sa on 2002-01-08 00:28:30 +0000
@
text
@d1 102
@


1.63.2.2
log
@Catch up to -current.
@
text
@a0 94
#	$NetBSD: Makefile.vax,v 1.63.2.1 2002/01/08 00:28:30 nathanw 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/vax/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/vax/conf/Makefile.vax
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=	vax
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
VAX=		$S/arch/vax
GENASSYM=	${VAX}/vax/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-D_VAX_INLINE_
AFLAGS+=	-x assembler-with-cpp -traditional-cpp
CFLAGS+=	-mno-pic

##
## (3) libkern and compat
##
KERN_AS=	obj

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	intvec.o subr.o
MD_CFILES=
MD_SFILES=	${VAX}/vax/intvec.s ${VAX}/vax/subr.s

intvec.o: ${VAX}/vax/intvec.s assym.h
	${NORMAL_S}

subr.o: ${VAX}/vax/subr.s assym.h
	${NORMAL_S}

##
## (5) link settings
##
TEXTADDR?=	80000000
LINKFORMAT=	-N
LINKFLAGS_DEBUG=	-X
LINKFLAGS_NORMAL=	-S

##
## (6) port specific target dependencies
##

# depend on CPU configuration
tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
sbi.o subr.o: Makefile

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"
@


1.63.2.3
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.63.2.2 2002/02/28 04:12:29 nathanw Exp $
a35 1
.if ${OBJECT_FMT} != "ELF"
a36 1
.endif
d48 1
a48 1
MD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S
d50 1
a50 1
intvec.o: ${VAX}/vax/intvec.S assym.h
d53 1
a53 1
subr.o: ${VAX}/vax/subr.S assym.h
@


1.63.2.4
log
@Catch up to -current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.63.2.3 2002/11/11 22:05:51 nathanw Exp $
d36 2
a37 5
.if ${OBJECT_FMT} == "ELF"
CFLAGS+=	-mno-asm-pic
AFLAGS+=	-mno-asm-pic
.else
CFLAGS+=	-fno-pic
@


1.62
log
@Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.61 2001/10/23 19:26:47 thorpej Exp $
d14 5
d20 1
a20 1
MACHINE_ARCH=vax
d22 1
a22 1

d25 15
a39 23
# 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
.endif
VAX=	$S/arch/vax
a41 9
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
		-D_VAX_INLINE_
CWARNFLAGS?=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
		-Wpointer-arith -Wno-main
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+=	-Wno-uninitialized
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
a44 3
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS=	-N -Ttext 80000000 -e start
STRIPFLAGS=	-g
d46 4
a49 1
%INCLUDES
d51 6
a56 3
HOSTED_CC=	${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS=	${CFLAGS}
d58 2
a59 8
### find out what to use for libkern
KERN_AS=	obj
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF
LIBKERN=	${KERNLIB}
.else
LIBKERN=        ${KERNLIB_PROF}
.endif
d61 2
a62 7
### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT=      ${COMPATLIB}
.else
LIBCOMPAT=      ${COMPATLIB_PROF}
.endif
d64 11
a74 2
# 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).
d76 3
a78 3
NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -c $<
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<
d80 8
a87 1
HOSTED_C=	${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
a94 24
# 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=	intvec.o subr.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
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+=	-S
.endif

d97 1
a97 76
assym.h: $S/kern/genassym.sh ${VAX}/vax/genassym.cf
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    < ${VAX}/vax/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.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 \
	    ${VAX}/vax/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=	${VAX}/vax/intvec.s ${VAX}/vax/subr.s \
	param.c ioconf.c ${CFILES} ${SFILES}
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${VAX}/vax/intvec.s ${VAX}/vax/subr.s
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} < ${VAX}/vax/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 
tmscp.o ts.o uba.o uda.o autoconf.o clock.o conf.o emulate.o intvec.o: Makefile
machdep.o sbi.o subr.o: Makefile

d99 4
a102 19
intvec.o: ${VAX}/vax/intvec.s assym.h
	${NORMAL_S}

subr.o: ${VAX}/vax/subr.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.61
log
@Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.60 2001/09/09 22:53:02 matt Exp $
d16 3
@


1.61.2.1
log
@Sync the thorpej-mips-cache branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.62 2001/10/26 06:45:41 jmc Exp $
a15 3
USETOOLS?=	no

.include <bsd.own.mk>
@


1.60
log
@Always include -Wno-main
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.59 2001/06/25 05:12:01 matt Exp $
d14 2
@


1.59
log
@Don't include -mno-pic on gcc 2.95
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.58 2001/05/29 02:20:26 mrg Exp $
d44 1
a44 1
		-Wpointer-arith
a47 3
.if (${HAVE_EGCS} != "")
CWARNFLAGS+=	-Wno-main
.endif
@


1.59.4.1
log
@Catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.60 2001/09/09 22:53:02 matt Exp $
d44 1
a44 1
		-Wpointer-arith -Wno-main
d48 3
@


1.59.2.1
log
@Update the kqueue branch to HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.60 2001/09/09 22:53:02 matt Exp $
d44 1
a44 1
		-Wpointer-arith -Wno-main
d48 3
@


1.59.2.2
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.59.2.1 2001/09/13 01:15:05 thorpej Exp $
a13 5
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"
d15 35
a49 16
MACHINE_ARCH=	vax
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
VAX=		$S/arch/vax
GENASSYM=	${VAX}/vax/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-D_VAX_INLINE_
AFLAGS+=	-x assembler-with-cpp -traditional-cpp
d51 4
d56 1
a56 4
##
## (3) libkern and compat
##
KERN_AS=	obj
d58 3
a60 6
##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	intvec.o subr.o
MD_CFILES=
MD_SFILES=	${VAX}/vax/intvec.s ${VAX}/vax/subr.s
d62 23
a84 5
intvec.o: ${VAX}/vax/intvec.s assym.h
	${NORMAL_S}

subr.o: ${VAX}/vax/subr.s assym.h
	${NORMAL_S}
d86 1
a86 24
##
## (5) link settings
##
TEXTADDR?=	80000000
LINKFORMAT=	-N
LINKFLAGS_DEBUG=	-X
LINKFLAGS_NORMAL=	-S

##
## (6) port specific target dependencies
##

# depend on CPU configuration
tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
sbi.o subr.o: Makefile

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES
d94 24
d120 95
a215 5

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"
@


1.59.2.3
log
@Catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.59.2.2 2002/01/10 19:50:01 thorpej Exp $
a35 1
.if ${OBJECT_FMT} != "ELF"
a36 1
.endif
d48 1
a48 1
MD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S
d50 1
a50 1
intvec.o: ${VAX}/vax/intvec.S assym.h
d53 1
a53 1
subr.o: ${VAX}/vax/subr.S assym.h
@


1.58
log
@define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.57 2001/02/08 15:19:14 chs Exp $
d39 1
a39 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
@


1.57
log
@create dependency info for assym.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.56 2000/12/17 15:52:44 jdolecek Exp $
d41 1
a41 1
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
@


1.57.2.1
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.57 2001/02/08 15:19:14 chs Exp $
d41 1
a41 1
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
@


1.56
log
@delete obsolete comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.55 2000/05/09 00:56:28 hubertf Exp $
d178 4
@


1.55
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.vax,v 1.54 2000/05/09 00:32:26 thorpej Exp $
a13 6
#
# 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
@


1.54
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.vax,v 1.53 2000/02/01 05:25:48 tsutsui Exp $
d207 12
@


1.53
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.52 2000/01/24 20:36:18 tron Exp $
d45 1
a45 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo 
d51 4
a54 1
.if (${HAVE_GCC28} != "")
d58 1
a58 1
.if (${HAVE_GCC28} != "")
@


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


1.51
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.50 2000/01/19 14:45:14 tsutsui Exp $
d181 2
@


1.50
log
@Change STRIPFLAGS=-g for cross-toolchains.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.49 1999/07/26 05:20:49 cgd Exp $
d34 1
a34 1
STRIP?=	strip
d118 2
a119 2
		echo ${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb; \
		${STRIP} ${STRIPFLAGS} -o $@@ $@@.gdb
@


1.49
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.vax,v 1.48 1999/07/09 09:53:01 mrg Exp $
d60 1
a60 1
STRIPFLAGS=	-d
@


1.49.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.vax,v 1.55 2000/05/09 00:56:28 hubertf Exp $
d45 1
a45 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
d51 1
a51 4
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej 
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
d55 1
a55 1
.if (${HAVE_EGCS} != "")
d60 1
a60 1
STRIPFLAGS=	-g
a181 2
dependall: depend all

a201 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.49.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d14 6
@


1.49.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.49.2.2 2001/01/05 17:35:13 bouyer Exp $
a177 4
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	  ${CPPFLAGS} < ${VAX}/vax/genassym.cf
	@@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
	@@rm -f assym.dep
@


1.48
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.vax,v 1.47 1999/01/17 19:09:00 matt Exp $
d117 3
a119 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.47
log
@If using egcs, use -mno-pic to generate better code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.46 1999/01/08 19:26:15 augustss Exp $
d61 2
@


1.47.4.1
log
@Update from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.49 1999/07/26 05:20:49 cgd Exp $
a61 2
%INCLUDES

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


1.46
log
@Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.45 1998/10/15 18:37:17 drochner Exp $
d55 3
@


1.45
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.vax,v 1.44 1998/09/05 15:15:18 lukem Exp $
d49 2
a50 1
CWARNFLAGS?=	-Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
@


1.44
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.43 1998/08/22 09:16:45 ragge Exp $
d63 1
d100 1
a100 1
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
@


1.43
log
@New times, new pagesize, use magic number in exec header.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.42 1998/05/31 23:25:43 thorpej Exp $
d147 1
a147 1
cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.42
log
@Specify a non-profiling C rule.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.41 1998/05/22 09:59:55 ragge Exp $
d55 1
a55 1
LINKFLAGS=	-Z -Ttext 80000000 -e start
@


1.41
log
@Remove unneccessary file. Remove stale dependency. Disable not-working
devices by default.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.40 1998/05/03 12:59:56 ragge Exp $
d82 1
@


1.40
log
@Enable -Wall -Wmissing-prototypes -Wstrict-prototypes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.39 1998/04/12 23:47:45 tv Exp $
d185 1
a185 1
machdep.o sbi.o subr.o uvaxII.o: Makefile
@


1.39
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.vax,v 1.38 1997/11/12 23:12:37 thorpej Exp $
d49 1
a49 1
CWARNFLAGS?=	-Werror
d55 1
a55 1
LINKFLAGS=	-Z -Ttext 80000000 -e _start
@


1.38
log
@Make sure CPP, AR, AS, and RANLIB are defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.37 1997/11/12 22:26:42 thorpej Exp $
d45 1
d49 4
a52 1
CWARNFLAGS=	-Werror
@


1.37
log
@Define LORDER, NM, and TSORT here, like we do the rest of the tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.36 1997/11/04 22:59:42 ragge Exp $
d24 2
d27 1
d32 1
d36 1
@


1.36
log
@Move some interrupt routines out to assembler.
Optimize (slightly) pmap_clear_modify.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.35 1997/11/03 20:00:31 ragge Exp $
d26 1
d28 1
d31 1
@


1.35
log
@Use genassym for the first time in vax port history. Rewrite cpu_exit,
cpu_switch, setrunqueue and remrunqueue in assembler for efficiency.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.34 1997/10/03 07:17:49 lukem Exp $
d176 1
a176 1
intvec.o: ${VAX}/vax/intvec.s
@


1.34
log
@define SIZE?=size, and use ${SIZE} instead of size. makes cross
compilation easier
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.33 1997/09/30 23:07:45 christos Exp $
d105 5
d156 1
a156 1
.depend: ${SRCS} param.c
d179 1
a179 1
subr.o: ${VAX}/vax/subr.s
@


1.34.2.1
log
@Pull up "make sure tools are defined" changes from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.34 1997/10/03 07:17:49 lukem Exp $
a23 2
AR?=	ar
AS?=	as
a24 1
CPP?=	cpp
a25 1
LORDER?=lorder
a26 2
NM?=	nm
RANLIB?=ranlib
a28 2
TSORT?=	tsort -q

@


1.33
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.vax,v 1.32 1997/03/14 23:27:35 mycroft Exp $
d27 1
d29 1
a29 1
COPTS?= 	-O2
d91 1
a91 1
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@
@


1.32
log
@Define the `cleankernel' target consistently with other ports.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.31 1997/02/12 18:07:53 ragge Exp $
d118 7
d126 3
a128 4
clean: cleankernel
cleankernel:
	rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	    [Ee]rrs linterrs makelinks
@


1.32.4.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.34 1997/10/03 07:17:49 lukem Exp $
a26 1
SIZE?=	size
d28 1
a28 1
COPTS?= -O2
d90 1
a90 1
SYSTEM_LD_TAIL=	@@${SIZE} $@@; chmod 755 $@@
d118 3
a120 2
__CLEANKERNEL: .USE
	@@echo "${.TARGET}ing the kernel objects"
d122 1
a122 8
	    [Ee]rrs linterrs makelinks assym.h.tmp assym.h

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.31
log
@Remove ::
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.30 1997/02/04 05:08:54 perry Exp $
d119 2
a120 1
clean:
@


1.30
log
@Nuke some options GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.29 1997/02/04 04:32:24 perry Exp $
d119 1
a119 1
clean::
d142 1
a142 1
depend:: .depend
@


1.30.4.1
log
@Merge in changes from Trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.31 1997/02/12 18:07:53 ragge Exp $
d119 1
a119 1
clean:
d142 1
a142 1
depend: .depend
@


1.29
log
@Nuke some GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.28 1996/12/01 06:12:39 jonathan Exp $
d125 1
a125 1
	    ${VAX}/vax/Locore.c ${CFILES} ${VAX}/vax/swapgeneric.c \
@


1.28
log
@* Replace explicit -O2 in CFLAGS with  COPTS macro. Default COPTS?= -O2.
  Lets users over-ride with makeoptions COPTS="..." in kernel config files.

  Leave `mandatory' flags (like  -msoft-float which  on m68k enforces no
  FP in kernel) in CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.27 1996/09/09 21:07:09 mycroft Exp $
d124 1
a124 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
@


1.27
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.vax,v 1.26 1996/08/31 21:41:56 mycroft Exp $
d28 1
d40 1
a40 1
CFLAGS=		${DEBUG} ${CWARNFLAGS} -O2 
@


1.26
log
@Wrap the default definition of `S' in `.ifndef'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.25 1996/08/12 00:52:16 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} $@@
@


1.25
log
@Put  into .  Remove hooks for `config-dependent' and
`device-driver' flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.24 1996/08/10 06:10:18 mycroft Exp $
a19 1
# -DUUDMA	compile in unibus tu58 pseudo-dma code
d31 1
d33 1
@


1.24
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.vax,v 1.23 1996/08/10 05:29:55 mycroft Exp $
d36 2
a37 1
CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -D_VAX_INLINE_
d59 2
a60 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.
a62 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 $<

a63 1
NORMAL_S_C=	${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d65 1
a65 1
HOSTED_C_C=	${NORMAL_C_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d103 1
a103 1
	${NORMAL_C_C}
d118 1
a118 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} ${PARAM} -UKGDB \
@


1.23
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.vax,v 1.22 1996/07/01 21:07:28 ragge Exp $
d35 1
a35 1
INCLUDES=	-I. -I$S/arch -I$S
d71 2
@


1.22
log
@Update to match new MSCP device handling.
Remove support for old config system.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.21 1996/05/11 16:13:17 mycroft Exp $
a24 1
AS?=	as
a25 1
CPP?=	cpp
d27 1
d32 2
a33 2
S=	../../../..
VAX=	../..
d37 2
a38 1
CFLAGS=		${DEBUG} -O2 -Werror
d98 1
a98 1
LINKFLAGS+=	-x
d143 3
a145 3
	mkdep ${AFLAGS} ${CPPFLAGS} ${VAX}/vax/intvec.s ${VAX}/vax/subr.s
	mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
@


1.21
log
@Make `make depend' work for libraries.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.20 1996/02/29 20:57:46 cgd Exp $
d83 1
a83 1
SYSTEM_OBJ=	intvec.o subr.o lim.o \
d139 1
a139 1
SRCS=	${VAX}/vax/intvec.s ${VAX}/vax/subr.s lim.c \
a143 1
	mkdep -a ${CFLAGS} ${CPPFLAGS} lim.c
a166 6

lim.c: ioconf.c
	../../conf/mkoldconf.awk < ioconf.c > lim.c

lim.o: lim.c
	${NORMAL_C_C}
@


1.20
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.vax,v 1.19 1996/02/26 02:53:53 mycroft Exp $
d141 1
a141 1
depend: .depend
@


1.19
log
@Define build programs with `?=', so they can be overridden with `makeoptions'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.17 1996/02/03 00:44:30 mycroft Exp $
a25 1
AWK?=	awk
d84 1
a84 1
		vnode_if.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
a102 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

d119 1
a119 1
	rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.[io] [a-z]*.s \
d140 1
a140 1
	vnode_if.c param.c ioconf.c ${CFILES} ${SFILES}
d142 1
a142 1
.depend: ${SRCS} vnode_if.h param.c
d145 1
a145 1
	mkdep -a ${CFLAGS} ${CPPFLAGS} vnode_if.c param.c ioconf.c ${CFILES}
@


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


1.17
log
@Use `-traditional-cpp' when building .s and .S files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.16 1996/02/02 20:09:45 mycroft Exp $
d40 1
a40 1
AFLAGS=		-D_LOCORE
d70 2
a71 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 $<
d147 1
a147 1
	mkdep -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${VAX}/vax/intvec.s ${VAX}/vax/subr.s
d150 1
a150 1
	mkdep -a -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${SFILES}
@


1.16
log
@Clone these, and fix many bugs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.15 1996/02/02 19:08:36 mycroft Exp $
d70 2
a71 2
NORMAL_S=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
@


1.15
log
@ASSEMBLER -> _LOCORE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.14 1996/02/02 13:38:29 mycroft Exp $
d3 1
a3 1
#	@@(#)Makefile.vax	7.18 (Berkeley) 12/16/90
d8 1
a8 1
#	/sys/vax/conf/``machineid''
d10 1
a10 1
#	 config machineid
d12 1
a12 1
#	/sys/conf/Makefile.``machinetype''
d21 6
a26 1
#
d29 3
a31 2
LD=	/usr/bin/ld
AWK=	awk
d33 1
d37 5
a41 5
INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL -D_VAX_INLINE_
AOPTS=  ${COPTS} -D_LOCORE
CFLAGS=	-Werror -fno-builtin ${COPTS}
LOAD_ADDRESS=80000000
d59 10
a68 15
NORMAL_C= ${CC} -O -c ${CFLAGS} ${PROF} $<
NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
NORMAL_S= ${CC} -x assembler-with-cpp -E -I. -D_LOCORE ${COPTS} $< | \
	${AS} ${ASFLAGS} -o $*.o
DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
SYSTEM_ASMS=intvec.o subr.o
SYSTEM_OBJS=${SYSTEM_ASMS} lim.o vnode_if.o ${OBJS} param.o ioconf.o \
	    ${LIBKERN} ${LIBCOMPAT}
#SYSTEM_DEP=${SYSTEM_ASMS} lovm.o pmap.o
SYSTEM_DEP=${SYSTEM_ASMS} ${SYSTEM_OBJS}
SYSTEM_LD_HEAD=         @@echo loading $@@; rm -f $@@
SYSTEM_LD= ${LD} -Z -e _start -T ${LOAD_ADDRESS} -o $@@ ${SYSTEM_OBJS} vers.o
#SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; ${DBSYM} -f
SYSTEM_LD_TAIL=@@echo Nu {r k{rnan klar!!!!
d70 2
d77 25
d104 2
a105 3
clean::
	rm -f eddep *vmunix tags *.o subr.i [a-tv-z]*.s \
	Errs errs linterrs makelinks vnode_if.* genassym
d107 3
a109 9
lint: /tmp param.c
	@@lint -hbxn -DGENERIC ${COPTS} ${PARAM} \
	  ${VAX}/vax/Locore.c ${CFILES} ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'

symbols.sort: ${VAX}/vax/symbols.raw
	grep -v '^#' ${VAX}/vax/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort
d111 2
a112 2
intvec.o: ${VAX}/vax/intvec.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/intvec.s| as -o intvec.o
d114 2
a115 2
subr.o: ${VAX}/vax/subr.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/subr.s| as -o subr.o
d117 3
a120 3
depend: ${CFILES}
	mkdep ${COPTS} ${.ALLSRC:M*.c} ioconf.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM}
d122 3
a124 2
ioconf.o:
	${CC} -c ${CFLAGS} ${PARAM} ioconf.c
d126 39
a164 3
lim.o:	Makefile
	../../conf/mkoldconf.awk < ioconf.c > lim.c
	${CC} -O -c ${CFLAGS} ${PARAM} lim.c
a165 3
param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .
d167 2
a168 2
param.o: param.c Makefile
	${CC} -O -c ${CFLAGS} ${PARAM} param.c
d170 2
a171 3
newvers:
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c
d173 2
a174 2
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
d176 2
@


1.14
log
@Don't special-case conf.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.13 1996/02/01 22:33:21 mycroft Exp $
d32 1
a32 1
AOPTS=  ${COPTS} -DASSEMBLER
@


1.13
log
@LOCORE -> _LOCORE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.12 1995/09/19 23:57:55 thorpej Exp $
a112 3

conf.o: ${VAX}/vax/conf.c
	${CC} -O -c ${CFLAGS} ${PARAM} ${VAX}/vax/conf.c
@


1.12
log
@Compile kernel with -Werror and -fno-builtin.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.11 1995/07/24 18:58:32 ragge Exp $
d54 1
a54 1
NORMAL_S= ${CC} -x assembler-with-cpp -E -I. -DLOCORE ${COPTS} $< | \
@


1.11
log
@maxpartitions added. Kernel now loaded with -Z flag.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.10 1995/07/05 08:17:17 ragge Exp $
d33 1
a33 1
CFLAGS=	${COPTS}
@


1.10
log
@DDB file added.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.9 1995/06/24 21:14:40 christos Exp $
d44 8
d64 1
a64 1
SYSTEM_LD= ${LD} -d -e _start -T ${LOAD_ADDRESS} -o $@@ ${SYSTEM_OBJS} vers.o
@


1.9
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.vax,v 1.8 1995/05/16 22:25:24 jtc Exp $
a21 1
C2=	/usr/libexec/cc1
d31 1
a31 1
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL
a35 5
INLINECMD=	${VAX}/inline/obj/inline
INLINE= ${INLINECMD} ${INLINEOPTS}

#AHEADS=	${VAX}/vax/pcb.m

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

d69 1
a69 1
		Errs errs linterrs makelinks vnode_if.* genassym
a80 3
${INLINECMD}:
	cd ${VAX}/inline; make

a86 9
#
# Den h{r filen borde st{das upp och fixas till, det blir nog n{r 
# glue-filerna g|r vad dom ska :)

#emulate.o: ${VAX}/vax/emulate.s
#	cpp -I. ${COPTS} ${VAX}/vax/emulate.s | ${AS} -o emulate.o

# the following is necessary because autoconf.o depends on #if GENERIC
#autoconf.o tu.o: Makefile
d88 1
a88 22
# the following are necessary because the files depend on the types of
# vax cpu's included in the system configuration
#clock.o machdep.o autoconf.o conf.o cons.o cpudata.o : Makefile
#crl.o flp.o mba.o uba.o vaxcpu.o : Makefile

# depend on network configuration
#af.o uipc_proto.o uipc_domain.o subr.o: Makefile
lim.o: Makefile

# depends on kdb being configured
#trap.o:	Makefile

# depend on maxusers
assym.s: Makefile

assym.s: genassym
	./genassym >assym.s

genassym:
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${VAX}/vax/genassym.c

depend: assym.s ${CFILES}
d90 1
a90 14
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${VAX}/vax/genassym.c

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
	echo 'rm -f udiv.o;ln -s ../GENERIC/udiv.o udiv.o' >> makelinks
	echo 'rm -f urem.o;ln -s ../GENERIC/urem.o urem.o' >> makelinks
	sh makelinks && rm -f dontlink

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

#	${CC} -c -S ${COPTS} ioconf.c
#	cat ioconf.s | ${INLINE} | ${AS} -o ioconf.o
#	rm -f ioconf.s
@


1.8
log
@Removing -DKERNEL, transition to _KERNEL has been completed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.7 1995/03/23 19:47:43 jtc Exp $
d45 1
a45 1
LIBKERN=../../../../lib/libkern/libkern.a   #        ${KERNLIB}
d50 8
d65 2
a66 1
SYSTEM_OBJS=${SYSTEM_ASMS} lim.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN}
d81 1
a81 1
clean:
d83 1
a83 1
		Errs errs linterrs makelinks vnode_if.*
@


1.7
log
@Added -D_KERNEL to CFLAGS alongside each -DKERNEL.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.6 1995/02/23 17:50:57 ragge Exp $
d32 1
a32 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL -D_KERNEL
@


1.6
log
@Support for new CPU type (KA630 == uVAXII) added, tape driver.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.5 1995/02/13 00:41:56 ragge Exp $
d32 1
a32 1
COPTS=	${INCLUDES} ${IDENT} -DKERNEL
@


1.5
log
@Program to make a fast convert from new to old config (Ugly!)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.vax,v 1.4 1994/10/26 08:01:42 cgd Exp $
d52 2
a53 1
NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
@


1.4
log
@new RCS ID format.
@
text
@d1 1
a1 1
#	$NetBSD$
d50 1
a50 1
NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
d56 1
a56 1
SYSTEM_OBJS=${SYSTEM_ASMS} vnode_if.o ${OBJS} glue.o param.o ioconf.o ${LIBKERN}
d102 1
a102 1
autoconf.o tu.o: Makefile
d106 2
a107 2
clock.o machdep.o autoconf.o conf.o cons.o cpudata.o : Makefile
crl.o flp.o mba.o uba.o vaxcpu.o : Makefile
d111 1
d114 1
a114 1
trap.o:	Makefile
d149 4
d158 1
a158 4
	${CC} -c ${CFLAGS} ${PARAM} param.c

glue.o: ${VAX}/vax/glue.c
	${CC} -c ${CFLAGS} ${PARAM} ${VAX}/vax/glue.c
d161 1
a161 1
	${CC} -c -traditional ${CFLAGS} ${PARAM} ${VAX}/vax/conf.c
@


1.3
log
@New filenames; changes applying to 1.o Beta
@
text
@d1 3
a3 2
#	from: @@(#)Makefile.vax	7.18 (Berkeley) 12/16/90
#	$Id: Makefile.vax,v 1.2 1994/08/16 23:41:11 ragge Exp $
@


1.2
log
@genconf.c added to files.vax.newconf
@
text
@d2 1
a2 1
#	$Id: Makefile.vax,v 1.1 1994/08/02 20:19:22 ragge Exp $
d25 1
d54 2
a55 2
SYSTEM_ASMS=intvec.o locore.o locon.o
SYSTEM_OBJS=${SYSTEM_ASMS} ${OBJS} glue.o param.o ioconf.o ${LIBKERN}
d59 1
a59 1
SYSTEM_LD= ${LD} -d -e start -T ${LOAD_ADDRESS} -o $@@ ${SYSTEM_OBJS} vers.o
d71 2
a72 2
	rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
		Errs errs linterrs makelinks
a86 3
locon.o: ${VAX}/vax/locon.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/locon.s| as -o locon.o

d90 2
a91 2
locore.o: ${VAX}/vax/locore.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/locore.s| as -o locore.o
d109 1
a109 1
#af.o uipc_proto.o uipc_domain.o locore.o: Makefile
d163 4
@


1.2.2.1
log
@file Makefile.vax was added on branch netbsd-1-0 on 1994-08-16 23:41:12 +0000
@
text
@d1 166
@


1.2.2.2
log
@genconf.c added to files.vax.newconf
@
text
@a0 166
#	from: @@(#)Makefile.vax	7.18 (Berkeley) 12/16/90
#	$Id: Makefile.vax,v 1.2 1994/08/16 23:41:11 ragge Exp $
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/vax/conf/``machineid''
# after which you should do
#	 config machineid
# Machine generic makefile changes should be made in
#	/sys/conf/Makefile.``machinetype''
# 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
# -DUUDMA	compile in unibus tu58 pseudo-dma code
#
C2=	/usr/libexec/cc1
CC=	cc
CPP=	cpp
LD=	/usr/bin/ld

S=	../../../..
VAX=	../..

INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -DKERNEL
AOPTS=  ${COPTS} -DASSEMBLER
CFLAGS=	${COPTS}
LOAD_ADDRESS=80000000

INLINECMD=	${VAX}/inline/obj/inline
INLINE= ${INLINECMD} ${INLINEOPTS}

#AHEADS=	${VAX}/vax/pcb.m

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

NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
SYSTEM_ASMS=intvec.o locore.o locon.o
SYSTEM_OBJS=${SYSTEM_ASMS} ${OBJS} glue.o param.o ioconf.o ${LIBKERN}
#SYSTEM_DEP=${SYSTEM_ASMS} lovm.o pmap.o
SYSTEM_DEP=${SYSTEM_ASMS} ${SYSTEM_OBJS}
SYSTEM_LD_HEAD=         @@echo loading $@@; rm -f $@@
SYSTEM_LD= ${LD} -d -e start -T ${LOAD_ADDRESS} -o $@@ ${SYSTEM_OBJS} vers.o
#SYSTEM_LD_TAIL= @@echo rearranging symbols; symorder symbols.sort $@@; ${DBSYM} -f
SYSTEM_LD_TAIL=@@echo Nu {r k{rnan klar!!!!


%OBJS

%CFILES

%LOAD

clean:
	rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
		Errs errs linterrs makelinks

lint: /tmp param.c
	@@lint -hbxn -DGENERIC ${COPTS} ${PARAM} \
	  ${VAX}/vax/Locore.c ${CFILES} ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'

symbols.sort: ${VAX}/vax/symbols.raw
	grep -v '^#' ${VAX}/vax/symbols.raw \
	    | sed 's/^	//' | sort -u > symbols.sort

${INLINECMD}:
	cd ${VAX}/inline; make

locon.o: ${VAX}/vax/locon.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/locon.s| as -o locon.o

intvec.o: ${VAX}/vax/intvec.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/intvec.s| as -o intvec.o

locore.o: ${VAX}/vax/locore.s
	${CC} -x assembler-with-cpp -E ${AOPTS} ${VAX}/vax/locore.s| as -o locore.o

#
# Den h{r filen borde st{das upp och fixas till, det blir nog n{r 
# glue-filerna g|r vad dom ska :)

#emulate.o: ${VAX}/vax/emulate.s
#	cpp -I. ${COPTS} ${VAX}/vax/emulate.s | ${AS} -o emulate.o

# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o tu.o: Makefile

# the following are necessary because the files depend on the types of
# vax cpu's included in the system configuration
clock.o machdep.o autoconf.o conf.o cons.o cpudata.o : Makefile
crl.o flp.o mba.o uba.o vaxcpu.o : Makefile

# depend on network configuration
#af.o uipc_proto.o uipc_domain.o locore.o: Makefile

# depends on kdb being configured
trap.o:	Makefile

# depend on maxusers
assym.s: Makefile

assym.s: genassym
	./genassym >assym.s

genassym:
	${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${VAX}/vax/genassym.c

depend: assym.s ${CFILES}
	mkdep ${COPTS} ${.ALLSRC:M*.c} ioconf.c
	mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${VAX}/vax/genassym.c

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
	echo 'rm -f udiv.o;ln -s ../GENERIC/udiv.o udiv.o' >> makelinks
	echo 'rm -f urem.o;ln -s ../GENERIC/urem.o urem.o' >> makelinks
	sh makelinks && rm -f dontlink

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

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

#	${CC} -c -S ${COPTS} ioconf.c
#	cat ioconf.s | ${INLINE} | ${AS} -o ioconf.o
#	rm -f ioconf.s

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

param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c

glue.o: ${VAX}/vax/glue.c
	${CC} -c ${CFLAGS} ${PARAM} ${VAX}/vax/glue.c

conf.o: ${VAX}/vax/conf.c
	${CC} -c -traditional ${CFLAGS} ${PARAM} ${VAX}/vax/conf.c

newvers:
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c

%RULES
@


1.1
log
@Initial VAX port merging.
@
text
@d1 2
a2 2
#	@@(#)Makefile.vax	7.18 (Berkeley) 12/16/90
#	$Id$
d157 1
a157 1
	${CC} -c ${CFLAGS} ${PARAM} glue.c
d160 1
a160 1
	${CC} -c -traditional ${CFLAGS} ${PARAM} conf.c
@
