head	1.21;
access;
symbols
	perseant-exfatfs-base-20250801:1.21
	perseant-exfatfs-base-20240630:1.21
	perseant-exfatfs:1.21.0.128
	perseant-exfatfs-base:1.21
	bouyer-sunxi-drm:1.21.0.126
	bouyer-sunxi-drm-base:1.21
	cjep_sun2x:1.21.0.124
	cjep_sun2x-base:1.21
	cjep_staticlib_x-base1:1.21
	cjep_staticlib_x:1.21.0.122
	cjep_staticlib_x-base:1.21
	thorpej-futex-base:1.21
	bouyer-xenpvh-base2:1.21
	phil-wifi-20200421:1.21
	bouyer-xenpvh-base1:1.21
	phil-wifi-20200411:1.21
	bouyer-xenpvh:1.21.0.120
	bouyer-xenpvh-base:1.21
	phil-wifi-20200406:1.21
	ad-namecache-base3:1.21
	ad-namecache-base2:1.21
	ad-namecache-base1:1.21
	ad-namecache:1.21.0.118
	ad-namecache-base:1.21
	isaki-audio2:1.21.0.116
	isaki-audio2-base:1.21
	pgoyette-compat-merge-20190127:1.21
	pgoyette-compat-20190127:1.21
	pgoyette-compat-20190118:1.21
	pgoyette-compat-1226:1.21
	pgoyette-compat-1126:1.21
	pgoyette-compat-1020:1.21
	pgoyette-compat-0930:1.21
	pgoyette-compat-0906:1.21
	pgoyette-compat-0728:1.21
	pgoyette-compat-0625:1.21
	pgoyette-compat-0521:1.21
	pgoyette-compat-0502:1.21
	pgoyette-compat-0422:1.21
	pgoyette-compat-0415:1.21
	pgoyette-compat-0407:1.21
	pgoyette-compat-0330:1.21
	pgoyette-compat-0322:1.21
	pgoyette-compat-0315:1.21
	pgoyette-compat:1.21.0.114
	pgoyette-compat-base:1.21
	perseant-stdc-iso10646:1.21.0.112
	perseant-stdc-iso10646-base:1.21
	prg-localcount2-base3:1.21
	prg-localcount2-base2:1.21
	prg-localcount2-base1:1.21
	prg-localcount2:1.21.0.110
	prg-localcount2-base:1.21
	pgoyette-localcount-20170426:1.21
	bouyer-socketcan-base1:1.21
	pgoyette-localcount-20170320:1.21
	bouyer-socketcan:1.21.0.108
	bouyer-socketcan-base:1.21
	pgoyette-localcount-20170107:1.21
	pgoyette-localcount-20161104:1.21
	localcount-20160914:1.21
	pgoyette-localcount-20160806:1.21
	pgoyette-localcount-20160726:1.21
	pgoyette-localcount:1.21.0.106
	pgoyette-localcount-base:1.21
	netbsd-5-2-3-RELEASE:1.21
	netbsd-5-1-5-RELEASE:1.21
	yamt-pagecache-base9:1.21
	yamt-pagecache-tag8:1.21
	tls-earlyentropy:1.21.0.104
	tls-earlyentropy-base:1.21
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.21
	riastradh-drm2-base3:1.21
	netbsd-5-2-2-RELEASE:1.21
	netbsd-5-1-4-RELEASE:1.21
	netbsd-5-2-1-RELEASE:1.21
	netbsd-5-1-3-RELEASE:1.21
	rmind-smpnet-nbase:1.21
	rmind-smpnet:1.21.0.100
	rmind-smpnet-base:1.21
	agc-symver:1.21.0.102
	agc-symver-base:1.21
	tls-maxphys-base:1.21
	yamt-pagecache-base8:1.21
	netbsd-5-2:1.21.0.98
	yamt-pagecache-base7:1.21
	netbsd-5-2-RELEASE:1.21
	netbsd-5-2-RC1:1.21
	yamt-pagecache-base6:1.21
	yamt-pagecache-base5:1.21
	yamt-pagecache-base4:1.21
	netbsd-5-1-2-RELEASE:1.21
	netbsd-5-1-1-RELEASE:1.21
	jmcneill-usbmp:1.21.0.96
	jmcneill-usbmp-base:1.21
	jmcneill-audiomp3:1.21.0.94
	jmcneill-audiomp3-base:1.21
	yamt-pagecache-base3:1.21
	yamt-pagecache-base2:1.21
	yamt-pagecache:1.21.0.92
	yamt-pagecache-base:1.21
	rmind-uvmplock-nbase:1.21
	bouyer-quota2-nbase:1.21
	bouyer-quota2:1.21.0.90
	bouyer-quota2-base:1.21
	jruoho-x86intr:1.21.0.88
	jruoho-x86intr-base:1.21
	matt-nb5-pq3:1.21.0.86
	matt-nb5-pq3-base:1.21
	netbsd-5-1:1.21.0.84
	netbsd-5-1-RELEASE:1.21
	yamt-nfs-mp-base11:1.21
	netbsd-5-1-RC4:1.21
	uebayasi-xip-base2:1.21
	yamt-nfs-mp-base10:1.21
	netbsd-5-1-RC3:1.21
	netbsd-5-1-RC2:1.21
	netbsd-5-1-RC1:1.21
	rmind-uvmplock:1.21.0.82
	rmind-uvmplock-base:1.21
	yamt-nfs-mp-base9:1.21
	uebayasi-xip:1.21.0.80
	uebayasi-xip-base:1.21
	netbsd-5-0-2-RELEASE:1.21
	yamt-nfs-mp-base8:1.21
	yamt-nfs-mp-base7:1.21
	netbsd-5-0-1-RELEASE:1.21
	jymxensuspend-base:1.21
	yamt-nfs-mp-base6:1.21
	yamt-nfs-mp-base5:1.21
	yamt-nfs-mp-base4:1.21
	jym-xensuspend-nbase:1.21
	yamt-nfs-mp-base3:1.21
	netbsd-5-0:1.21.0.78
	netbsd-5-0-RELEASE:1.21
	netbsd-5-0-RC4:1.21
	netbsd-5-0-RC3:1.21
	netbsd-5-0-RC2:1.21
	jym-xensuspend:1.21.0.76
	jym-xensuspend-base:1.21
	netbsd-5-0-RC1:1.21
	haad-dm-base2:1.21
	haad-nbase2:1.21
	ad-audiomp2:1.21.0.74
	ad-audiomp2-base:1.21
	netbsd-5:1.21.0.72
	netbsd-5-base:1.21
	haad-dm-base1:1.21
	haad-dm:1.21.0.70
	haad-dm-base:1.21
	simonb-wapbl-nbase:1.21
	yamt-pf42-base4:1.21
	simonb-wapbl:1.21.0.68
	simonb-wapbl-base:1.21
	yamt-pf42-base3:1.21
	hpcarm-cleanup-nbase:1.21
	yamt-pf42-base2:1.21
	yamt-nfs-mp-base2:1.21
	yamt-nfs-mp:1.21.0.66
	yamt-nfs-mp-base:1.21
	yamt-pf42:1.21.0.64
	yamt-pf42-base:1.21
	ad-socklock-base1:1.21
	yamt-lazymbuf-base15:1.21
	yamt-lazymbuf-base14:1.21
	keiichi-mipv6-nbase:1.21
	mjf-devfs2:1.21.0.62
	mjf-devfs2-base:1.21
	keiichi-mipv6:1.21.0.60
	keiichi-mipv6-base:1.21
	bouyer-xeni386-merge1:1.21
	vmlocking2-base3:1.21
	bouyer-xeni386-nbase:1.21
	yamt-kmem-base3:1.21
	cube-autoconf:1.21.0.58
	cube-autoconf-base:1.21
	yamt-kmem-base2:1.21
	bouyer-xeni386:1.21.0.56
	bouyer-xeni386-base:1.21
	yamt-kmem:1.21.0.54
	yamt-kmem-base:1.21
	vmlocking2-base2:1.21
	reinoud-bufcleanup-nbase:1.21
	vmlocking2:1.21.0.52
	vmlocking2-base1:1.21
	jmcneill-base:1.21
	mjf-devfs:1.21.0.50
	mjf-devfs-base:1.21
	bouyer-xenamd64-base2:1.21
	vmlocking-nbase:1.21
	yamt-x86pmap-base4:1.21
	bouyer-xenamd64:1.21.0.48
	bouyer-xenamd64-base:1.21
	yamt-x86pmap-base3:1.21
	yamt-x86pmap-base2:1.21
	yamt-x86pmap:1.21.0.46
	yamt-x86pmap-base:1.21
	jmcneill-pm:1.21.0.44
	jmcneill-pm-base:1.21
	hpcarm-cleanup:1.21.0.42
	hpcarm-cleanup-base:1.21
	mjf-ufs-trans-base:1.21
	yamt-idlelwp-base8:1.21
	ppcoea-renovation:1.21.0.40
	ppcoea-renovation-base:1.21
	reinoud-bufcleanup-base:1.21
	vmlocking:1.21.0.38
	vmlocking-base:1.21
	ad-audiomp:1.21.0.36
	ad-audiomp-base:1.21
	yamt-idlelwp:1.21.0.34
	post-newlock2-merge:1.21
	newlock2-nbase:1.21
	yamt-splraiseipl-base5:1.21
	yamt-splraiseipl-base4:1.21
	yamt-splraiseipl-base3:1.21
	yamt-splraiseipl-base2:1.21
	yamt-splraiseipl:1.21.0.32
	yamt-splraiseipl-base:1.21
	newlock2:1.21.0.30
	newlock2-base:1.21
	yamt-pdpolicy-base8:1.21
	yamt-pdpolicy-base7:1.21
	yamt-pdpolicy-base6:1.21
	gdamore-uart:1.21.0.28
	gdamore-uart-base:1.21
	simonb-timcounters-final:1.21
	yamt-pdpolicy-base5:1.21
	elad-kernelauth-nbase:1.21
	yamt-pdpolicy-base4:1.21
	yamt-pdpolicy-base3:1.21
	yamt-pdpolicy-base2:1.21
	yamt-pdpolicy:1.21.0.26
	yamt-pdpolicy-base:1.21
	yamt-uio_vmspace-base5:1.21
	simonb-timecounters:1.21.0.24
	simonb-timecounters-base:1.21
	rpaulo-netinet-merge-pcb:1.21.0.22
	rpaulo-netinet-merge-pcb-base:1.21
	yamt-uio_vmspace:1.21.0.20
	yamt-readahead-base3:1.21
	yamt-readahead-base2:1.21
	yamt-readahead:1.21.0.18
	yamt-readahead-base:1.21
	yamt-vop-base3:1.21
	yamt-vop-base2:1.21
	thorpej-vnode-attr:1.21.0.16
	thorpej-vnode-attr-base:1.21
	yamt-vop:1.21.0.14
	yamt-vop-base:1.21
	yamt-lazymbuf:1.21.0.12
	yamt-km-base4:1.21
	yamt-km-base3:1.21
	yamt-km-base2:1.21
	yamt-km:1.21.0.10
	yamt-km-base:1.21
	kent-audio2:1.21.0.8
	kent-audio2-base:1.21
	netbsd-1-6-PATCH002-RELEASE:1.20.10.1
	netbsd-1-6-PATCH002:1.20.10.1
	netbsd-1-6-PATCH002-RC4:1.20.10.1
	netbsd-1-6-PATCH002-RC3:1.20.10.1
	netbsd-1-6-PATCH002-RC2:1.20.10.1
	netbsd-1-6-PATCH002-RC1:1.20.10.1
	ktrace-lwp:1.21.0.6
	ktrace-lwp-base:1.21
	netbsd-1-6-PATCH001:1.20.10.1
	netbsd-1-6-PATCH001-RELEASE:1.20.10.1
	netbsd-1-6-PATCH001-RC3:1.20.10.1
	netbsd-1-6-PATCH001-RC2:1.20.10.1
	netbsd-1-6-PATCH001-RC1:1.20.10.1
	nathanw_sa_end:1.18.4.3
	nathanw_sa_before_merge:1.21
	gmcgarry_ctxsw:1.21.0.4
	gmcgarry_ctxsw_base:1.21
	gmcgarry_ucred:1.21.0.2
	gmcgarry_ucred_base:1.21
	nathanw_sa_base:1.21
	netbsd-1-6-RELEASE:1.20.10.1
	netbsd-1-6-RC3:1.20.10.1
	netbsd-1-6-RC2:1.20.10.1
	netbsd-1-6-RC1:1.20.10.1
	netbsd-1-6:1.20.0.10
	netbsd-1-6-base:1.20
	gehenna-devsw:1.20.0.8
	gehenna-devsw-base:1.21
	netbsd-1-5-PATCH003:1.12
	eeh-devprop:1.20.0.6
	eeh-devprop-base:1.20
	newlock:1.20.0.4
	newlock-base:1.20
	ifpoll-base:1.20
	nathanw_sa:1.18.0.4
	thorpej-mips-cache:1.18.0.2
	thorpej-mips-cache-base:1.18
	thorpej-devvp-base3:1.18
	thorpej-devvp-base2:1.17
	post-chs-ubcperf:1.17
	pre-chs-ubcperf:1.17
	thorpej-devvp:1.17.0.4
	thorpej-devvp-base:1.17
	netbsd-1-5-PATCH002:1.12
	kqueue:1.17.0.2
	kqueue-base:1.20
	netbsd-1-5-PATCH001:1.12
	thorpej_scsipi_beforemerge:1.17
	thorpej_scsipi_nbase:1.17
	netbsd-1-5-RELEASE:1.12
	netbsd-1-5-BETA2:1.12
	netbsd-1-5-BETA:1.12
	netbsd-1-4-PATCH003:1.12
	netbsd-1-5-ALPHA2:1.12
	netbsd-1-5:1.12.0.24
	netbsd-1-5-base:1.12
	minoura-xpg4dl-base:1.12
	minoura-xpg4dl:1.12.0.22
	netbsd-1-4-PATCH002:1.12
	chs-ubc2-newbase:1.12
	wrstuden-devbsize-19991221:1.12
	wrstuden-devbsize:1.12.0.20
	wrstuden-devbsize-base:1.12
	kame_141_19991130:1.12
	comdex-fall-1999:1.12.0.18
	comdex-fall-1999-base:1.12
	fvdl-softdep:1.12.0.16
	fvdl-softdep-base:1.12
	thorpej_scsipi:1.12.0.14
	thorpej_scsipi_base:1.17
	netbsd-1-4-PATCH001:1.12
	kame_14_19990705:1.12
	kame_14_19990628:1.12
	kame:1.12.0.12
	chs-ubc2:1.12.0.10
	chs-ubc2-base:1.12
	netbsd-1-4-RELEASE:1.12
	netbsd-1-4:1.12.0.8
	netbsd-1-4-base:1.12
	netbsd-1-3-PATCH003:1.11
	netbsd-1-3-PATCH003-CANDIDATE2:1.11
	kenh-if-detach:1.12.0.6
	kenh-if-detach-base:1.12
	netbsd-1-3-PATCH003-CANDIDATE1:1.11
	netbsd-1-3-PATCH003-CANDIDATE0:1.11
	chs-ubc:1.12.0.4
	chs-ubc-base:1.12
	eeh-paddr_t:1.12.0.2
	eeh-paddr_t-base:1.12
	netbsd-1-3-PATCH002:1.11
	netbsd-1-3-PATCH001:1.11
	gwr-3x3:1.11.0.6
	gwr-3x3-base:1.11
	netbsd-1-3-RELEASE:1.11
	netbsd-1-3-BETA:1.11
	netbsd-1-3:1.11.0.4
	netbsd-1-3-base:1.11
	thorpej-signal:1.11.0.2
	thorpej-signal-base:1.11
	marc-pcmcia:1.10.0.4
	marc-pcmcia-bp:1.10
	marc-pcmcia-base:1.11
	bouyer-scsipi:1.10.0.2
	is-newarp-before-merge:1.8
	is-newarp:1.7.0.4
	is-newarp-base:1.7
	netbsd-1-2-PATCH001:1.6
	mrg-vm-swap:1.7.0.2
	thorpej-setroot:1.6.0.2
	netbsd-1-2-RELEASE:1.6
	netbsd-1-2-BETA:1.6
	netbsd-1-2:1.6.0.4
	netbsd-1-2-base:1.6
	netbsd-1-1-PATCH001:1.5.2.2
	netbsd-1-1-RELEASE:1.5.2.2
	netbsd-1-1:1.5.0.2
	netbsd-1-1-base:1.4
	rtag:1.1.1.1
	vtag:1.1.1;
