head	1.20;
access;
symbols
	perseant-exfatfs-base-20250801:1.20
	perseant-exfatfs-base-20240630:1.20
	perseant-exfatfs:1.20.0.26
	perseant-exfatfs-base:1.20
	bouyer-sunxi-drm:1.20.0.24
	bouyer-sunxi-drm-base:1.20
	cjep_sun2x:1.20.0.22
	cjep_sun2x-base:1.20
	cjep_staticlib_x-base1:1.20
	cjep_staticlib_x:1.20.0.20
	cjep_staticlib_x-base:1.20
	thorpej-futex-base:1.20
	bouyer-xenpvh-base2:1.20
	phil-wifi-20200421:1.20
	bouyer-xenpvh-base1:1.20
	phil-wifi-20200411:1.20
	bouyer-xenpvh:1.20.0.18
	bouyer-xenpvh-base:1.20
	phil-wifi-20200406:1.20
	ad-namecache-base3:1.20
	ad-namecache-base2:1.20
	ad-namecache-base1:1.20
	ad-namecache:1.20.0.16
	ad-namecache-base:1.20
	isaki-audio2:1.20.0.14
	isaki-audio2-base:1.20
	pgoyette-compat-merge-20190127:1.20
	pgoyette-compat-20190127:1.20
	pgoyette-compat-20190118:1.20
	pgoyette-compat-1226:1.20
	pgoyette-compat-1126:1.20
	pgoyette-compat-1020:1.20
	pgoyette-compat-0930:1.20
	pgoyette-compat-0906:1.20
	pgoyette-compat-0728:1.20
	pgoyette-compat-0625:1.20
	pgoyette-compat-0521:1.20
	pgoyette-compat-0502:1.20
	pgoyette-compat-0422:1.20
	pgoyette-compat-0415:1.20
	pgoyette-compat-0407:1.20
	pgoyette-compat-0330:1.20
	pgoyette-compat-0322:1.20
	pgoyette-compat-0315:1.20
	pgoyette-compat:1.20.0.12
	pgoyette-compat-base:1.20
	perseant-stdc-iso10646:1.20.0.10
	perseant-stdc-iso10646-base:1.20
	prg-localcount2-base3:1.20
	prg-localcount2-base2:1.20
	prg-localcount2-base1:1.20
	prg-localcount2:1.20.0.8
	prg-localcount2-base:1.20
	pgoyette-localcount-20170426:1.20
	bouyer-socketcan-base1:1.20
	pgoyette-localcount-20170320:1.20
	bouyer-socketcan:1.20.0.6
	bouyer-socketcan-base:1.20
	pgoyette-localcount-20170107:1.20
	pgoyette-localcount-20161104:1.20
	localcount-20160914:1.20
	pgoyette-localcount-20160806:1.20
	pgoyette-localcount-20160726:1.20
	pgoyette-localcount:1.20.0.4
	pgoyette-localcount-base:1.20
	netbsd-5-2-3-RELEASE:1.12
	netbsd-5-1-5-RELEASE:1.12
	netbsd-6-0-6-RELEASE:1.15
	netbsd-6-1-5-RELEASE:1.15
	yamt-pagecache-base9:1.20
	yamt-pagecache-tag8:1.15
	netbsd-6-1-4-RELEASE:1.15
	netbsd-6-0-5-RELEASE:1.15
	tls-earlyentropy:1.20.0.2
	tls-earlyentropy-base:1.20
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.20
	riastradh-drm2-base3:1.20
	netbsd-6-1-3-RELEASE:1.15
	netbsd-6-0-4-RELEASE:1.15
	netbsd-5-2-2-RELEASE:1.12
	netbsd-5-1-4-RELEASE:1.12
	netbsd-6-1-2-RELEASE:1.15
	netbsd-6-0-3-RELEASE:1.15
	netbsd-5-2-1-RELEASE:1.12
	netbsd-5-1-3-RELEASE:1.12
	rmind-smpnet-nbase:1.20
	netbsd-6-1-1-RELEASE:1.15
	riastradh-drm2-base2:1.17
	riastradh-drm2-base1:1.17
	riastradh-drm2:1.17.0.4
	riastradh-drm2-base:1.17
	rmind-smpnet:1.17.0.2
	rmind-smpnet-base:1.20
	netbsd-6-1:1.15.0.22
	netbsd-6-0-2-RELEASE:1.15
	netbsd-6-1-RELEASE:1.15
	khorben-n900:1.15.0.20
	netbsd-6-1-RC4:1.15
	netbsd-6-1-RC3:1.15
	agc-symver:1.15.0.18
	agc-symver-base:1.15
	netbsd-6-1-RC2:1.15
	netbsd-6-1-RC1:1.15
	yamt-pagecache-base8:1.15
	netbsd-5-2:1.12.0.16
	netbsd-6-0-1-RELEASE:1.15
	yamt-pagecache-base7:1.15
	netbsd-5-2-RELEASE:1.12
	netbsd-5-2-RC1:1.12
	matt-nb6-plus-nbase:1.15
	yamt-pagecache-base6:1.15
	netbsd-6-0:1.15.0.14
	netbsd-6-0-RELEASE:1.15
	netbsd-6-0-RC2:1.15
	tls-maxphys:1.15.0.12
	tls-maxphys-base:1.20
	matt-nb6-plus:1.15.0.10
	matt-nb6-plus-base:1.15
	netbsd-6-0-RC1:1.15
	jmcneill-usbmp-base10:1.15
	yamt-pagecache-base5:1.15
	jmcneill-usbmp-base9:1.15
	yamt-pagecache-base4:1.15
	jmcneill-usbmp-base8:1.15
	jmcneill-usbmp-base7:1.15
	jmcneill-usbmp-base6:1.15
	jmcneill-usbmp-base5:1.15
	jmcneill-usbmp-base4:1.15
	jmcneill-usbmp-base3:1.15
	jmcneill-usbmp-pre-base2:1.15
	jmcneill-usbmp-base2:1.15
	netbsd-6:1.15.0.8
	netbsd-6-base:1.15
	netbsd-5-1-2-RELEASE:1.12
	netbsd-5-1-1-RELEASE:1.12
	jmcneill-usbmp:1.15.0.6
	jmcneill-usbmp-base:1.15
	jmcneill-audiomp3:1.15.0.4
	jmcneill-audiomp3-base:1.15
	yamt-pagecache-base3:1.15
	yamt-pagecache-base2:1.15
	yamt-pagecache:1.15.0.2
	yamt-pagecache-base:1.15
	rmind-uvmplock-nbase:1.14
	cherry-xenmp:1.14.0.10
	cherry-xenmp-base:1.14
	jym-xensuspend-nbase:1.14
	uebayasi-xip-base7:1.14
	bouyer-quota2-nbase:1.14
	bouyer-quota2:1.14.0.8
	bouyer-quota2-base:1.14
	jruoho-x86intr:1.14.0.6
	jruoho-x86intr-base:1.14
	matt-mips64-premerge-20101231:1.14
	matt-nb5-mips64-premerge-20101231:1.12
	matt-nb5-pq3:1.12.0.14
	matt-nb5-pq3-base:1.12
	netbsd-5-1:1.12.0.12
	uebayasi-xip-base6:1.14
	uebayasi-xip-base5:1.14
	netbsd-5-1-RELEASE:1.12
	uebayasi-xip-base4:1.14
	uebayasi-xip-base3:1.14
	yamt-nfs-mp-base11:1.14
	netbsd-5-1-RC4:1.12
	matt-nb5-mips64-k15:1.12
	uebayasi-xip-base2:1.14
	yamt-nfs-mp-base10:1.14
	netbsd-5-1-RC3:1.12
	netbsd-5-1-RC2:1.12
	uebayasi-xip-base1:1.14
	netbsd-5-1-RC1:1.12
	rmind-uvmplock:1.14.0.4
	rmind-uvmplock-base:1.14
	yamt-nfs-mp-base9:1.14
	uebayasi-xip:1.14.0.2
	uebayasi-xip-base:1.14
	netbsd-5-0-2-RELEASE:1.12
	matt-nb5-mips64-premerge-20091211:1.12
	matt-premerge-20091211:1.14
	yamt-nfs-mp-base8:1.14
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.12
	matt-nb4-mips64-k7-u2a-k9b:1.12
	matt-nb5-mips64-u1-k1-k5:1.12
	yamt-nfs-mp-base7:1.14
	matt-nb5-mips64:1.12.0.10
	netbsd-5-0-1-RELEASE:1.12
	jymxensuspend-base:1.14
	yamt-nfs-mp-base6:1.14
	yamt-nfs-mp-base5:1.14
	yamt-nfs-mp-base4:1.14
	yamt-nfs-mp-base3:1.14
	nick-hppapmap-base4:1.13
	nick-hppapmap-base3:1.13
	netbsd-5-0:1.12.0.8
	netbsd-5-0-RELEASE:1.12
	netbsd-5-0-RC4:1.12
	netbsd-5-0-RC3:1.12
	nick-hppapmap-base2:1.13
	netbsd-5-0-RC2:1.12
	jym-xensuspend:1.13.0.2
	jym-xensuspend-base:1.14
	netbsd-5-0-RC1:1.12
	haad-dm-base2:1.12
	haad-nbase2:1.12
	ad-audiomp2:1.12.0.6
	ad-audiomp2-base:1.12
	netbsd-5:1.12.0.4
	netbsd-5-base:1.12
	nick-hppapmap:1.12.0.2
	nick-hppapmap-base:1.13
	matt-mips64-base2:1.11
	haad-dm-base1:1.11
	wrstuden-revivesa-base-4:1.11
	netbsd-4-0-1-RELEASE:1.8
	wrstuden-revivesa-base-3:1.11
	wrstuden-revivesa-base-2:1.11
	wrstuden-fixsa-newbase:1.8
	nick-csl-alignment-base5:1.8
	haad-dm:1.10.0.2
	haad-dm-base:1.12
	wrstuden-revivesa-base-1:1.10
	simonb-wapbl-nbase:1.10
	yamt-pf42-base4:1.10
	simonb-wapbl:1.9.0.8
	simonb-wapbl-base:1.10
	yamt-pf42-base3:1.9
	hpcarm-cleanup-nbase:1.9
	yamt-pf42-baseX:1.9
	yamt-pf42-base2:1.9
	yamt-nfs-mp-base2:1.9
	wrstuden-revivesa:1.9.0.6
	wrstuden-revivesa-base:1.10
	yamt-nfs-mp:1.9.0.4
	yamt-nfs-mp-base:1.9
	yamt-pf42:1.9.0.2
	yamt-pf42-base:1.9
	ad-socklock-base1:1.9
	yamt-lazymbuf-base15:1.9
	yamt-lazymbuf-base14:1.9
	keiichi-mipv6-nbase:1.9
	mjf-devfs2:1.8.0.52
	mjf-devfs2-base:1.13
	nick-net80211-sync:1.8.0.50
	nick-net80211-sync-base:1.8
	keiichi-mipv6:1.8.0.48
	keiichi-mipv6-base:1.9
	bouyer-xeni386-merge1:1.8
	matt-armv6-prevmlocking:1.8
	wrstuden-fixsa-base-1:1.8
	vmlocking2-base3:1.8
	netbsd-4-0:1.8.0.46
	netbsd-4-0-RELEASE:1.8
	bouyer-xeni386-nbase:1.8
	yamt-kmem-base3:1.8
	cube-autoconf:1.8.0.44
	cube-autoconf-base:1.8
	yamt-kmem-base2:1.8
	bouyer-xeni386:1.8.0.42
	bouyer-xeni386-base:1.8
	yamt-kmem:1.8.0.40
	yamt-kmem-base:1.8
	vmlocking2-base2:1.8
	reinoud-bufcleanup-nbase:1.8
	vmlocking2:1.8.0.38
	vmlocking2-base1:1.8
	netbsd-4-0-RC5:1.8
	matt-nb4-arm:1.8.0.36
	matt-nb4-arm-base:1.8
	matt-armv6-nbase:1.9
	jmcneill-base:1.8
	netbsd-4-0-RC4:1.8
	mjf-devfs:1.8.0.34
	mjf-devfs-base:1.8
	bouyer-xenamd64-base2:1.8
	vmlocking-nbase:1.8
	yamt-x86pmap-base4:1.8
	bouyer-xenamd64:1.8.0.32
	bouyer-xenamd64-base:1.8
	netbsd-4-0-RC3:1.8
	yamt-x86pmap-base3:1.8
	yamt-x86pmap-base2:1.8
	netbsd-4-0-RC2:1.8
	yamt-x86pmap:1.8.0.30
	yamt-x86pmap-base:1.8
	netbsd-4-0-RC1:1.8
	matt-armv6:1.8.0.28
	matt-armv6-base:1.8
	jmcneill-pm:1.8.0.26
	jmcneill-pm-base:1.8
	hpcarm-cleanup:1.8.0.24
	hpcarm-cleanup-base:1.8
	nick-csl-alignment:1.8.0.22
	nick-csl-alignment-base:1.8
	matt-mips64:1.8.0.20
	matt-mips64-base:1.8
	netbsd-3-1-1-RELEASE:1.4
	netbsd-3-0-3-RELEASE:1.4
	yamt-idlelwp-base8:1.8
	wrstuden-fixsa:1.8.0.18
	wrstuden-fixsa-base:1.8
	ppcoea-renovation:1.8.0.16
	ppcoea-renovation-base:1.8
	thorpej-atomic:1.8.0.14
	thorpej-atomic-base:1.8
	reinoud-bufcleanup:1.8.0.12
	reinoud-bufcleanup-base:1.8
	mjf-ufs-trans:1.8.0.10
	mjf-ufs-trans-base:1.8
	vmlocking:1.8.0.8
	vmlocking-base:1.8
	ad-audiomp:1.8.0.6
	ad-audiomp-base:1.8
	yamt-idlelwp:1.8.0.4
	post-newlock2-merge:1.8
	newlock2-nbase:1.8
	yamt-splraiseipl-base5:1.8
	yamt-splraiseipl-base4:1.8
	yamt-splraiseipl-base3:1.8
	abandoned-netbsd-4-base:1.7
	abandoned-netbsd-4:1.7.0.2
	netbsd-3-1:1.4.0.22
	netbsd-3-1-RELEASE:1.4
	netbsd-3-0-2-RELEASE:1.4
	yamt-splraiseipl-base2:1.8
	netbsd-3-1-RC4:1.4
	yamt-splraiseipl:1.7.0.6
	yamt-splraiseipl-base:1.7
	netbsd-3-1-RC3:1.4
	yamt-pdpolicy-base9:1.7
	newlock2:1.7.0.4
	newlock2-base:1.8
	yamt-pdpolicy-base8:1.7
	netbsd-3-1-RC2:1.4
	netbsd-3-1-RC1:1.4
	yamt-pdpolicy-base7:1.7
	netbsd-4:1.8.0.2
	netbsd-4-base:1.8
	yamt-pdpolicy-base6:1.6
	chap-midi-nbase:1.5
	netbsd-3-0-1-RELEASE:1.4
	gdamore-uart:1.5.0.16
	gdamore-uart-base:1.5
	simonb-timcounters-final:1.5
	yamt-pdpolicy-base5:1.5
	chap-midi:1.5.0.14
	chap-midi-base:1.5
	yamt-pdpolicy-base4:1.5
	yamt-pdpolicy-base3:1.5
	peter-altq-base:1.5
	peter-altq:1.5.0.12
	yamt-pdpolicy-base2:1.5
	elad-kernelauth-base:1.5
	elad-kernelauth:1.5.0.10
	yamt-pdpolicy:1.5.0.8
	yamt-pdpolicy-base:1.5
	yamt-uio_vmspace-base5:1.5
	simonb-timecounters:1.5.0.6
	simonb-timecounters-base:1.5
	rpaulo-netinet-merge-pcb:1.5.0.4
	rpaulo-netinet-merge-pcb-base:1.7
	yamt-uio_vmspace:1.5.0.2
	netbsd-3-0:1.4.0.20
	netbsd-3-0-RELEASE:1.4
	netbsd-3-0-RC6:1.4
	yamt-readahead-base3:1.4
	netbsd-3-0-RC5:1.4
	netbsd-3-0-RC4:1.4
	netbsd-3-0-RC3:1.4
	yamt-readahead-base2:1.4
	netbsd-3-0-RC2:1.4
	yamt-readahead-pervnode:1.4
	yamt-readahead-perfile:1.4
	yamt-readahead:1.4.0.18
	yamt-readahead-base:1.4
	netbsd-3-0-RC1:1.4
	yamt-vop-base3:1.4
	yamt-vop-base2:1.4
	thorpej-vnode-attr:1.4.0.16
	thorpej-vnode-attr-base:1.4
	yamt-vop:1.4.0.14
	yamt-vop-base:1.4
	yamt-lazymbuf:1.4.0.12
	yamt-km-base4:1.4
	yamt-km-base3:1.4
	netbsd-3:1.4.0.10
	netbsd-3-base:1.4
	yamt-km-base2:1.4
	yamt-km:1.4.0.6
	yamt-km-base:1.4
	kent-audio2:1.4.0.4
	kent-audio2-base:1.4
	kent-audio1-beforemerge:1.4
	kent-audio1:1.4.0.2
	kent-audio1-base:1.4
	ktrace-lwp-base:1.4
	ktrace-lwp:1.1.0.2;
