head	1.66;
access;
symbols
	perseant-exfatfs-base-20250801:1.66
	perseant-exfatfs-base-20240630:1.66
	perseant-exfatfs:1.66.0.134
	perseant-exfatfs-base:1.66
	bouyer-sunxi-drm:1.66.0.132
	bouyer-sunxi-drm-base:1.66
	cjep_sun2x:1.66.0.130
	cjep_sun2x-base:1.66
	cjep_staticlib_x-base1:1.66
	cjep_staticlib_x:1.66.0.128
	cjep_staticlib_x-base:1.66
	thorpej-futex-base:1.66
	bouyer-xenpvh-base2:1.66
	phil-wifi-20200421:1.66
	bouyer-xenpvh-base1:1.66
	phil-wifi-20200411:1.66
	bouyer-xenpvh:1.66.0.126
	bouyer-xenpvh-base:1.66
	phil-wifi-20200406:1.66
	ad-namecache-base3:1.66
	ad-namecache-base2:1.66
	ad-namecache-base1:1.66
	ad-namecache:1.66.0.124
	ad-namecache-base:1.66
	isaki-audio2:1.66.0.122
	isaki-audio2-base:1.66
	pgoyette-compat-merge-20190127:1.66
	pgoyette-compat-20190127:1.66
	pgoyette-compat-20190118:1.66
	pgoyette-compat-1226:1.66
	pgoyette-compat-1126:1.66
	pgoyette-compat-1020:1.66
	pgoyette-compat-0930:1.66
	pgoyette-compat-0906:1.66
	pgoyette-compat-0728:1.66
	pgoyette-compat-0625:1.66
	pgoyette-compat-0521:1.66
	pgoyette-compat-0502:1.66
	pgoyette-compat-0422:1.66
	pgoyette-compat-0415:1.66
	pgoyette-compat-0407:1.66
	pgoyette-compat-0330:1.66
	pgoyette-compat-0322:1.66
	pgoyette-compat-0315:1.66
	pgoyette-compat:1.66.0.2
	pgoyette-compat-base:1.66
	perseant-stdc-iso10646:1.66.0.120
	perseant-stdc-iso10646-base:1.66
	prg-localcount2-base3:1.66
	prg-localcount2-base2:1.66
	prg-localcount2-base1:1.66
	prg-localcount2:1.66.0.118
	prg-localcount2-base:1.66
	pgoyette-localcount-20170426:1.66
	bouyer-socketcan-base1:1.66
	pgoyette-localcount-20170320:1.66
	bouyer-socketcan:1.66.0.116
	bouyer-socketcan-base:1.66
	pgoyette-localcount-20170107:1.66
	pgoyette-localcount-20161104:1.66
	localcount-20160914:1.66
	pgoyette-localcount-20160806:1.66
	pgoyette-localcount-20160726:1.66
	pgoyette-localcount:1.66.0.114
	pgoyette-localcount-base:1.66
	netbsd-5-2-3-RELEASE:1.66
	netbsd-5-1-5-RELEASE:1.66
	yamt-pagecache-base9:1.66
	yamt-pagecache-tag8:1.66
	tls-earlyentropy:1.66.0.112
	tls-earlyentropy-base:1.66
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.66
	riastradh-drm2-base3:1.66
	netbsd-5-2-2-RELEASE:1.66
	netbsd-5-1-4-RELEASE:1.66
	netbsd-5-2-1-RELEASE:1.66
	netbsd-5-1-3-RELEASE:1.66
	rmind-smpnet-nbase:1.66
	rmind-smpnet:1.66.0.108
	rmind-smpnet-base:1.66
	agc-symver:1.66.0.110
	agc-symver-base:1.66
	tls-maxphys-base:1.66
	yamt-pagecache-base8:1.66
	netbsd-5-2:1.66.0.106
	yamt-pagecache-base7:1.66
	netbsd-5-2-RELEASE:1.66
	netbsd-5-2-RC1:1.66
	yamt-pagecache-base6:1.66
	yamt-pagecache-base5:1.66
	yamt-pagecache-base4:1.66
	netbsd-5-1-2-RELEASE:1.66
	netbsd-5-1-1-RELEASE:1.66
	jmcneill-usbmp:1.66.0.104
	jmcneill-usbmp-base:1.66
	jmcneill-audiomp3:1.66.0.102
	jmcneill-audiomp3-base:1.66
	yamt-pagecache-base3:1.66
	yamt-pagecache-base2:1.66
	yamt-pagecache:1.66.0.100
	yamt-pagecache-base:1.66
	rmind-uvmplock-nbase:1.66
	jym-xensuspend-nbase:1.66
	bouyer-quota2-nbase:1.66
	bouyer-quota2:1.66.0.98
	bouyer-quota2-base:1.66
	jruoho-x86intr:1.66.0.96
	jruoho-x86intr-base:1.66
	matt-nb5-pq3:1.66.0.94
	matt-nb5-pq3-base:1.66
	netbsd-5-1:1.66.0.92
	netbsd-5-1-RELEASE:1.66
	yamt-nfs-mp-base11:1.66
	netbsd-5-1-RC4:1.66
	uebayasi-xip-base2:1.66
	yamt-nfs-mp-base10:1.66
	netbsd-5-1-RC3:1.66
	netbsd-5-1-RC2:1.66
	netbsd-5-1-RC1:1.66
	rmind-uvmplock:1.66.0.90
	rmind-uvmplock-base:1.66
	yamt-nfs-mp-base9:1.66
	uebayasi-xip:1.66.0.88
	uebayasi-xip-base:1.66
	netbsd-5-0-2-RELEASE:1.66
	yamt-nfs-mp-base8:1.66
	yamt-nfs-mp-base7:1.66
	netbsd-5-0-1-RELEASE:1.66
	jymxensuspend-base:1.66
	yamt-nfs-mp-base6:1.66
	yamt-nfs-mp-base5:1.66
	yamt-nfs-mp-base4:1.66
	yamt-nfs-mp-base3:1.66
	netbsd-5-0:1.66.0.86
	netbsd-5-0-RELEASE:1.66
	netbsd-5-0-RC4:1.66
	netbsd-5-0-RC3:1.66
	netbsd-5-0-RC2:1.66
	jym-xensuspend:1.66.0.84
	jym-xensuspend-base:1.66
	netbsd-5-0-RC1:1.66
	haad-dm-base2:1.66
	haad-nbase2:1.66
	ad-audiomp2:1.66.0.82
	ad-audiomp2-base:1.66
	netbsd-5:1.66.0.80
	netbsd-5-base:1.66
	haad-dm-base1:1.66
	haad-dm:1.66.0.78
	haad-dm-base:1.66
	simonb-wapbl-nbase:1.66
	yamt-pf42-base4:1.66
	simonb-wapbl:1.66.0.76
	simonb-wapbl-base:1.66
	yamt-pf42-base3:1.66
	hpcarm-cleanup-nbase:1.66
	yamt-pf42-base2:1.66
	yamt-nfs-mp-base2:1.66
	yamt-nfs-mp:1.66.0.74
	yamt-nfs-mp-base:1.66
	yamt-pf42:1.66.0.72
	yamt-pf42-base:1.66
	ad-socklock-base1:1.66
	yamt-lazymbuf-base15:1.66
	yamt-lazymbuf-base14:1.66
	keiichi-mipv6-nbase:1.66
	mjf-devfs2:1.66.0.70
	mjf-devfs2-base:1.66
	keiichi-mipv6:1.66.0.68
	keiichi-mipv6-base:1.66
	bouyer-xeni386-merge1:1.66
	vmlocking2-base3:1.66
	bouyer-xeni386-nbase:1.66
	yamt-kmem-base3:1.66
	cube-autoconf:1.66.0.66
	cube-autoconf-base:1.66
	yamt-kmem-base2:1.66
	bouyer-xeni386:1.66.0.64
	bouyer-xeni386-base:1.66
	yamt-kmem:1.66.0.62
	yamt-kmem-base:1.66
	vmlocking2-base2:1.66
	reinoud-bufcleanup-nbase:1.66
	vmlocking2:1.66.0.60
	vmlocking2-base1:1.66
	jmcneill-base:1.66
	mjf-devfs:1.66.0.58
	mjf-devfs-base:1.66
	bouyer-xenamd64-base2:1.66
	vmlocking-nbase:1.66
	yamt-x86pmap-base4:1.66
	bouyer-xenamd64:1.66.0.56
	bouyer-xenamd64-base:1.66
	yamt-x86pmap-base3:1.66
	yamt-x86pmap-base2:1.66
	yamt-x86pmap:1.66.0.54
	yamt-x86pmap-base:1.66
	jmcneill-pm:1.66.0.52
	jmcneill-pm-base:1.66
	hpcarm-cleanup:1.66.0.50
	hpcarm-cleanup-base:1.66
	mjf-ufs-trans-base:1.66
	yamt-idlelwp-base8:1.66
	ppcoea-renovation:1.66.0.48
	ppcoea-renovation-base:1.66
	reinoud-bufcleanup-base:1.66
	vmlocking:1.66.0.46
	vmlocking-base:1.66
	ad-audiomp:1.66.0.44
	ad-audiomp-base:1.66
	yamt-idlelwp:1.66.0.42
	post-newlock2-merge:1.66
	newlock2-nbase:1.66
	yamt-splraiseipl-base5:1.66
	yamt-splraiseipl-base4:1.66
	yamt-splraiseipl-base3:1.66
	yamt-splraiseipl-base2:1.66
	yamt-splraiseipl:1.66.0.40
	yamt-splraiseipl-base:1.66
	newlock2:1.66.0.38
	newlock2-base:1.66
	yamt-pdpolicy-base8:1.66
	yamt-pdpolicy-base7:1.66
	yamt-pdpolicy-base6:1.66
	gdamore-uart:1.66.0.36
	gdamore-uart-base:1.66
	simonb-timcounters-final:1.66
	yamt-pdpolicy-base5:1.66
	elad-kernelauth-nbase:1.66
	yamt-pdpolicy-base4:1.66
	yamt-pdpolicy-base3:1.66
	yamt-pdpolicy-base2:1.66
	yamt-pdpolicy:1.66.0.34
	yamt-pdpolicy-base:1.66
	yamt-uio_vmspace-base5:1.66
	simonb-timecounters:1.66.0.32
	simonb-timecounters-base:1.66
	rpaulo-netinet-merge-pcb:1.66.0.30
	rpaulo-netinet-merge-pcb-base:1.66
	yamt-uio_vmspace:1.66.0.28
	yamt-readahead-base3:1.66
	yamt-readahead-base2:1.66
	yamt-readahead:1.66.0.26
	yamt-readahead-base:1.66
	yamt-vop-base3:1.66
	yamt-vop-base2:1.66
	thorpej-vnode-attr:1.66.0.24
	thorpej-vnode-attr-base:1.66
	yamt-vop:1.66.0.22
	yamt-vop-base:1.66
	yamt-lazymbuf:1.66.0.20
	yamt-km-base4:1.66
	yamt-km-base3:1.66
	yamt-km-base2:1.66
	yamt-km:1.66.0.18
	yamt-km-base:1.66
	kent-audio2:1.66.0.16
	kent-audio2-base:1.66
	ktrace-lwp:1.66.0.14
	ktrace-lwp-base:1.66
	nathanw_sa_end:1.60.2.3
	nathanw_sa_before_merge:1.66
	gmcgarry_ctxsw:1.66.0.12
	gmcgarry_ctxsw_base:1.66
	gmcgarry_ucred:1.66.0.10
	gmcgarry_ucred_base:1.66
	nathanw_sa_base:1.66
	gehenna-devsw:1.66.0.8
	gehenna-devsw-base:1.66
	netbsd-1-5-PATCH003:1.53
	eeh-devprop:1.66.0.6
	eeh-devprop-base:1.66
	newlock:1.66.0.4
	newlock-base:1.66
	ifpoll-base:1.66
	nathanw_sa:1.60.0.2
	thorpej-mips-cache:1.59.0.2
	thorpej-mips-cache-base:1.60
	thorpej-devvp-base3:1.57
	thorpej-devvp-base2:1.57
	post-chs-ubcperf:1.57
	pre-chs-ubcperf:1.57
	thorpej-devvp:1.57.0.2
	thorpej-devvp-base:1.57
	netbsd-1-5-PATCH002:1.53
	kqueue:1.56.0.2
	kqueue-base:1.66
	netbsd-1-5-PATCH001:1.53
	thorpej_scsipi_beforemerge:1.55
	thorpej_scsipi_nbase:1.55
	netbsd-1-5-RELEASE:1.53
	netbsd-1-5-BETA2:1.53
	netbsd-1-5-BETA:1.53
	netbsd-1-4-PATCH003:1.45
	netbsd-1-5-ALPHA2:1.53
	netbsd-1-5:1.53.0.4
	netbsd-1-5-base:1.53
	minoura-xpg4dl:1.53.0.2
	minoura-xpg4dl-base:1.53
	netbsd-1-4-PATCH002:1.45
	chs-ubc2-newbase:1.51
	wrstuden-devbsize-19991221:1.47
	wrstuden-devbsize:1.47.0.8
	wrstuden-devbsize-base:1.47
	kame_141_19991130:1.45
	comdex-fall-1999:1.47.0.6
	comdex-fall-1999-base:1.47
	fvdl-softdep:1.47.0.4
	fvdl-softdep-base:1.47
	thorpej_scsipi:1.47.0.2
	thorpej_scsipi_base:1.55
	netbsd-1-4-PATCH001:1.45
	kame_14_19990705:1.45
	kame_14_19990628:1.45
	kame:1.45.0.6
	chs-ubc2:1.45.0.4
	chs-ubc2-base:1.47
	netbsd-1-4-RELEASE:1.45
	netbsd-1-4:1.45.0.2
	netbsd-1-4-base:1.45
	netbsd-1-3-PATCH003:1.28.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.28.2.1
	kenh-if-detach:1.40.0.4
	kenh-if-detach-base:1.40
	netbsd-1-3-PATCH003-CANDIDATE1:1.28.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.28.2.1
	chs-ubc:1.40.0.2
	chs-ubc-base:1.40
	eeh-paddr_t:1.34.0.2
	eeh-paddr_t-base:1.34
	netbsd-1-3-PATCH002:1.28.2.1
	netbsd-1-3-PATCH001:1.28.2.1
	netbsd-1-3-RELEASE:1.28.2.1
	netbsd-1-3-BETA:1.28.2.1
	netbsd-1-3:1.28.0.2
	netbsd-1-3-base:1.28
	thorpej-signal:1.25.0.10
	thorpej-signal-base:1.25
	marc-pcmcia:1.25.0.8
	marc-pcmcia-bp:1.25
	marc-pcmcia-base:1.27
	bouyer-scsipi:1.25.0.6
	is-newarp-before-merge:1.25
	is-newarp:1.25.0.4
	is-newarp-base:1.25
	netbsd-1-2-PATCH001:1.12
	mrg-vm-swap:1.25.0.2
	thorpej-setroot:1.21.0.2
	netbsd-1-2-RELEASE:1.12
	netbsd-1-2-BETA:1.12
	netbsd-1-2:1.12.0.2
	netbsd-1-2-base:1.12;