locks; strict;
comment	@# @;


1.21
date	2002.05.28.21.06.04;	author nathanw;	state dead;
branches;
next	1.20;

1.20
date	2002.02.09.09.36.01;	author lukem;	state Exp;
branches
	1.20.8.1
	1.20.10.1;
next	1.19;

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

1.18
date	2001.10.07.04.50.40;	author tsutsui;	state Exp;
branches
	1.18.4.1;
next	1.17;

1.17
date	2001.03.21.14.08.03;	author tsutsui;	state Exp;
branches
	1.17.2.1
	1.17.4.1;
next	1.16;

1.16
date	2001.03.21.13.43.58;	author tsutsui;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.22.07.11.10;	author chs;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2001.02.04.08.57.21;	author jmc;	state Exp;
branches;
next	1.13;

1.13
date	2000.07.16.21.56.12;	author jdolecek;	state Exp;
branches;
next	1.12;

1.12
date	98.06.29.20.09.14;	author gwr;	state Exp;
branches
	1.12.14.1;
next	1.11;

1.11
date	97.09.05.04.31.50;	author gwr;	state Exp;
branches;
next	1.10;

1.10
date	97.04.01.23.11.28;	author gwr;	state Exp;
branches
	1.10.4.1;
next	1.9;

1.9
date	97.03.24.17.48.19;	author gwr;	state Exp;
branches;
next	1.8;