locks; strict;
comment	@# @;


1.20
date	2014.02.24.07.23.42;	author skrll;	state dead;
branches;
next	1.19;

1.19
date	2014.01.12.15.26.29;	author tsutsui;	state Exp;
branches;
next	1.18;

1.18
date	2013.11.17.08.21.01;	author skrll;	state Exp;
branches;
next	1.17;

1.17
date	2013.06.17.17.44.16;	author christos;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2013.06.15.00.40.12;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	2011.06.20.08.46.28;	author mrg;	state Exp;
branches
	1.15.2.1
	1.15.12.1;
next	1.14;

1.14
date	2009.05.03.17.33.29;	author tsutsui;	state Exp;
branches
	1.14.10.1;
next	1.13;

1.13
date	2009.01.12.07.19.08;	author tsutsui;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2008.10.25.22.27.37;	author apb;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2008.08.29.00.02.23;	author gmcgarry;	state Exp;
branches;
next	1.10;

1.10
date	2008.06.12.14.08.29;	author skrll;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2008.03.10.20.19.28;	author skrll;	state Exp;
branches
	1.9.2.1
	1.9.4.1
	1.9.6.1
	1.9.8.1;
next	1.8;

1.8
date	2006.09.28.21.17.01;	author skrll;	state Exp;
branches
	1.8.28.1
	1.8.48.1
	1.8.52.1;