locks; strict;
comment	@# @;


1.66
date	2002.02.06.19.59.41;	author thorpej;	state dead;
branches;
next	1.65;

1.65
date	2001.12.19.17.43.19;	author thorpej;	state Exp;
branches;
next	1.64;

1.64
date	2001.12.09.05.00.42;	author atatat;	state Exp;
branches;
next	1.63;

1.63
date	2001.11.27.00.16.00;	author thorpej;	state Exp;
branches;
next	1.62;

1.62
date	2001.11.26.23.52.34;	author thorpej;	state Exp;
branches;
next	1.61;

1.61
date	2001.11.20.12.56.22;	author lukem;	state Exp;
branches;
next	1.60;

1.60
date	2001.10.26.06.45.35;	author jmc;	state Exp;
branches
	1.60.2.1;
next	1.59;

1.59
date	2001.10.23.19.26.43;	author thorpej;	state Exp;
branches
	1.59.2.1;
next	1.58;

1.58
date	2001.10.23.17.32.36;	author thorpej;	state Exp;
branches;
next	1.57;

1.57
date	2001.07.28.15.50.40;	author chris;	state Exp;
branches;
next	1.56;

1.56
date	2001.05.29.02.20.21;	author mrg;	state Exp;
branches
	1.56.2.1;