1.8
date	97.03.11.20.13.20;	author gwr;	state Exp;
branches;
next	1.7;

1.7
date	97.02.05.17.31.46;	author gwr;	state Exp;
branches
	1.7.4.1;
next	1.6;

1.6
date	95.11.17.23.23.44;	author gwr;	state Exp;
branches;
next	1.5;

1.5
date	95.10.13.21.44.11;	author gwr;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	95.09.23.03.42.17;	author gwr;	state Exp;
branches;
next	1.3;

1.3
date	95.08.08.21.02.04;	author gwr;	state Exp;
branches;
next	1.2;

1.2
date	95.06.09.22.03.46;	author gwr;	state Exp;
branches;
next	1.1;

1.1
date	95.02.14.22.56.35;	author gwr;	state Exp;
branches
	1.1.1.1;
next	;

1.20.8.1
date	2002.05.30.15.36.02;	author gehenna;	state dead;
branches;
next	;

1.20.10.1
date	2002.05.28.23.08.07;	author tv;	state dead;
branches;
next	;

1.18.4.1
date	2001.10.07.04.50.40;	author nathanw;	state dead;
branches;
next	1.18.4.2;

1.18.4.2
date	2002.02.28.04.12.23;	author nathanw;	state Exp;
branches;
next	1.18.4.3;