next	1.7;

1.7
date	2006.06.28.09.27.17;	author lukem;	state Exp;
branches
	1.7.4.1
	1.7.6.1;
next	1.6;

1.6
date	2006.06.25.05.12.29;	author mrg;	state Exp;
branches;
next	1.5;

1.5
date	2005.12.11.12.17.25;	author christos;	state Exp;
branches
	1.5.4.1
	1.5.8.1
	1.5.16.1;
next	1.4;

1.4
date	2004.11.29.15.19.26;	author jmc;	state Exp;
branches
	1.4.12.1;
next	1.3;

1.3
date	2004.11.07.21.58.45;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	2004.08.09.16.01.37;	author chs;	state Exp;
branches;
next	1.1;

1.1
date	2004.06.15.03.10.30;	author itohy;	state Exp;
branches
	1.1.2.1;
next	;

1.17.2.1
date	2014.05.18.17.45.09;	author rmind;	state dead;
branches;
next	;

1.15.2.1
date	2014.05.22.11.39.48;	author yamt;	state dead;
branches;
next	;

1.15.12.1
date	2013.06.23.06.20.05;	author tls;	state Exp;
branches;
next	1.15.12.2;

1.15.12.2
date	2014.08.20.00.03.02;	author tls;	state dead;
branches;
next	;