next	1.55;

1.55
date	2001.02.19.13.26.17;	author bjh21;	state Exp;
branches
	1.55.2.1;
next	1.54;

1.54
date	2000.12.17.15.52.40;	author jdolecek;	state Exp;
branches;
next	1.53;

1.53
date	2000.05.09.00.56.22;	author hubertf;	state Exp;
branches;
next	1.52;

1.52
date	2000.05.09.00.32.21;	author thorpej;	state Exp;
branches;
next	1.51;

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

1.50
date	2000.01.24.20.36.11;	author tron;	state Exp;
branches;
next	1.49;

1.49
date	2000.01.19.16.29.55;	author tsutsui;	state Exp;
branches;
next	1.48;

1.48
date	2000.01.19.14.45.00;	author tsutsui;	state Exp;
branches;
next	1.47;

1.47
date	99.07.26.05.20.45;	author cgd;	state Exp;
branches
	1.47.2.1;
next	1.46;

1.46
date	99.07.09.09.52.56;	author mrg;	state Exp;
branches;
next	1.45;

1.45
date	99.01.29.22.20.49;	author tron;	state Exp;
branches
	1.45.4.1;
next	1.44;

1.44
date	99.01.23.22.18.42;	author sommerfe;	state Exp;
branches;
next	1.43;

1.43
date	99.01.15.23.37.05;	author thorpej;	state Exp;
branches;
next	1.42;

1.42
date	99.01.08.19.26.12;	author augustss;	state Exp;
branches;
next	1.41;

1.41
date	99.01.01.10.28.16;	author mark;	state Exp;
branches;
next	1.40;

1.40
date	98.10.15.18.37.13;	author drochner;	state Exp;
branches;
next	1.39;

1.39
date	98.09.06.02.41.19;	author mark;	state Exp;
branches;
next	1.38;

1.38
date	98.09.05.15.15.14;	author lukem;	state Exp;
branches;
next	1.37;

1.37
date	98.09.05.01.16.17;	author mark;	state Exp;
branches;
next	1.36;

1.36
date	98.09.01.01.48.21;	author mrg;	state Exp;
branches;
next	1.35;

1.35
date	98.08.31.06.52.18;	author mrg;	state Exp;
branches;
next	1.34;

1.34
date	98.07.06.02.43.38;	author mark;	state Exp;
branches;
next	1.33;

1.33
date	98.05.31.23.25.41;	author thorpej;	state Exp;
branches;
next	1.32;

1.32
date	98.04.12.23.47.42;	author tv;	state Exp;
branches;
next	1.31;

1.31
date	98.02.21.23.30.56;	author mark;	state Exp;
branches;
next	1.30;

1.30
date	97.11.12.23.11.58;	author thorpej;	state Exp;
branches;
next	1.29;

1.29
date	97.11.12.22.25.42;	author thorpej;	state Exp;
branches;
next	1.28;

1.28
date	97.10.18.04.20.17;	author mark;	state Exp;
branches
	1.28.2.1;
next	1.27;

1.27
date	97.10.03.07.17.34;	author lukem;	state Exp;
branches;
next	1.26;

1.26
date	97.09.30.22.47.55;	author christos;	state Exp;
branches;
next	1.25;

1.25
date	97.02.04.06.19.08;	author mark;	state Exp;
branches
	1.25.8.1;
next	1.24;

1.24
date	97.02.04.05.08.30;	author perry;	state Exp;
branches;
next	1.23;

1.23
date	97.02.04.04.31.58;	author perry;	state Exp;
branches;
next	1.22;

1.22
date	97.01.26.02.36.02;	author mark;	state Exp;
branches;
next	1.21;

1.21
date	97.01.13.00.51.42;	author mark;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	96.12.01.06.12.28;	author jonathan;	state Exp;
branches;
next	1.19;

1.19
date	96.10.15.00.35.48;	author mark;	state Exp;
branches;
next	1.18;

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

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

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

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

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

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

1.12
date	96.05.20.14.37.24;	author mark;	state Exp;
branches;
next	1.11;

1.11
date	96.05.11.16.11.50;	author mycroft;	state Exp;
branches;
next	1.10;

1.10
date	96.02.29.20.55.24;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	96.02.26.02.53.27;	author mycroft;	state Exp;
branches;
next	1.8;