1.18.4.3
date	2002.06.20.03.41.44;	author nathanw;	state dead;
branches;
next	;

1.17.2.1
date	2002.01.10.19.49.47;	author thorpej;	state Exp;
branches;
next	1.17.2.2;

1.17.2.2
date	2002.02.11.20.09.17;	author jdolecek;	state Exp;
branches;
next	1.17.2.3;

1.17.2.3
date	2002.03.16.16.00.06;	author jdolecek;	state Exp;
branches;
next	1.17.2.4;

1.17.2.4
date	2002.06.23.17.42.38;	author jdolecek;	state dead;
branches;
next	;

1.17.4.1
date	2001.10.11.00.01.57;	author fvdl;	state Exp;
branches;
next	;

1.15.2.1
date	2001.04.09.01.55.09;	author nathanw;	state Exp;
branches;
next	;

1.12.14.1
date	2000.11.20.20.27.55;	author bouyer;	state Exp;
branches;
next	1.12.14.2;

1.12.14.2
date	2001.02.11.19.12.45;	author bouyer;	state Exp;
branches;
next	1.12.14.3;

1.12.14.3
date	2001.03.12.13.29.36;	author bouyer;	state Exp;
branches;
next	1.12.14.4;

1.12.14.4
date	2001.03.27.15.31.37;	author bouyer;	state Exp;
branches;
next	;