1.14.10.1
date	2011.06.23.14.19.12;	author cherry;	state Exp;
branches;
next	;

1.13.2.1
date	2009.05.13.17.17.44;	author jym;	state Exp;
branches;
next	;

1.12.2.1
date	2009.01.19.13.16.13;	author skrll;	state Exp;
branches;
next	;

1.10.2.1
date	2008.10.19.22.15.46;	author haad;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2008.12.13.01.13.11;	author haad;	state Exp;
branches;
next	;

1.9.2.1
date	2008.06.17.09.14.00;	author yamt;	state Exp;
branches;
next	;

1.9.4.1
date	2009.05.04.08.11.08;	author yamt;	state Exp;
branches;
next	;

1.9.6.1
date	2008.06.23.04.30.22;	author wrstuden;	state Exp;
branches;
next	1.9.6.2;

1.9.6.2
date	2008.09.18.04.33.26;	author wrstuden;	state Exp;
branches;
next	;

1.9.8.1
date	2008.06.18.16.32.41;	author simonb;	state Exp;
branches;
next	;

1.8.28.1
date	2008.03.23.02.04.02;	author matt;	state Exp;
branches;
next	;

1.8.48.1
date	2008.03.24.07.14.56;	author keiichi;	state Exp;
branches;
next	;

1.8.52.1
date	2008.04.03.12.42.16;	author mjf;	state Exp;
branches;
next	1.8.52.2;