1.8
date	96.02.13.23.29.14;	author mark;	state Exp;
branches;
next	1.7;

1.7
date	96.02.09.02.21.19;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	96.02.05.23.49.49;	author mark;	state Exp;
branches;
next	1.5;

1.5
date	96.02.03.00.43.56;	author mycroft;	state Exp;
branches;
next	1.4;

1.4
date	96.02.02.20.08.48;	author mycroft;	state Exp;
branches;
next	1.3;

1.3
date	96.02.02.02.35.59;	author mycroft;	state Exp;
branches;
next	1.2;

1.2
date	96.02.01.22.29.30;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	96.01.31.23.19.12;	author mark;	state Exp;
branches;
next	;

1.60.2.1
date	2001.10.26.06.45.35;	author nathanw;	state dead;
branches;
next	1.60.2.2;

1.60.2.2
date	2002.01.08.00.23.25;	author nathanw;	state Exp;
branches;
next	1.60.2.3;

1.60.2.3
date	2002.02.28.04.07.51;	author nathanw;	state dead;
branches;
next	;

1.59.2.1
date	2001.11.12.21.16.39;	author thorpej;	state Exp;
branches;
next	;

1.56.2.1
date	2001.08.03.04.11.09;	author lukem;	state Exp;
branches;
next	1.56.2.2;

1.56.2.2
date	2002.01.10.19.38.40;	author thorpej;	state Exp;
branches;
next	1.56.2.3;

1.56.2.3
date	2002.02.11.20.07.24;	author jdolecek;	state dead;
branches;
next	;

1.55.2.1
date	2001.06.21.19.19.23;	author nathanw;	state Exp;
branches;
next	;

1.47.2.1
date	2000.11.20.20.03.54;	author bouyer;	state Exp;
branches;
next	1.47.2.2;

1.47.2.2
date	2001.01.05.17.34.05;	author bouyer;	state Exp;
branches;
next	1.47.2.3;

1.47.2.3
date	2001.03.12.13.27.37;	author bouyer;	state Exp;
branches;
next	;

1.45.4.1
date	99.08.02.19.38.50;	author thorpej;	state Exp;
branches;
next	;

1.28.2.1
date	97.11.12.23.45.25;	author thorpej;	state Exp;
branches;
next	;

1.25.8.1
date	97.10.14.08.42.19;	author thorpej;	state Exp;
branches;
next	;

1.21.2.1
date	97.01.30.05.26.59;	author thorpej;	state Exp;
branches;
next	;


desc
@@


1.66
log
@Use arm/conf/Makefile.arm, and add support for building ELF kernels
and converting them to a.out.
@
text
@#	$NetBSD: Makefile.arm32,v 1.65 2001/12/19 17:43:19 thorpej 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/arm32/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/arm32/conf/Makefile.arm32
# 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_*"

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

##
## (1) port identification
##
ARM32=		$S/arch/arm32
ARM=		$S/arch/arm
GENASSYM=	${ARM}/arm32/genassym.cf
GENASSYM_EXTRAS+=	${ARM32}/arm32/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Darm32
CWARNFLAGS+=	-Wcomment
LOOSE_PROTOTYPES= yes
AFLAGS+=	-x assembler-with-cpp

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

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_CFILES=
MD_SFILES=	${ARM}/arm32/locore.S

locore.o: ${ARM}/arm32/locore.S assym.h
	${NORMAL_S}

.ifdef MONITOR
MD_OBJS+=	modedefs.o
MD_CFILES+=	modedefs.c

modedefs.c: ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} Makefile
	awk -f ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c

modedefs.o: modedefs.c
	${NORMAL_C}
.endif

##
## (5) link settings
##
LOADADDRESS?=	0xF0000000
LINKFLAGS_NORMAL=	-x

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

# depend on CPU configuration
cpufunc.o cpufunc_asm.o: Makefile

# depend on DIAGNOSTIC etc.
cpuswitch.o fault.o machdep.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.65
log
@Remove the MACHINE_ARCH assignment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.64 2001/12/09 05:00:42 atatat Exp $
@


1.64
log
@Roll the rest of the ports over to the new MI kernel build machinery.
Any problems reported by testers have been fixed, and massive
cross-compiling of kernels has shown that any problems that remain
with actually building kernels are not related to this.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.63 2001/11/27 00:16:00 thorpej Exp $
a19 1
MACHINE_ARCH=arm32
@


1.63
log
@Move interrupt-related stuff out of the generic 32-bit ARM genassym.cf
and into platform-specific genassym.cf files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.62 2001/11/26 23:52:34 thorpej Exp $
d14 5
d22 1
a22 1

d25 6
a30 42
# 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
ARM32=	$S/arch/arm32
ARM=	$S/arch/arm

HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
INCLUDES=	-I. -I$S/arch -I$S -nostdinc
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT -Darm32
CWARNFLAGS?=	-Werror -Wall -Wcomment -Wpointer-arith
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right.  --thorpej
CWARNFLAGS+=	-Wno-uninitialized
.if (${HAVE_EGCS} != "")
CWARNFLAGS+=	-Wno-main
.endif
CFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS=		-x assembler-with-cpp -D_LOCORE

LOADADDRESS=	0xF0000000
LINKFLAGS=	-Ttext ${LOADADDRESS} -e start
STRIPFLAGS=	-g

d33 11
a43 7
%INCLUDES

HOSTED_CC=	${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS=	${CFLAGS}

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

### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT=	${COMPATLIB}
.else
LIBCOMPAT=	${COMPATLIB_PROF}
.endif
d46 6
a51 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).
d53 2
a54 11
NORMAL_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NOPROF_C=	${CC} ${CFLAGS} ${CPPFLAGS} -c $<
NORMAL_S=	${CC} ${AFLAGS} ${CPPFLAGS} -c $<

HOSTED_C=	${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<

%OBJS

%CFILES

%SFILES
a55 5
# load lines for config "xxx" will be emitted as:
# xxx: ${SYSTEM_DEP} swapxxx.o
#	${SYSTEM_LD_HEAD}
#	${SYSTEM_LD} swapxxx.o
#	${SYSTEM_LD_TAIL}
d57 2
a58 23
SYSTEM_OBJ=	locore.o modedefs.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
.else
SYSTEM_OBJ=	locore.o \
		param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
.endif
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
LINKFLAGS+=	-x
.endif
d60 2
a61 1
%LOAD
d63 1
a63 11
assym.h: $S/kern/genassym.sh ${ARM}/arm32/genassym.cf
	cat ${ARM}/arm32/genassym.cf ${GENASSYM_EXTRAS} | \
	    sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    > 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
a64 52

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 modedefs.c

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir distclean: __CLEANKERNEL __CLEANDEPEND

lint:
	@@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
	    ${ARM}/arm32/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=	${ARM}/arm32/locore.S param.c ioconf.c ${CFILES} ${SFILES}
.ifdef MONITOR
SRCS+=	modedefs.c
.endif
depend: .depend
.depend: ${SRCS} assym.h param.c
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ARM}/arm32/locore.S
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	test -z "${SFILES}" || ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
	    ${CPPFLAGS} < ${ARM}/arm32/genassym.cf
	@@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
	@@rm -f assym.dep