1.10.4.1
date	97.09.06.18.44.19;	author thorpej;	state Exp;
branches;
next	;

1.7.4.1
date	97.03.12.14.04.58;	author is;	state Exp;
branches;
next	;

1.5.2.1
date	95.10.13.21.44.11;	author gwr;	state dead;
branches;
next	1.5.2.2;

1.5.2.2
date	95.11.18.06.47.31;	author gwr;	state Exp;
branches;
next	;

1.1.1.1
date	95.02.14.22.56.36;	author gwr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	95.06.01.20.37.46;	author gwr;	state Exp;
branches;
next	;


desc
@@


1.21
log
@Remove in favor of sun68k/stand.
@
text
@#	$NetBSD: Makefile.inc,v 1.20 2002/02/09 09:36:01 lukem Exp $

# Must have S=/usr/src/sys (or equivalent)
# But note: this is w.r.t. a subdirectory
S=	${.CURDIR}/../../../..

.if defined(SA_PROG)

.include <bsd.own.mk>

LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR}

MDEC_DIR?=/usr/mdec

RELOC?= 240000
DEFS?= -Dsun3 -D_STANDALONE
INCL?= -I. -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}

CFLAGS= -Os -msoft-float -fno-defer-pop -Wno-main
CPPFLAGS= ${DEFS} ${INCL}

SRTOBJ= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
SRTLIB= ${LIBSA}/libsa.a

CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin

# Make a copy of the executable with its ELF headers removed.
${SA_PROG}.bin : ${SA_PROG}
	${OBJCOPY} --output-target=binary ${SA_PROG} $@@

${SA_PROG} : ${OBJS} ${DPADD} ${SRTLIB}
	${LD} -N -Ttext ${RELOC} -e start -o $@@ \
	  ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
	@@${SIZE} $@@

.if !target(proginstall)
realall: ${SA_PROG} ${SA_PROG}.bin
proginstall: ${SA_PROG}.bin
	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
		${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
.endif

.endif	# defined(SA_PROG)

CLEANFILES+= machine m68k
.BEGIN: machine m68k
.NOPATH: machine m68k
realall realdepend: machine m68k

machine :
	-rm -f $@@
	ln -s ${S}/arch/sun3/include $@@

m68k :
	-rm -f $@@
	ln -s ${S}/arch/m68k/include $@@
@


1.20
log
@use ${INSTALL_FILE} as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2002/01/31 14:30:49 tsutsui Exp $
@


1.20.8.1
log
@Catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2002/02/09 09:36:01 lukem Exp $
@


1.20.10.1
log
@Pull up file removal (requested by nathanw in ticket #51):
Remove in favor of sun68k/stand.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2002/02/09 09:36:01 lukem Exp $
@


1.19
log
@Add -Wno-main to CFLAGS for SA_PROGs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2001/10/07 04:50:40 tsutsui Exp $
d39 2
a40 2
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	  ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
@


1.18
log
@Build sa programs with -Os.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2001/03/21 14:08:03 tsutsui Exp $
d19 1
a19 1
CFLAGS= -Os -msoft-float -fno-defer-pop
@


1.18.4.1
log
@file Makefile.inc was added on branch nathanw_sa on 2002-02-28 04:12:23 +0000
@
text
@d1 56
@


1.18.4.2
log
@Catch up to -current.
@
text
@a0 56
#	$NetBSD: Makefile.inc,v 1.18.4.1 2002/02/28 04:12:23 nathanw Exp $

# Must have S=/usr/src/sys (or equivalent)
# But note: this is w.r.t. a subdirectory
S=	${.CURDIR}/../../../..

.if defined(SA_PROG)

.include <bsd.own.mk>

LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR}

MDEC_DIR?=/usr/mdec

RELOC?= 240000
DEFS?= -Dsun3 -D_STANDALONE
INCL?= -I. -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}

CFLAGS= -Os -msoft-float -fno-defer-pop -Wno-main
CPPFLAGS= ${DEFS} ${INCL}

SRTOBJ= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
SRTLIB= ${LIBSA}/libsa.a

CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin

# Make a copy of the executable with its ELF headers removed.
${SA_PROG}.bin : ${SA_PROG}
	${OBJCOPY} --output-target=binary ${SA_PROG} $@@

${SA_PROG} : ${OBJS} ${DPADD} ${SRTLIB}
	${LD} -N -Ttext ${RELOC} -e start -o $@@ \
	  ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
	@@${SIZE} $@@

.if !target(proginstall)
realall: ${SA_PROG} ${SA_PROG}.bin
proginstall: ${SA_PROG}.bin
	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
		${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
.endif

.endif	# defined(SA_PROG)

CLEANFILES+= machine m68k
.BEGIN: machine m68k
.NOPATH: machine m68k
realall realdepend: machine m68k

machine :
	-rm -f $@@
	ln -s ${S}/arch/sun3/include $@@

m68k :
	-rm -f $@@
	ln -s ${S}/arch/m68k/include $@@
@


1.18.4.3
log
@Catch up to -current.
@
text
@d1 56
@


1.17
log
@- Use ${PRINTOBJDIR}
- size -> ${SIZE}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2001/03/21 13:43:58 tsutsui Exp $
d19 2
a20 2
CFLAGS= -O2 -msoft-float -fno-defer-pop
CPPFLAGS= ${DEFS} ${DBG} ${INCL}
@


1.17.2.1
log
@Sync kqueue branch with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2001/10/07 04:50:40 tsutsui Exp $
d19 2
a20 2
CFLAGS= -Os -msoft-float -fno-defer-pop
CPPFLAGS= ${DEFS} ${INCL}
@


1.17.2.2
log
@Sync w/ -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17.2.1 2002/01/10 19:49:47 thorpej Exp $
d19 1
a19 1
CFLAGS= -Os -msoft-float -fno-defer-pop -Wno-main
@


1.17.2.3
log
@Catch up with -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17.2.2 2002/02/11 20:09:17 jdolecek Exp $
d39 2
a40 2
	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
		${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
@


1.17.2.4
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17.2.3 2002/03/16 16:00:06 jdolecek Exp $
@


1.17.4.1
log
@Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2001/03/21 14:08:03 tsutsui Exp $
d19 2
a20 2
CFLAGS= -Os -msoft-float -fno-defer-pop
CPPFLAGS= ${DEFS} ${INCL}
@


1.16
log
@Move rules to create m68k and machine symlinks to common Makefile.inc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2001/02/22 07:11:10 chs Exp $
d9 3
a11 2
LIBSA!=cd ${.CURDIR}/../libsa; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
d34 1
a34 1
	@@size $@@
@


1.15
log
@switch sun3 to ELF.  highlight include:
add "%" prefix to register names in assembly code.
change assembly functions to return values in %a0 instead of %d0.
C symbols no longer prepend an underscore, adjust assembly code for this.
32-bit values are now 32-bit aligned instead of 16-bit aligned,
adjust structure packing and padding to override this where necessary.
make EXEC_ELF std, make EXEC_AOUT and COMPAT_AOUT_M68K optional.
use the MI loadfile() instead of several home-grown versions.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile.inc,v 1.14 2001/02/04 08:57:21 jmc Exp $

.if defined(SA_PROG)
d7 2
d24 1
a24 1
CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin machine m68k
a34 2
${OBJS} : machine m68k

d43 5
@


1.15.2.1
log
@Catch up with -current.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.inc,v 1.17 2001/03/21 14:08:03 tsutsui Exp $
d9 2
a10 5
.if defined(SA_PROG)

.include <bsd.own.mk>

LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR}
d24 1
a24 1
CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin
d33 3
a35 1
	@@${SIZE} $@@
a44 5

CLEANFILES+= machine m68k
.BEGIN: machine m68k
.NOPATH: machine m68k
realall realdepend: machine m68k
@


1.14
log
@Make targets proper so this builds both as a make with no args, make all
or make dependall (without the latter snapshot builds break).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2000/07/16 21:56:12 jdolecek Exp $
d26 1
a26 3
# Make a copy of the executable with its exec header removed,
# and with its length padded to a multiple of 1k bytes.
# (The padding is for convenience when making tapes.)
d28 1
a28 5
	cp ${SA_PROG} ${SA_PROG}.tmp
	strip ${SA_PROG}.tmp
	dd if=${SA_PROG}.tmp ibs=32 skip=1 obs=1k | \
	  dd of=$@@ bs=1k conv=sync
	-rm -f ${SA_PROG}.tmp
a36 6
.if !target(cleanprog)
cleanprog:
	-rm -f ${SA_PROG}.tmp [Ee]rrs mklog core *.core
	-rm -f ${CLEANFILES} *.o
.endif

d38 1
a52 1

@


1.13
log
@convert to use version template and newvers_stand.sh script for generating
	bootblock revision strings, use bootbock_name[] (i.e. "NetBSD/sun3")
	in initial bootblock messages instead of just "NetBSD"

while here, do sligh Makefile cleanup to share more code between them and also
	to make buildable on NetBSD 1.4.1 (my test compile system)
get rid of the XX define hack for netboot & ufsboot, build xxboot.c as
	part of libsa - previos main() was renamed to xxboot_main(), main()
	is now in respective conf.c files and calls xxboot_main() with
	appropriate name of boot block type

XXX I had no chance to actually test the resulting bootblocks, but the
changes were fairly streightforward and should no influence functionality of
boot code
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 1998/06/29 20:09:14 gwr Exp $
a12 3

SRCS?=	${SA_PROG}.c
OBJS?=	${SRCS:.c=.o}
@


1.12
log
@Reimplement the header strip using two instances of dd in a pipe,
so it works with a dd that does not know conv=osync (i.e. Solaris).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 1997/09/05 04:31:50 gwr Exp $
d9 3
a11 1
LIBSA!=cd ${.CURDIR}/../libsa; $(MAKE) echo_objdir
a45 8
machine :
	-rm -f $@@
	ln -s ${S}/arch/sun3/include $@@

m68k :
	-rm -f $@@
	ln -s ${S}/arch/m68k/include $@@

d59 9
@


1.12.14.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.inc,v 1.13 2000/07/16 21:56:12 jdolecek Exp $
d9 1
a9 3
LIBSA!=cd ${.CURDIR}/../libsa; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-

d44 8
a64 9

machine :
	-rm -f $@@
	ln -s ${S}/arch/sun3/include $@@

m68k :
	-rm -f $@@
	ln -s ${S}/arch/m68k/include $@@

@


1.12.14.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12.14.1 2000/11/20 20:27:55 bouyer Exp $
d13 3
@


1.12.14.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12.14.2 2001/02/11 19:12:45 bouyer Exp $
d26 3
a28 1
# Make a copy of the executable with its ELF headers removed.
d30 5
a34 1
	${OBJCOPY} --output-target=binary ${SA_PROG} $@@
d43 6
a49 1
realall: ${SA_PROG} ${SA_PROG}.bin
d64 1
@


1.12.14.4
log
@Sync with HEAD.
@
text
@d1 3
a3 1
#	$NetBSD$
d9 2
a10 5
.if defined(SA_PROG)

.include <bsd.own.mk>

LIBSA!=cd ${.CURDIR}/../libsa && ${PRINTOBJDIR}
d24 1
a24 1
CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin
d33 3
a35 1
	@@${SIZE} $@@
a44 5

CLEANFILES+= machine m68k
.BEGIN: machine m68k
.NOPATH: machine m68k
realall realdepend: machine m68k
@


1.11
log
@Make stand/Makefile.inc work with obj directories. (Fixes PR 4014)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 1997/04/01 23:11:28 gwr Exp $
d31 5
a35 3
	cp ${SA_PROG} a.out ; strip a.out
	dd if=a.out ibs=32 skip=1 of=$@@ obs=1k conv=osync
	-rm -f a.out
d54 1
a54 1
	-rm -f a.out [Ee]rrs mklog core *.core
@


1.10
log
@Back-out the CWD hack...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 1997/03/24 17:48:19 gwr Exp $
d9 6
d16 2
a17 7
DEFS?= -Dsun3 -DSTANDALONE
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
COPTS?= -msoft-float ${DEFS} ${INCL} ${DBG}

LIBSA?= ../libsa
SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
SRTLIB?= ${LIBSA}/libsa.a
d19 2
a20 1
MDEC_DIR?=/usr/mdec
d22 2
a23 2
SRCS?=	${SA_PROG}.c
OBJS?=	${SRCS:S/.c/.o/g}
d25 1
a25 1
CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin
d35 1
a35 1
${SA_PROG} : ${OBJS} ${DPADD}
d40 12
a51 2
.if !target(clean)
clean:
d56 2
a57 2
.if !target(install)
install: ${SA_PROG}.bin
d62 1
a62 1
.endif
@


1.10.4.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 1997/09/05 04:31:50 gwr Exp $
d9 9
a17 1
LIBSA!=cd ${.CURDIR}/../libsa; $(MAKE) echo_objdir
d21 1
a21 8
OBJS?=	${SRCS:.c=.o}

RELOC?= 240000
DEFS?= -Dsun3 -D_STANDALONE
INCL?= -I. -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}