1.8.52.2
date	2008.06.29.09.32.57;	author mjf;	state Exp;
branches;
next	1.8.52.3;

1.8.52.3
date	2008.09.28.10.39.57;	author mjf;	state Exp;
branches;
next	1.8.52.4;

1.8.52.4
date	2009.01.17.13.28.01;	author mjf;	state Exp;
branches;
next	;

1.7.4.1
date	2006.11.18.21.29.13;	author ad;	state Exp;
branches;
next	;

1.7.6.1
date	2006.10.22.06.04.41;	author yamt;	state Exp;
branches;
next	;

1.5.4.1
date	2006.09.09.02.39.26;	author rpaulo;	state Exp;
branches;
next	;

1.5.8.1
date	2006.06.26.12.44.38;	author yamt;	state Exp;
branches;
next	1.5.8.2;

1.5.8.2
date	2006.08.11.15.41.43;	author yamt;	state Exp;
branches;
next	;

1.5.16.1
date	2006.07.13.17.48.49;	author gdamore;	state Exp;
branches;
next	;

1.4.12.1
date	2006.12.30.20.46.01;	author yamt;	state Exp;
branches;
next	1.4.12.2;

1.4.12.2
date	2008.03.17.09.14.17;	author yamt;	state Exp;
branches;
next	;

1.1.2.1
date	2004.06.15.03.10.30;	author skrll;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2004.08.03.10.34.55;	author skrll;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2004.08.12.11.41.04;	author skrll;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2004.09.18.14.34.32;	author skrll;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2004.09.21.13.15.40;	author skrll;	state Exp;
branches;
next	1.1.2.6;

1.1.2.6
date	2004.11.14.08.15.06;	author skrll;	state Exp;
branches;
next	1.1.2.7;

1.1.2.7
date	2004.12.18.09.31.02;	author skrll;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.
@
text
@#	$NetBSD: Makefile,v 1.19 2014/01/12 15:26:29 tsutsui Exp $

PROG=	xxboot
NOMAN=	# defined
SRCS=	start.S main.c readufs.c readufs_ffs.c readufs_lfs.c milli_tiny.S

.PATH:	${.CURDIR}/../common

CPPFLAGS+=	-I${.CURDIR}/../../../.. -I. -D_STANDALONE
# configuration for readufs module
CPPFLAGS+=	-DUSE_LFS -DUSE_FFS -DUSE_UFS1 -DUSE_UFS2
# IODC can handle only 2GB, so this is enough
CPPFLAGS+=	-D__daddr_t=int32_t
# ANSI C feature prevents from being relocatable
#CPPFLAGS+=	-traditional	# would be best
CPPFLAGS+=	-Dconst=
COPTS+=		-Os -funsigned-char -mdisable-fpregs -mpa-risc-1-0

.include <bsd.own.mk>

LINKS=	${BINDIR}/${PROG} ${BINDIR}/sdboot

BINDIR=		/usr/mdec
STRIPFLAG=
BINMODE=	444

# standalone program
LIBCRTBEGIN=
LIBCRT0=
LIBCRTI=
LIBCRTEND=
LIBC=

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

${PROG}: iplsum ${OBJS}
	${_MKTARGET_LINK}
	${LD} -Ttext 0 -Tdata 0 -e '$$START$$' -N -o $@@1 $(OBJS)
	${LD} -Ttext 0x100 -Tdata 0x23456780 -e '$$START$$' -N -o $@@2 $(OBJS)
	${SIZE} $@@1
	${OBJCOPY} -O binary -j .data $@@1 $@@1.bin
	${OBJCOPY} -O binary -j .data $@@2 $@@2.bin
	cmp $@@1.bin $@@2.bin	# should be same
	${OBJCOPY} -O binary -j .text $@@1 $@@2.bin
	test ! -s $@@2.bin	# text section must be empty
	${_MKMSG} " iplsum " ${.TARGET}
	./iplsum $@@1.bin $@@

iplsum: iplsum.c
	${_MKTARGET_LINK}
	${HOST_CC} -o $@@ ${.CURDIR}/iplsum.c

CLEANFILES+=	${PROG}1 ${PROG}2 ${PROG}1.bin ${PROG}2.bin ${PROG}.bin iplsum
CLEANFILES+=	${SRCS:M*.c:S/.c$/.o.S/}

.include <bsd.prog.mk>
.include <bsd.klinks.mk>

# override default rules

# Place code to data section.
.S.o:
	${_MKTARGET_COMPILE}
	${TOOL_SED} -e 's/\.code/.data/' \
	-e 's/\.bss/.section .bss,"aw",@@nobits/' \
	-e 's/\.allow$$/.level	1.0/' -e 's/\.allow/.level/' \
	 ${.IMPSRC} | ${AS} -o ${.TARGET}

# Place code to data section, and make sure all address calculations
# are relative to $global$.
.c.o:
	${_MKTARGET_COMPILE}
	${CC} ${CFLAGS} ${CPPFLAGS} -o $@@.S -S ${.IMPSRC}
	grep -i 'ldil' $@@.S | egrep -v "ldil L'-?[0-9]*," > /dev/null 2>&1; \
		if [ $$? = 0 ]; then \
			echo 'found non-relocatable code' >&2 && exit 1; \
		fi
	${TOOL_SED} -e 's/\.text/.data/' $@@.S | ${AS} -o ${.TARGET}
@


1.19
log
@Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2013/11/17 08:21:01 skrll Exp $
@


1.18
log
@Use -Os to save space. Required by gcc 4.8.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2013/06/17 17:44:16 christos Exp $
d30 1
@