.ifdef MONITOR
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} modedefs.c
d67 9
a75 11
dependall: depend all


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

# depend on network
uipc_proto.o: Makefile

# depend on maxusers
assym.h: Makefile
d83 8
d92 1
a92 2
locore.o: ${ARM}/arm32/locore.S assym.h
	${NORMAL_S}
d94 1
a94 2
modedefs.c: ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} Makefile
	awk -f ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
d96 1
a96 2
modedefs.o: modedefs.c
	${NORMAL_C}
d98 1
a98 11
# 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
d101 5
@


1.62
log
@Allow port-specific Makefile fragments to specify a list of additional
genassym.cf fragments, if desired.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.61 2001/11/20 12:56:22 lukem Exp $
d61 2
@


1.61
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.arm32,v 1.60 2001/10/26 06:45:35 jmc Exp $
d133 3
a135 2
	sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
	    < ${ARM}/arm32/genassym.cf > assym.h.tmp && \
@


1.60
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.arm32,v 1.59 2001/10/23 19:26:43 thorpej Exp $
d45 1
a45 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
d50 1
a50 1
# XXX always get it right.  --thorpej 
d202 1
a202 1
 
d204 1
a204 1
uipc_proto.o: Makefile 
d209 1
a209 1
# depend on CPU configuration 
@


1.60.2.1
log
@file Makefile.arm32 was added on branch nathanw_sa on 2002-01-08 00:23:25 +0000
@
text
@d1 237
@


1.60.2.2
log
@Catch up to -current.
@
text
@a0 104
#	$NetBSD: Makefile.arm32,v 1.60.2.1 2002/01/08 00:23:25 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/arm32/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/arm32/conf/Makefile.arm32
# 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_*"

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

##
## (1) port identification
##
ARM32=		$S/arch/arm32
ARM=		$S/arch/arm
GENASSYM=	${ARM}/arm32/genassym.cf
GENASSYM_EXTRAS+=	${ARM32}/arm32/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Darm32
CWARNFLAGS+=	-Wcomment
LOOSE_PROTOTYPES= yes
AFLAGS+=	-x assembler-with-cpp

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

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_CFILES=
MD_SFILES=	${ARM}/arm32/locore.S

locore.o: ${ARM}/arm32/locore.S assym.h
	${NORMAL_S}

.ifdef MONITOR
MD_OBJS+=	modedefs.o
MD_CFILES+=	modedefs.c

modedefs.c: ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} Makefile
	awk -f ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c

modedefs.o: modedefs.c
	${NORMAL_C}
.endif

##
## (5) link settings
##
LOADADDRESS?=	0xF0000000
LINKFLAGS_NORMAL=	-x

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

# depend on CPU configuration
cpufunc.o cpufunc_asm.o: Makefile

# depend on DIAGNOSTIC etc.
cpuswitch.o fault.o machdep.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.60.2.3
log
@Catch up to -current.
@
text
@d1 104
@


1.59
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.arm32,v 1.58 2001/10/23 17:32:36 thorpej Exp $
d16 1
@


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


1.58
log
@Pull in <bsd.own.mk> to get the correct toolchain definitions for
the USE_NEW_TOOLCHAIN case.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.57 2001/07/28 15:50:40 chris Exp $
d14 2
@


1.57
log
@Update Makefile.arm32 for the newly moved locore.S and genassym.cf
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.56 2001/05/29 02:20:21 mrg Exp $
d14 2
@


1.56
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.arm32,v 1.55 2001/02/19 13:26:17 bjh21 Exp $
d38 1
d127 1
a127 1
assym.h: $S/kern/genassym.sh ${ARM32}/arm32/genassym.cf
d129 1
a129 1
	    < ${ARM32}/arm32/genassym.cf > assym.h.tmp && \
d160 1
a160 1
	    ${ARM32}/arm32/Locore.c ${CFILES}  \
d175 1
a175 1
SRCS=	${ARM32}/arm32/locore.S param.c ioconf.c ${CFILES} ${SFILES}
d181 1
a181 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ARM32}/arm32/locore.S
d185 1
a185 1
	    ${CPPFLAGS} < ${ARM32}/arm32/genassym.cf
d211 1
a211 1
locore.o: ${ARM32}/arm32/locore.S assym.h
@


1.56.2.1
log
@update to -current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.57 2001/07/28 15:50:40 chris Exp $
a37 1
ARM=	$S/arch/arm
d126 1
a126 1
assym.h: $S/kern/genassym.sh ${ARM}/arm32/genassym.cf
d128 1
a128 1
	    < ${ARM}/arm32/genassym.cf > assym.h.tmp && \
d159 1
a159 1
	    ${ARM}/arm32/Locore.c ${CFILES}  \
d174 1
a174 1
SRCS=	${ARM}/arm32/locore.S param.c ioconf.c ${CFILES} ${SFILES}
d180 1
a180 1
	${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ARM}/arm32/locore.S
d184 1
a184 1
	    ${CPPFLAGS} < ${ARM}/arm32/genassym.cf
d210 1
a210 1
locore.o: ${ARM}/arm32/locore.S assym.h
@


1.56.2.2
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.56.2.1 2001/08/03 04:11:09 lukem 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 49
a63 23
USETOOLS?=	no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
ARM32=		$S/arch/arm32
ARM=		$S/arch/arm
GENASSYM=	${ARM}/arm32/genassym.cf
GENASSYM_EXTRAS+=	${ARM32}/arm32/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Darm32
CWARNFLAGS+=	-Wcomment
LOOSE_PROTOTYPES= yes
AFLAGS+=	-x assembler-with-cpp

##
## (3) libkern and compat
##
d65 14
d80 2
a81 6
##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_CFILES=
MD_SFILES=	${ARM}/arm32/locore.S
d83 11
a93 2
locore.o: ${ARM}/arm32/locore.S assym.h
	${NORMAL_S}
d95 5
d101 25
a125 2
MD_OBJS+=	modedefs.o
MD_CFILES+=	modedefs.c
d127 11
a137 2
modedefs.c: ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} Makefile
	awk -f ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
d139 1
a139 1
modedefs.o: modedefs.c
d141 49
d192 11
a202 9
##
## (5) link settings
##
LOADADDRESS?=	0xF0000000
LINKFLAGS_NORMAL=	-x

##
## (6) port specific target dependencies
##
d204 1
a204 1
# depend on CPU configuration
a209 8
##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES
d211 2
a212 1
%OBJS
d214 2
a215 1
%CFILES
d217 2
a218 1
%SFILES
d220 11
a230 1
%LOAD
a232 5

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


1.56.2.3
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.56.2.2 2002/01/10 19:38:40 thorpej Exp $
@


1.55
log
@Make the kenrel base address a variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.54 2000/12/17 15:52:40 jdolecek Exp $
d41 1
a41 1
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darm32
@