CFLAGS= -O2 -msoft-float -fno-defer-pop
CPPFLAGS= ${DEFS} ${DBG} ${INCL}
d23 1
a23 4
SRTOBJ= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
SRTLIB= ${LIBSA}/libsa.a

CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin machine m68k
d33 1
a33 1
${SA_PROG} : ${OBJS} ${DPADD} ${SRTLIB}
d38 2
a39 12
${OBJS} : machine m68k

machine :
	-rm -f $@@
	ln -s ${S}/arch/sun3/include $@@

m68k :
	-rm -f $@@
	ln -s ${S}/arch/m68k/include $@@

.if !target(cleanprog)
cleanprog:
d44 2
a45 2
.if !target(proginstall)
proginstall: ${SA_PROG}.bin
d50 1
a50 1
.endif	# defined(SA_PROG)
@


1.9
log
@Use ${INSTALL} ...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 1997/03/11 20:13:20 gwr Exp $
a4 3
# Allow "make CWD=." to show "normal" -I paths.
CWD=	${.CURDIR}

d7 1
a7 1
S=	${CWD}/../../../..
d11 1
a11 1
INCL?= -I${CWD} -I${CWD}/../libsa -I${S}/lib/libsa -I${S}
@


1.8
log
@s/-T/-Ttext/
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1997/02/05 17:31:46 gwr Exp $
d5 3
d10 1
a10 1
S=	${.CURDIR}/../../../..
d14 2
a15 2
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
COPTS?= -msoft-float ${DEFS} ${DBG} ${INCL}
d49 1
a49 1
	install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