1.17
log
@Komputer -> Computer
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2013/06/15 00:40:12 christos Exp $
d17 1
a17 1
COPTS+=		-funsigned-char	-mdisable-fpregs -mpa-risc-1-0
@


1.17.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2013/06/17 17:44:16 christos Exp $
@


1.16
log
@since when -m belongs in cppflags?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/06/20 08:46:28 mrg Exp $
d17 1
a17 1
COPTS+=		-funsigned-char	-mdisable-fpregs -mpa-risk-1-0
@


1.15
log
@remove some more ancient HAVE_GCC checks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/05/03 17:33:29 tsutsui Exp $
d9 1
a9 1
CPPFLAGS+=	-mpa-risc-1-0 -I${.CURDIR}/../../../.. -I. -D_STANDALONE
d17 1
a17 1
COPTS+=		-funsigned-char	-mdisable-fpregs
@


1.15.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/06/20 08:46:28 mrg Exp $
@


1.15.12.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d9 1
a9 1
CPPFLAGS+=	-I${.CURDIR}/../../../.. -I. -D_STANDALONE
d17 1
a17 1
COPTS+=		-funsigned-char	-mdisable-fpregs -mpa-risc-1-0
@


1.15.12.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.12.1 2013/06/23 06:20:05 tls Exp $
@


1.14
log
@Use <bsd.klinks.mk> to create machine and ${MACHINE_ARCH} symlinks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2009/01/12 07:19:08 tsutsui Exp $
a20 4
.if defined(HAVE_GCC) && ${HAVE_GCC} != 4
COPTS+=	-fwritable-strings
.endif

@


1.14.10.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/06/20 08:46:28 mrg Exp $
d21 4
@


1.13
log
@Create machine and ${MAHCINE_ARCH} symlinks in ${.OBJDIR}
to allow build without DESTDIR.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2008/10/25 22:27:37 apb Exp $
d60 1
a81 10

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] || ln -s $S/arch/hp700/include machine)
	@@([ -h hppa ] || ln -s $S/arch/hppa/include hppa)

.NOPATH: machine hppa
.endif

CLEANFILES+=machine hppa
@


1.13.2.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/05/03 17:33:29 tsutsui Exp $
a59 1
.include <bsd.klinks.mk>
d81 10
@


1.12
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/08/29 00:02:23 gmcgarry Exp $
d37 2
d81 10
@


1.12.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2009/01/12 07:19:08 tsutsui Exp $
a36 2
S=		${.CURDIR}/../../../..

a78 10

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] || ln -s $S/arch/hp700/include machine)
	@@([ -h hppa ] || ln -s $S/arch/hppa/include hppa)

.NOPATH: machine hppa
.endif

CLEANFILES+=machine hppa
@


1.11
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/06/12 14:08:29 skrll Exp $
d64 1
a64 1
	sed -e 's/\.code/.data/' \
d78 1
a78 1
	sed -e 's/\.text/.data/' $@@.S | ${AS} -o ${.TARGET}
@


1.10
log
@Move milli_tiny.S into sys/arch/hp700/stand/common and use in all boot
programs.

This shrinks cdboot to a size that fits into the first 32K of a CD image
again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/03/10 20:19:28 skrll Exp $
d21 1
a21 1
.if ${HAVE_GCC} != 4
@


1.10.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/08/29 00:02:23 gmcgarry Exp $
d21 1
a21 1
.if defined(HAVE_GCC) && ${HAVE_GCC} != 4
@


1.10.2.2
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2008/10/25 22:27:37 apb Exp $
d64 1
a64 1
	${TOOL_SED} -e 's/\.code/.data/' \
d78 1
a78 1
	${TOOL_SED} -e 's/\.text/.data/' $@@.S | ${AS} -o ${.TARGET}
@


1.9
log
@Don't use MKMAN=no define NOMAN instead.

Prompted by David Holland on tech-misc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/09/28 21:17:01 skrll Exp $
d7 2
@


1.9.4.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/03/10 20:19:28 skrll Exp $
a6 2
.PATH:	${.CURDIR}/../common

d19 1
a19 1
.if defined(HAVE_GCC) && ${HAVE_GCC} != 4
a34 2
S=		${.CURDIR}/../../../..

a55 1
.include <bsd.klinks.mk>
d62 1
a62 1
	${TOOL_SED} -e 's/\.code/.data/' \
d76 1
a76 1
	${TOOL_SED} -e 's/\.text/.data/' $@@.S | ${AS} -o ${.TARGET}
@


1.9.6.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/03/10 20:19:28 skrll Exp $
a6 2
.PATH:	${.CURDIR}/../common

@


1.9.6.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9.6.1 2008/06/23 04:30:22 wrstuden Exp $
d21 1
a21 1
.if defined(HAVE_GCC) && ${HAVE_GCC} != 4
@


1.9.8.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/06/12 14:08:29 skrll Exp $
a6 2
.PATH:	${.CURDIR}/../common

@


1.9.2.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/03/10 20:19:28 skrll Exp $
a6 2
.PATH:	${.CURDIR}/../common

@


1.8
log
@Add -mdisable-fpregs which makes this work again with gcc4. This needs
revisiting.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2006/06/28 09:27:17 lukem Exp $
d4 1
a27 1
MKMAN=		no
@


1.8.52.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
a3 1
NOMAN=	# defined
d27 1
@