1.55.2.1
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.55 2001/02/19 13:26:17 bjh21 Exp $
d41 1
a41 1
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT -Darm32
@


1.54
log
@delete obsolete comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.53 2000/05/09 00:56:22 hubertf Exp $
d51 3
a53 1
LINKFLAGS=	-Ttext F0000000 -e start
@


1.53
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.arm32,v 1.52 2000/05/09 00:32:21 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.52
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.arm32,v 1.51 2000/02/01 05:25:27 tsutsui Exp $
d222 12
@


1.51
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.50 2000/01/24 20:36:11 tron Exp $
d45 1
a45 1
HAVE_GCC28!=	${CC} --version | egrep "^(2\.8|egcs)" ; echo 
d49 4
a52 1
.if (${HAVE_GCC28} != "")
@


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


1.49
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.48 2000/01/19 14:45:00 tsutsui Exp $
d191 3
@


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


1.47
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.arm32,v 1.46 1999/07/09 09:52:56 mrg Exp $
d55 1
a55 1
STRIPFLAGS=	-d
@


1.47.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.arm32,v 1.53 2000/05/09 00:56:22 hubertf Exp $
d45 1
a45 1
HAVE_EGCS!=	${CC} --version | egrep "^(2\.[89]|egcs)" ; echo 
d49 1
a49 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
STRIPFLAGS=	-g
a191 3
dependall: depend all


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


1.47.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.47.2.2 2001/01/05 17:34:05 bouyer Exp $
d51 1
a51 3

LOADADDRESS=	0xF0000000
LINKFLAGS=	-Ttext ${LOADADDRESS} -e start
@


1.46
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.arm32,v 1.45 1999/01/29 22:20:49 tron Exp $
d117 3
a119 2
		echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@@; ${STRIP} ${STRIPFLAGS} $@@
@


1.45
log
@Fix bug exposed by new "mkdep" program:
"${SFILES}" is empty for a "SHARK" kernel so that "cc" will fail with
"No input files" during "mkdep".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.44 1999/01/23 22:18:42 sommerfe Exp $
d56 2
@


1.45.4.1
log
@Update from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.47 1999/07/26 05:20:45 cgd Exp $
a56 2
%INCLUDES

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


1.44
log
@Finish the rest of the pms->opms rename for non-wscons PS/2 mice.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.43 1999/01/15 23:37:05 thorpej Exp $
d180 1
a180 1
	${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
@


1.43
log
@Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.42 1999/01/08 19:26:12 augustss Exp $
d146 1
a146 1
	    [Ee]rrs linterrs makelinks assym.h.tmp assym.h
@


1.42
log
@Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.41 1999/01/01 10:28:16 mark Exp $
d47 2
a48 3
CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
		-Darm32 -Wcomment
CWARNFLAGS?=	-Werror -Wall -Wpointer-arith
@


1.41
log
@Use makemodes.awk to parse the MDF files rather than building a custom
binary from makemodes.c. This makes cross compiling simpler.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.40 1998/10/15 18:37:13 drochner Exp $
d49 1
a49 1
CWARNFLAGS?=	-Werror -Wall
@


1.40
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.arm32,v 1.39 1998/09/06 02:41:19 mark Exp $
a187 1
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} ${ARM32}/vidc/makemodes.c
d209 2
a210 2
modedefs.c: makemodes ${ARM32}/conf/monitors/${MONITOR} Makefile
	./makemodes ${ARM32}/conf/monitors/${MONITOR} modedefs.c ${MODES}
a213 6

makemodes: makemodes.o
	${CC} -o $@@ makemodes.o

makemodes.o: ${ARM32}/vidc/makemodes.c
	${HOSTED_C}
@


1.39
log
@Don't build depandancies for genassym.c as it no longer exists.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.38 1998/09/05 15:15:14 lukem Exp $
d63 1
d101 1
a101 1
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
d104 1
a104 1
		param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
@


1.38
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.37 1998/09/05 01:16:17 mark Exp $
a180 1
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} ${ARM32}/arm32/genassym.c
@


1.37
log
@Only build modedefs.c if MONITOR is defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.36 1998/09/01 01:48:21 mrg Exp $
d153 1
a153 1
cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.36
log
@generate dependancies from genassym.cf
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.35 1998/08/31 06:52:18 mrg Exp $
d98 1
d101 4
d172 1
d174 1
a174 5
SRCS=	${ARM32}/arm32/locore.S modedefs.c \
	param.c ioconf.c ${CFILES} ${SFILES}
.else
SRCS=	${ARM32}/arm32/locore.S \
	param.c ioconf.c ${CFILES} ${SFILES}
@


1.35
log
@use genassym.sh/.cf rather then the C program.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.34 1998/07/06 02:43:38 mark Exp $
d180 4
d196 1
a196 1
genassym.o: Makefile
@


1.34
log
@Cleanup explict Makefile dependancies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.33 1998/05/31 23:25:41 thorpej Exp $
d119 4
a122 8
assym.h: genassym
	./genassym >assym.h

genassym: genassym.o
	${CC} -o $@@ genassym.o

genassym.o: ${ARM32}/arm32/genassym.c
	${HOSTED_C}
@


1.33
log
@Specify a non-profiling C rule.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.32 1998/04/12 23:47:42 tv Exp $
d192 2
a193 2
# depend on network or filesystem configuration 
uipc_proto.o vfs_conf.o: Makefile 
d196 1
a196 1
genassym.o machdep.o: Makefile
d199 4
a202 1
cpufunc.o cpufunc_asm.o cpuswitch.o fault.o machdep.o: Makefile
@


1.32
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.arm32,v 1.31 1998/02/21 23:30:56 mark Exp $
d82 1
@


1.31
log
@Replace -Wreturn-type with -Wall for CWARNFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.30 1997/11/12 23:11:58 thorpej Exp $
d45 1
d49 4
a52 1
CWARNFLAGS=	-Werror -Wall
@


1.30
log
@Make sure CPP, AR, AS, and RANLIB are defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.29 1997/11/12 22:25:42 thorpej Exp $
d48 1
a48 1
CWARNFLAGS=	-Werror -Wreturn-type
@


1.29
log
@Define LORDER, NM, and TSORT here, like we do the rest of the tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.28 1997/10/18 04:20:17 mark Exp $
d24 2
d27 1
d32 1
d36 1
@


1.28
log
@Link address is 0xf0000000 now we use the NetBSD ld.
Don't build makemodes etc. for configs that don't require it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.27 1997/10/03 07:17:34 lukem Exp $
d26 1
d28 1
d31 1
@


1.28.2.1
log
@Pull up "make sure tools are defined" changes from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.30 1997/11/12 23:11:58 thorpej 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.27
log
@define SIZE?=size, and use ${SIZE} instead of size. makes cross
compilation easier
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.26 1997/09/30 22:47:55 christos Exp $
d42 2
a43 2
AFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS=	-Ttext F0000020 -e start
d158 1
d161 4
d170 2
d173 2
a174 3
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} ${ARM32}/arm32/genassym.c
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} ${ARM32}/arm32/makemodes.c