@


1.7
log
@Add -Dsun3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1995/11/17 23:23:44 gwr Exp $
d34 1
a34 1
	${LD} -N -T ${RELOC} -e start -o $@@ \
@


1.7.4.1
log
@Merge in changes from The Trunk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 1997/03/11 20:13:20 gwr Exp $
d34 1
a34 1
	${LD} -N -Ttext ${RELOC} -e start -o $@@ \
@


1.6
log
@just cleanup
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1995/10/13 21:44:11 gwr Exp $
d10 1
a10 1
DEFS?= -DSTANDALONE
@


1.5
log
@Add tapeboot, make ${SA_PROG}.bin padded to a block boundary.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 1995/09/23 03:42:17 gwr Exp $
d12 1
a12 1
COPTS?= -msoft-float ${DEFS} ${INCL}
d16 2
a17 1
LIBS?= ${LIBSA}/libsa.a
d33 3
a35 2
${SA_PROG} : ${SRTOBJ} ${OBJS} ${LIBS}
	${LD} -N -T ${RELOC} -e start -o $@@ ${SRTOBJ} ${OBJS} ${LIBS}
d42 6
@


1.5.2.1
log
@file Makefile.inc was added on branch netbsd-1-1 on 1995-11-18 06:47:31 +0000
@
text
@d1 42
@


1.5.2.2
log
@Sync with HEAD (cleanup)
@
text
@a0 50
#	$NetBSD: Makefile.inc,v 1.5.2.1 1995/11/18 06:47:31 gwr Exp $

.if defined(SA_PROG)

# Must have S=/usr/src/sys (or equivalent)
# But note: this is w.r.t. a subdirectory
S=	${.CURDIR}/../../../..

RELOC?= 240000
DEFS?= -DSTANDALONE
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
COPTS?= -msoft-float ${DEFS} ${DBG} ${INCL}

LIBSA?= ../libsa
SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
SRTLIB?= ${LIBSA}/libsa.a

MDEC_DIR?=/usr/mdec

SRCS?=	${SA_PROG}.c
OBJS?=	${SRCS:S/.c/.o/g}

CLEANFILES+= ${SA_PROG} ${SA_PROG}.bin

# Make a copy of the executable with its exec header removed,
# and with its length padded to a multiple of 1k bytes.
# (The padding is for convenience when making tapes.)
${SA_PROG}.bin : ${SA_PROG}
	cp ${SA_PROG} a.out ; strip a.out
	dd if=a.out ibs=32 skip=1 of=$@@ obs=1k conv=osync
	-rm -f a.out

${SA_PROG} : ${OBJS} ${DPADD}
	${LD} -N -T ${RELOC} -e start -o $@@ \
	  ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
	@@size $@@

.if !target(clean)
clean:
	-rm -f a.out [Ee]rrs mklog core *.core
	-rm -f ${CLEANFILES} *.o
.endif

.if !target(install)
install: ${SA_PROG}.bin
	install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	  ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
.endif

.endif
@


1.4
log
@Cleanup, and catch up with libsa changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 1995/08/08 21:02:04 gwr Exp $
d22 5
d29 1
a29 1
	tail -c +33 < a.out > $@@
d39 1
a39 1
	-rm -f ${SA_PROG} ${SA_PROG}.bin ${OBJS} ${CLEANFILES}
@


1.3
log
@Make it work with obj dirs.  (from Jason Thorpe)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 1995/06/09 22:03:46 gwr Exp $
d20 1
a20 1
OBJS?=	${SRTOBJ} ${SRCS:S/.c/.o/g}
d24 1
a24 1
	dd ibs=32 skip=1 if=a.out of=$@@
d27 2
a28 2
${SA_PROG} : ${OBJS} ${LIBS}
	${LD} -N -T ${RELOC} -e start -o $@@ ${OBJS} ${LIBS}
@


1.2
log
@Add install targets, etc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.1.2 1995/06/01 20:37:46 gwr Exp $
d7 1
a7 1
S=	../../../..
d11 1
a11 1
INCL?= -I. -I../libsa -I${S}/lib/libsa -I${S}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$NetBSD$
d17 1
d22 4
a25 1
all:	${SA_PROG}
d30 6
@


1.1.1.1
log
@compiles, but...
@
text
@@


1.1.1.2
log
@Booting from ufs works now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.1.1 1995/02/14 22:56:36 gwr Exp $
@