1.8.52.2
log
@Sync with HEAD.
@
text
@a6 2
.PATH:	${.CURDIR}/../common

@


1.8.52.3
log
@Sync with HEAD.
@
text
@d21 1
a21 1
.if defined(HAVE_GCC) && ${HAVE_GCC} != 4
@


1.8.52.4
log
@Sync with HEAD.
@
text
@a36 2
S=		${.CURDIR}/../../../..

d64 1
a64 1
	${TOOL_SED} -e 's/\.code/.data/' \
d78 1
a78 11
	${TOOL_SED} -e 's/\.text/.data/' $@@.S | ${AS} -o ${.TARGET}

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	@@([ -h machine ] || ln -s $S/arch/hp700/include machine)
	@@([ -h hppa ] || ln -s $S/arch/hppa/include hppa)

.NOPATH: machine hppa
.endif

CLEANFILES+=machine hppa
@


1.8.48.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/03/10 20:19:28 skrll Exp $
a3 1
NOMAN=	# defined
d27 1
@


1.8.28.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	Makefile,v 1.8 2006/09/28 21:17:01 skrll Exp
a3 1
NOMAN=	# defined
d27 1
@


1.7
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2006/06/25 05:12:29 mrg Exp $
d14 1
a14 1
COPTS+=	-funsigned-char
@


1.7.4.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/09/28 21:17:01 skrll Exp $
d14 1
a14 1
COPTS+=		-funsigned-char	-mdisable-fpregs
@


1.7.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2006/06/28 09:27:17 lukem Exp $
d14 1
a14 1
COPTS+=		-funsigned-char	-mdisable-fpregs
@


1.6
log
@-fwritable-strings is not valid for GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2005/12/11 12:17:25 christos Exp $
d36 1
d45 1
d49 1
d61 1
d70 1
@


1.5
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.6 2004/12/18 09:31:02 skrll Exp $
d14 7
a20 1
COPTS+=	-fwritable-strings -funsigned-char
@


1.5.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2006/06/28 09:27:17 lukem Exp $
d14 1
a14 7
COPTS+=	-funsigned-char

.include <bsd.own.mk>

.if ${HAVE_GCC} != 4
COPTS+=	-fwritable-strings
.endif
a29 1
	${_MKTARGET_LINK}
a37 1
	${_MKMSG} " iplsum " ${.TARGET}
a40 1
	${_MKTARGET_LINK}
a51 1
	${_MKTARGET_COMPILE}
a59 1
	${_MKTARGET_COMPILE}
@


1.5.16.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2006/06/28 09:27:17 lukem Exp $
d14 1
a14 7
COPTS+=	-funsigned-char

.include <bsd.own.mk>

.if ${HAVE_GCC} != 4
COPTS+=	-fwritable-strings
.endif
a29 1
	${_MKTARGET_LINK}
a37 1
	${_MKMSG} " iplsum " ${.TARGET}
a40 1
	${_MKTARGET_LINK}
a51 1
	${_MKTARGET_COMPILE}
a59 1
	${_MKTARGET_COMPILE}
@


1.5.8.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2005/12/11 12:17:25 christos Exp $
d14 1
a14 7
COPTS+=	-funsigned-char

.include <bsd.own.mk>

.if ${HAVE_GCC} != 4
COPTS+=	-fwritable-strings
.endif
@


1.5.8.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5.8.1 2006/06/26 12:44:38 yamt Exp $
a35 1
	${_MKTARGET_LINK}
a43 1
	${_MKMSG} " iplsum " ${.TARGET}
a46 1
	${_MKTARGET_LINK}
a57 1
	${_MKTARGET_COMPILE}
a65 1
	${_MKTARGET_COMPILE}
@


1.4
log
@Fix the way this checks the object files so it works correctly with make -j
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2004/11/07 21:58:45 christos Exp $
@


1.4.12.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2004/11/29 15:19:26 jmc Exp $
d14 1
a14 7
COPTS+=		-funsigned-char	-mdisable-fpregs

.include <bsd.own.mk>

.if ${HAVE_GCC} != 4
COPTS+=	-fwritable-strings
.endif
a29 1
	${_MKTARGET_LINK}
a37 1
	${_MKMSG} " iplsum " ${.TARGET}
a40 1
	${_MKTARGET_LINK}
a51 1
	${_MKTARGET_COMPILE}
a59 1
	${_MKTARGET_COMPILE}
@


1.4.12.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.12.1 2006/12/30 20:46:01 yamt Exp $
a3 1
NOMAN=	# defined
d27 1
@


1.3
log
@Use .S for assembly files instead of .s
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2004/08/09 16:01:37 chs Exp $
d29 1
a29 1
${PROG}: iplsum
d61 4
a64 2
	@@grep -i 'ldil' $@@.S | egrep -v "ldil L'-?[0-9]*," || exit 0; \
		echo 'found non-relocatable code' >&2; exit 1
@


1.2
log
@move DBG settings to CPPFLAGS and COPTS as appropriate
so that we can use the default DBG now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2004/06/15 03:10:30 itohy Exp $
d4 1
a4 1
SRCS=	start.s main.c readufs.c readufs_ffs.c readufs_lfs.c milli_tiny.s
d44 1
a44 1
CLEANFILES+=	${SRCS:M*.c:S/.c$/.o.s/}
d51 1
a51 1
.s.o:
d55 1
a55 1
	 $< | ${AS} -o $@@
d60 2
a61 2
	${CC} ${CFLAGS} ${CPPFLAGS} -o $@@.s -S $<
	@@grep -i 'ldil' $@@.s | egrep -v "ldil L'-?[0-9]*," || exit 0; \