d201 1
a201 1
makemodes.o: ${ARM32}/arm32/makemodes.c
@


1.26
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.arm32,v 1.25 1997/02/04 06:19:08 mark Exp $
d27 1
d29 1
a29 1
COPTS?= 	-O2
d91 1
a91 1
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@
@


1.25
log
@Add Makefile as a dependancy cpufunc.o and cpufunc_asm.o
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.24 1997/02/04 05:08:30 perry Exp $
d128 7
d136 3
a138 4
clean: cleankernel
cleankernel:
	rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
	    [Ee]rrs linterrs makelinks genassym genassym.o assym.h
@


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

__CLEANDEPEND: .USE
	rm -f .depend

clean: __CLEANKERNEL

cleandir: __CLEANKERNEL __CLEANDEPEND
@


1.24
log
@Nuke some options GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.23 1997/02/04 04:31:58 perry Exp $
d173 1
a173 1
cpuswitch.o fault.o machdep.o: Makefile
@


1.23
log
@Nuke some GENERIC residue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.22 1997/01/26 02:36:02 mark Exp $
d136 1
a136 1
	    ${ARM32}/arm32/Locore.c ${CFILES} ${ARM32}/arm32/swapgeneric.c \
@


1.22
log
@Updated for new kernel library Makefile.inc changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.21 1997/01/13 00:51:42 mark Exp $
d135 1
a135 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
@


1.21
log
@Use -x rather than -S for the linkflags as we are not using the NetBSD
linker.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.20 1996/12/01 06:12:28 jonathan Exp $
d34 1
a34 1
ARM32=	../..
d129 2
a130 1
clean::
d153 1
a153 1
depend:: .depend
@


1.21.2.1
log
@update from trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.22 1997/01/26 02:36:02 mark Exp $
d34 1
a34 1
ARM32=	$S/arch/arm32
d129 1
a129 2
clean: cleankernel
cleankernel:
d152 1
a152 1
depend: .depend
@


1.20
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.arm32,v 1.19 1996/10/15 00:35:48 mark Exp $
d99 2
a100 1
LINKFLAGS+=	-S
@


1.19
log
@Added -Wcomment to the CPPFLAGS.
Added -Wreturn-type to the CWARNFLAGS.
Make dependancies for makemodes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.18 1996/09/09 21:06:57 mycroft Exp $
d28 1
d40 1
a40 1
CFLAGS=		${DEBUG} ${CWARNFLAGS} -O2 
@


1.18
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.arm32,v 1.17 1996/08/31 21:40:58 mycroft Exp $
d33 1
a33 1
ARM32=	$S/arch/arm32
d37 2
a38 2
		-Darm32
CWARNFLAGS=	-Werror
a152 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} modedefs.c
d155 3
a157 2
	${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
	    ${ARM32}/arm32/genassym.c
@


1.17
log
@Wrap the default definition of `S' in `.ifndef'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.16 1996/08/12 00:57:35 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} $@@
d156 2
a157 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${ARM32}/arm32/genassym.c
@


1.16
log
@Use  to build `makemodes'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.15 1996/08/12 00:51:29 mycroft Exp $
d31 1
d33 1
@


1.15
log
@Put  into .  Remove hooks for `config-dependent' and
`device-driver' flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.14 1996/08/10 06:08:26 mycroft Exp $
d179 1
a179 1
	${NORMAL_C}
@


1.14
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.arm32,v 1.13 1996/08/10 05:29:30 mycroft Exp $
d35 2
a36 1
CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -Darm32
d58 2
a59 4
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
# is marked as config-dependent.
a61 5
NORMAL_C_C=	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<

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

a62 1
NORMAL_S_C=	${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d64 1
a64 1
HOSTED_C_C=	${NORMAL_C_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//}
d104 1
a104 1
	${HOSTED_C_C}
d111 1
a111 1
	${NORMAL_C_C}
d126 1
a126 1
	@@lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} ${PARAM} -UKGDB \
d150 1
a150 1
	${MKDEP} -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${ARM32}/arm32/genassym.c
d179 1
a179 1
	${NORMAL_C_C}
@


1.13
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.arm32,v 1.12 1996/05/20 14:37:24 mark Exp $
d34 1
a34 1
INCLUDES=	-I. -I$S/arch -I$S
d71 2
d111 1
a111 1
	${NORMAL_C_C}
@


1.12
log
@Don't need -fno-builtin anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.11 1996/05/11 16:11:50 mycroft Exp $
a23 1
AS?=	as
a24 1
CPP?=	cpp
d26 1
d31 2
a32 2
S=	../../../..
ARM32=	../..
d36 2
a37 1
CFLAGS=		${DEBUG} -O2 -Werror
d97 1
a97 1
LINKFLAGS+=	-x
d151 5
a155 5
	mkdep ${AFLAGS} ${CPPFLAGS} ${ARM32}/arm32/locore.S
	mkdep -a ${CFLAGS} ${CPPFLAGS} modedefs.c
	mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
	mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${ARM32}/arm32/genassym.c
@


1.11
log
@Make `make depend' work for libraries.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.10 1996/02/29 20:55:24 cgd Exp $
d37 1
a37 1
CFLAGS=		${DEBUG} -O2 -Werror -fno-builtin
@


1.10
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.arm32,v 1.9 1996/02/26 02:53:27 mycroft Exp $
d149 1
a149 1
depend: .depend
@


1.9
log
@Define build programs with `?=', so they can be overridden with `makeoptions'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.7 1996/02/09 02:21:19 mycroft Exp $
a24 1
AWK?=	awk
d83 1
a83 1
		vnode_if.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
a110 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

d127 1
a127 1
	rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.[io] [a-z]*.s \
d148 1
a148 1
	vnode_if.c param.c ioconf.c ${CFILES} ${SFILES}
d150 1
a150 1
.depend: ${SRCS} assym.h vnode_if.h param.c
d153 1
a153 1
	mkdep -a ${CFLAGS} ${CPPFLAGS} vnode_if.c param.c ioconf.c ${CFILES}
@


1.8
log
@Replaced missing $ on one of the mkdep lines.
@
text
@d8 1
a8 1
#	/sys/arch/i386/conf/``machineid''
d12 1
a12 1
#	/sys/arch/i386/conf/Makefile.i386
d24 7
a30 7
AS=	as
AWK=	awk
CC=	cc
CPP=	cpp
LD=	ld
STRIP=	strip -d
TOUCH=	touch -f -c
@


1.7
log
@Fix mkdep problems due to missing flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.6 1996/02/05 23:49:49 mark Exp $
d156 1
a156 1
	mkdep -a ${CFLAGS} {CPPFLAGS} modedefs.c
@


1.6
log
@Added -fno-builtin flag for braindead version of gcc currently used by
the arm32 port.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.5 1996/02/03 00:43:56 mycroft Exp $
d39 1
a39 1
AFLAGS=		-D_LOCORE
d69 2
a70 2
NORMAL_S=	${CC} -traditional-cpp -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -traditional-cpp -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
d155 1
a155 1
	mkdep -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${ARM32}/arm32/locore.S
d158 1
a158 1
	mkdep -a -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${SFILES}
@


1.5
log
@Use `-traditional-cpp' when building .s and .S files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.4 1996/02/02 20:08:48 mycroft Exp $
d38 1
a38 1
CFLAGS=		${DEBUG} -O2 -Werror
@


1.4
log
@Clone these, and fix many bugs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.3 1996/02/02 02:35:59 mycroft Exp $
d69 2
a70 2
NORMAL_S=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} -c $<
NORMAL_S_C=	${CC} -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
@


1.3
log
@assym.s -> assym.h
(Some ports did this already.)
@
text
@d1 2
a2 2
#	$NetBSD: Makefile.arm32,v 1.2 1996/02/01 22:29:30 mycroft Exp $
#
d8 1
a8 1
#	/sys/conf/``machineid''
d10 1
a10 1
#	 config machineid
d12 1
a12 1
#	/sys/conf/Makefile.``machinetype''
d24 7
a30 7
AS?=	as
AWK?=	awk
CC?=	cc
CPP?=	cpp
LD?=	ld
TOUCH?=	touch -f -c
LCC?=	cc
d36 5
a40 6
INCLUDES= -I. -I$S/arch -I$S -I$S/sys
COPTS=	${INCLUDES} ${IDENT} -D_KERNEL
CFLAGS=	-O3 -fno-builtin ${DEBUG} ${COPTS} -Darm32
CFLAGS+=-Werror
#CFLAGS+=-Wcomment
#CFLAGS+=-Wmissing-prototypes -Wmissing-declarations
d63 2
a64 2
NORMAL_C=	${CC} -c ${CFLAGS} ${PROF} $<
NORMAL_C_C=	${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
d66 2
a67 4
PROFILE_C=	${CC} -S -c ${CFLAGS} $< ; \
		sed -e s/_mcount/mcount/ -e s/subrmcount/subr_mcount/ <$*.s | \
		${AS} -o $@@; \
		rm -f $*.s
d69 2
a70 2
NORMAL_S=	${CC} -c -D_LOCORE ${CFLAGS} ${PROF} $<
NORMAL_S_C=	${CC} -c -D_LOCORE ${CFLAGS} ${PROF} ${PARAM} $<
d83 8
d93 4
a96 1
LDX=-X
d98 1
a98 13
LDX=-x
.endif
LDFLAGS= ${LDX} -Ttext f0000020
SYSTEM_OBJ=	locore.o vnode_if.o ${OBJS} param.o ioconf.o modedefs.o ${LIBKERN} \
		${LIBCOMPAT}
SYSTEM_DEP=	Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD=	@@echo loading $@@; rm -f $@@
SYSTEM_LD=	-@@echo ${LD} ${LDFLAGS} -o $@@ '${SYSTEM_OBJ}' vers.o ${XXX}; \
		${LD} ${LDFLAGS} -o $@@ ${SYSTEM_OBJ} vers.o ${XXX}
SYSTEM_LD_TAIL=	@@size $@@; chmod 755 $@@; nm -n $@@ >$@@.map;
.if ${DEBUG} == "-g"
SYSTEM_LD_TAIL+=; echo cp $@@ $@@.gdb; rm -f $@@.gdb; cp $@@ $@@.gdb; \
		echo strip -d $@@; strip -d $@@
d103 2
a104 1
newvers: vers.o
d106 2
a107 3
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
	sh $S/conf/newvers.sh
	${CC} ${CFLAGS} -c vers.c
d109 2
a110 3
clean::
	rm -f eddep *netbsd netbsd.gdb tags tags1 vnode_if.[ch] *.[io] \
		[a-z]*.s Errs errs linterrs makelinks genassym
d112 2
a113 6
lint: /tmp param.c
	@@lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
	    ${CFILES} ${ARM32}/arm32/swapgeneric.c \
	    ioconf.c param.c | \
	    grep -v 'struct/union .* never defined' | \
	    grep -v 'possible pointer alignment problem'
d115 3
a117 2
locore.o: ${ARM32}/arm32/locore.S assym.h
	${NORMAL_S}
d119 2
a120 2
# depend on network or filesystem configuration
uipc_proto.o vfs_conf.o: Makefile
d122 2
a123 2
# depend of FPE configuration
vm_machdep.o cpuswitch.o cpu.o: Makefile
d125 3
a127 2
# depends of PLIP driver configuration
lpt.o: Makefile
a128 2
# depend on maxusers
assym.h: Makefile
d130 3
a132 2
assym.h: genassym
	./genassym >assym.h
d134 5
a138 3
genassym: ${ARM32}/arm32/genassym.c
	${LCC} ${INCLUDES} ${IDENT} ${PARAM} -Darm32 -o genassym \
	    ${ARM32}/arm32/genassym.c
d140 2
a141 7
SRCS= ${CFILES} ${SFILES} ${ARM32}/arm32/genassym.c ioconf.c param.c vnode_if.c \
      ${ARM32}/arm32/makemodes.c

depend: .depend
.depend: ${SRCS} assym.h
	mkdepend ${COPTS} ${SRCS}
	mkdepend -a -p ${COPTS} ${ARM32}/arm32/genassym.c
d148 1
a148 1
	  sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
d151 9
a159 4
tags: depend
	sh $S/conf/systags.sh
	rm -f tags1
	sed -e 's,	../,	,' tags > tags1
a160 2
ioconf.o: ioconf.c
	${CC} -c ${CFLAGS} ioconf.c
d162 8
a169 3
param.c: $S/conf/param.c
	rm -f param.c
	cp $S/conf/param.c .
d171 2
a172 2
param.o: param.c Makefile
	${CC} -c ${CFLAGS} ${PARAM} param.c
a173 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
d175 2
a176 2
makemodes: ${ARM32}/arm32/makemodes.c
	${LCC} ${INCLUDES} ${IDENT} ${PARAM} -o $@@ ${ARM32}/arm32/makemodes.c
a178 1
	rm -f modedefs.o
d182 4
a185 1
	${CC} -c ${CFLAGS} modedefs.c
d187 2
@


1.2
log
@LOCORE -> _LOCORE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.arm32,v 1.1 1996/01/31 23:19:12 mark Exp $
d124 1
a124 1
locore.o: ${ARM32}/arm32/locore.S assym.s
d137 1
a137 1
assym.s: Makefile
d139 2
a140 2
assym.s: genassym
	./genassym >assym.s
d150 1
a150 1
.depend: ${SRCS} assym.s
@


1.1
log
@Initial commit of the NetBSD/arm32 port.
@
text
@d1 1
a1 1
#	$NetBSD$
d72 2
a73 2
NORMAL_S=	${CC} -c -DLOCORE ${CFLAGS} ${PROF} $<
NORMAL_S_C=	${CC} -c -DLOCORE ${CFLAGS} ${PROF} ${PARAM} $<
@