d63 1
a63 1
	sed -e 's/\.text/.data/' $@@.s | ${AS} -o $@@
@


1.1
log
@NetBSD/hp700 FFS/LFS Primary Bootstrap
@
text
@d1 1
a1 1
#	$NetBSD$
a10 3
# require -O for relocatable code
# -funsigned-char may reduce size
DBG=		-O -funsigned-char -W -Wall
d13 2
a14 1
CPPFLAGS+=	-fwritable-strings -Dconst=
@


1.1.2.1
log
@file Makefile was added on branch ktrace-lwp on 2004-08-03 10:34:55 +0000
@
text
@d1 65
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 65
#	$NetBSD: Makefile,v 1.1.2.1 2004/08/03 10:34:55 skrll Exp $

PROG=	xxboot
SRCS=	start.s main.c readufs.c readufs_ffs.c readufs_lfs.c milli_tiny.s

CPPFLAGS+=	-mpa-risc-1-0 -I${.CURDIR}/../../../.. -I. -D_STANDALONE
# configuration for readufs module
CPPFLAGS+=	-DUSE_LFS -DUSE_FFS -DUSE_UFS1 -DUSE_UFS2
# IODC can handle only 2GB, so this is enough
CPPFLAGS+=	-D__daddr_t=int32_t
# require -O for relocatable code
# -funsigned-char may reduce size
DBG=		-O -funsigned-char -W -Wall
# ANSI C feature prevents from being relocatable
#CPPFLAGS+=	-traditional	# would be best
CPPFLAGS+=	-fwritable-strings -Dconst=

LINKS=	${BINDIR}/${PROG} ${BINDIR}/sdboot

BINDIR=		/usr/mdec
STRIPFLAG=
BINMODE=	444
MKMAN=		no

# standalone program
LIBCRTBEGIN=
LIBCRT0=
LIBCRTEND=
LIBC=

${PROG}: iplsum
	${LD} -Ttext 0 -Tdata 0 -e '$$START$$' -N -o $@@1 $(OBJS)
	${LD} -Ttext 0x100 -Tdata 0x23456780 -e '$$START$$' -N -o $@@2 $(OBJS)
	${SIZE} $@@1
	${OBJCOPY} -O binary -j .data $@@1 $@@1.bin
	${OBJCOPY} -O binary -j .data $@@2 $@@2.bin
	cmp $@@1.bin $@@2.bin	# should be same
	${OBJCOPY} -O binary -j .text $@@1 $@@2.bin
	test ! -s $@@2.bin	# text section must be empty
	./iplsum $@@1.bin $@@

iplsum: iplsum.c
	${HOST_CC} -o $@@ ${.CURDIR}/iplsum.c

CLEANFILES+=	${PROG}1 ${PROG}2 ${PROG}1.bin ${PROG}2.bin ${PROG}.bin iplsum
CLEANFILES+=	${SRCS:M*.c:S/.c$/.o.s/}

.include <bsd.prog.mk>

# override default rules

# Place code to data section.
.s.o:
	sed -e 's/\.code/.data/' \
	-e 's/\.bss/.section .bss,"aw",@@nobits/' \
	-e 's/\.allow$$/.level	1.0/' -e 's/\.allow/.level/' \
	 $< | ${AS} -o $@@

# Place code to data section, and make sure all address calculations
# are relative to $global$.
.c.o:
	${CC} ${CFLAGS} ${CPPFLAGS} -o $@@.s -S $<
	@@grep -i 'ldil' $@@.s | egrep -v "ldil L'-?[0-9]*," || exit 0; \
		echo 'found non-relocatable code' >&2; exit 1
	sed -e 's/\.text/.data/' $@@.s | ${AS} -o $@@
@


1.1.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.2 2004/08/12 11:41:04 skrll Exp $
d11 3
d16 1
a16 2
CPPFLAGS+=	-Dconst=
COPTS+=	-fwritable-strings -funsigned-char
@


1.1.2.4
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.3 2004/09/18 14:34:32 skrll Exp $
@


1.1.2.5
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.4 2004/09/21 13:15:40 skrll Exp $
@


1.1.2.6
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.5 2004/11/14 08:15:06 skrll Exp $
d4 1
a4 1
SRCS=	start.S main.c readufs.c readufs_ffs.c readufs_lfs.c milli_tiny.S
d44 1
a44 1
CLEANFILES+=	${SRCS:M*.c:S/.c$/.o.S/}
d51 1
a51 1
.S.o:
d55 1
a55 1
	 ${.IMPSRC} | ${AS} -o ${.TARGET}
d60 2
a61 2
	${CC} ${CFLAGS} ${CPPFLAGS} -o $@@.S -S ${.IMPSRC}
	@@grep -i 'ldil' $@@.S | egrep -v "ldil L'-?[0-9]*," || exit 0; \
d63 1
a63 1
	sed -e 's/\.text/.data/' $@@.S | ${AS} -o ${.TARGET}
@


1.1.2.7
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.6 2004/12/18 09:31:02 skrll Exp $
d29 1
a29 1
${PROG}: iplsum ${OBJS}
d61 2
a62 4
	grep -i 'ldil' $@@.S | egrep -v "ldil L'-?[0-9]*," > /dev/null 2>&1; \
		if [ $$? = 0 ]; then \
			echo 'found non-relocatable code' >&2 && exit 1; \
		fi
@
