head	1.9;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.52
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.50
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	thorpej-ifq:1.8.0.48
	thorpej-ifq-base:1.8
	thorpej-altq-separation:1.8.0.46
	thorpej-altq-separation-base:1.8
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.44
	netbsd-10-base:1.8
	bouyer-sunxi-drm:1.8.0.42
	bouyer-sunxi-drm-base:1.8
	netbsd-9-3-RELEASE:1.8
	thorpej-i2c-spi-conf2:1.8.0.40
	thorpej-i2c-spi-conf2-base:1.8
	thorpej-futex2:1.8.0.38
	thorpej-futex2-base:1.8
	thorpej-cfargs2:1.8.0.36
	thorpej-cfargs2-base:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.34
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.8.0.32
	cjep_staticlib_x-base:1.8
	thorpej-i2c-spi-conf:1.8.0.30
	thorpej-i2c-spi-conf-base:1.8
	thorpej-cfargs:1.8.0.28
	thorpej-cfargs-base:1.8
	thorpej-futex:1.8.0.26
	thorpej-futex-base:1.8
	netbsd-9-1-RELEASE:1.8
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	phil-wifi-20200411:1.8
	bouyer-xenpvh:1.8.0.24
	bouyer-xenpvh-base:1.8
	is-mlppp:1.8.0.22
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.8
	ad-namecache-base3:1.8
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	ad-namecache-base2:1.8
	ad-namecache-base1:1.8
	ad-namecache:1.8.0.20
	ad-namecache-base:1.8
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.18
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.8
	netbsd-8-1-RC1:1.8
	isaki-audio2:1.8.0.16
	isaki-audio2-base:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.7
	pgoyette-compat-0728:1.8
	netbsd-8-0-RELEASE:1.8
	phil-wifi:1.8.0.14
	phil-wifi-base:1.8
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	netbsd-8-0-RC1:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.7
	pgoyette-compat:1.8.0.12
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.7
	tls-maxphys-base-20171202:1.8
	matt-nb8-mediatek:1.8.0.10
	matt-nb8-mediatek-base:1.8
	nick-nhusb-base-20170825:1.8
	perseant-stdc-iso10646:1.8.0.8
	perseant-stdc-iso10646-base:1.8
	netbsd-8:1.8.0.6
	netbsd-8-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.4
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	jdolecek-ncq:1.8.0.2
	jdolecek-ncq-base:1.8
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.7.0.14
	netbsd-7-1-RELEASE:1.7
	netbsd-7-1-RC2:1.7
	nick-nhusb-base-20170204:1.7
	netbsd-7-nhusb-base-20170116:1.7
	bouyer-socketcan:1.7.0.12
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.7
	nick-nhusb-base-20161204:1.7
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.7
	nick-nhusb-base-20161004:1.7
	localcount-20160914:1.7
	netbsd-7-nhusb:1.7.0.10
	netbsd-7-nhusb-base:1.7
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.8
	pgoyette-localcount-base:1.7
	nick-nhusb-base-20160907:1.7
	nick-nhusb-base-20160529:1.7
	netbsd-7-0-1-RELEASE:1.7
	nick-nhusb-base-20160422:1.7
	nick-nhusb-base-20160319:1.7
	nick-nhusb-base-20151226:1.7
	netbsd-7-0:1.7.0.6
	netbsd-7-0-RELEASE:1.7
	nick-nhusb-base-20150921:1.7
	netbsd-7-0-RC3:1.7
	netbsd-7-0-RC2:1.7
	netbsd-7-0-RC1:1.7
	nick-nhusb-base-20150606:1.7
	nick-nhusb-base-20150406:1.7
	nick-nhusb:1.7.0.4
	nick-nhusb-base:1.7
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.7.0.2
	netbsd-7-base:1.7
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.4
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.6.0.2
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	rmind-smpnet-nbase:1.6
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.26
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.18
	rmind-smpnet-base:1.6
	netbsd-6-1:1.4.0.24
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	khorben-n900:1.4.0.22
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.4.0.20
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.1.0.40
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.16
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.14
	tls-maxphys-base:1.7
	matt-nb6-plus:1.4.0.12
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	jmcneill-usbmp-base10:1.4
	yamt-pagecache-base5:1.4
	jmcneill-usbmp-base9:1.4
	yamt-pagecache-base4:1.4
	jmcneill-usbmp-base8:1.4
	jmcneill-usbmp-base7:1.4
	jmcneill-usbmp-base6:1.4
	jmcneill-usbmp-base5:1.4
	jmcneill-usbmp-base4:1.4
	jmcneill-usbmp-base3:1.4
	jmcneill-usbmp-pre-base2:1.4
	jmcneill-usbmp-base2:1.4
	netbsd-6:1.4.0.10
	netbsd-6-base:1.4
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	jmcneill-usbmp:1.4.0.8
	jmcneill-usbmp-base:1.4
	jmcneill-audiomp3:1.4.0.6
	jmcneill-audiomp3-base:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.4
	yamt-pagecache-base:1.4
	rmind-uvmplock-nbase:1.4
	cherry-xenmp:1.4.0.2
	cherry-xenmp-base:1.4
	jym-xensuspend-nbase:1.4
	uebayasi-xip-base7:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.2.0.10
	bouyer-quota2-base:1.4
	jruoho-x86intr:1.2.0.8
	jruoho-x86intr-base:1.2
	matt-mips64-premerge-20101231:1.2
	matt-nb5-mips64-premerge-20101231:1.1
	matt-nb5-pq3:1.1.0.38
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.36
	uebayasi-xip-base6:1.2
	uebayasi-xip-base5:1.2
	netbsd-5-1-RELEASE:1.1
	uebayasi-xip-base4:1.2
	uebayasi-xip-base3:1.2
	yamt-nfs-mp-base11:1.2
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1
	uebayasi-xip-base2:1.2
	yamt-nfs-mp-base10:1.2
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	uebayasi-xip-base1:1.2
	netbsd-5-1-RC1:1.1
	rmind-uvmplock:1.2.0.6
	rmind-uvmplock-base:1.4
	yamt-nfs-mp-base9:1.2
	uebayasi-xip:1.2.0.4
	uebayasi-xip-base:1.2
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.2
	yamt-nfs-mp-base8:1.2
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	yamt-nfs-mp-base7:1.2
	matt-nb5-mips64:1.1.0.34
	netbsd-5-0-1-RELEASE:1.1
	jymxensuspend-base:1.2
	yamt-nfs-mp-base6:1.2
	yamt-nfs-mp-base5:1.2
	yamt-nfs-mp-base4:1.2
	yamt-nfs-mp-base3:1.2
	nick-hppapmap-base4:1.2
	nick-hppapmap-base3:1.2
	netbsd-5-0:1.1.0.32
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	nick-hppapmap-base2:1.2
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.2.0.2
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.1
	haad-dm-base2:1.1
	haad-nbase2:1.1
	ad-audiomp2:1.1.0.30
	ad-audiomp2-base:1.1
	netbsd-5:1.1.0.28
	netbsd-5-base:1.1
	nick-hppapmap:1.1.0.26
	nick-hppapmap-base:1.2
	matt-mips64-base2:1.1
	haad-dm-base1:1.1
	wrstuden-revivesa-base-4:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa-base-2:1.1
	haad-dm:1.1.0.24
	haad-dm-base:1.1
	wrstuden-revivesa-base-1:1.1
	simonb-wapbl-nbase:1.1
	yamt-pf42-base4:1.1
	simonb-wapbl:1.1.0.22
	simonb-wapbl-base:1.1
	yamt-pf42-base3:1.1
	hpcarm-cleanup-nbase:1.1
	yamt-pf42-baseX:1.1
	yamt-pf42-base2:1.1
	yamt-nfs-mp-base2:1.1
	wrstuden-revivesa:1.1.0.20
	wrstuden-revivesa-base:1.1
	yamt-nfs-mp:1.1.0.18
	yamt-nfs-mp-base:1.1
	yamt-pf42:1.1.0.16
	yamt-pf42-base:1.1
	ad-socklock-base1:1.1
	yamt-lazymbuf-base15:1.1
	yamt-lazymbuf-base14:1.1
	keiichi-mipv6-nbase:1.1
	hpcarm-cleanup-base:1.1
	mjf-devfs2:1.1.0.14
	mjf-devfs2-base:1.2
	nick-net80211-sync:1.1.0.12
	nick-net80211-sync-base:1.1
	keiichi-mipv6:1.1.0.10
	keiichi-mipv6-base:1.1
	yamt-lazymbuf:1.1.0.8
	bouyer-xeni386-merge1:1.1.4.2
	matt-armv6-base:1.1
	matt-armv6:1.1.0.6
	bouyer-xeni386-base:1.1
	matt-armv6-nbase:1.1
	bouyer-xeni386:1.1.0.4
	bouyer-xeni386-nbase:1.1
	vmlocking2-base3:1.1
	mjf-devfs:1.1.0.2
	mjf-devfs-base:1.1;
locks; strict;
comment	@# @;


1.9
date	2026.05.05.10.41.10;	author mrg;	state Exp;
branches;
next	1.8;
commitid	CdoxgNSQK8XfMBEG;

1.8
date	2017.04.08.19.53.22;	author christos;	state Exp;
branches;
next	1.7;
commitid	mAo8FJwd588QFLMz;

1.7
date	2014.08.08.16.56.32;	author joerg;	state Exp;
branches
	1.7.4.1
	1.7.8.1
	1.7.12.1;
next	1.6;
commitid	309iK37xEyUb0ALx;

1.6
date	2014.01.12.15.26.30;	author tsutsui;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	YjbnVt32CCoKaQkx;

1.5
date	2013.08.21.06.20.49;	author matt;	state Exp;
branches;
next	1.4;
commitid	Rwwy3D0avCRFNh2x;

1.4
date	2011.01.22.19.19.22;	author joerg;	state Exp;
branches
	1.4.4.1
	1.4.14.1
	1.4.18.1;
next	1.3;

1.3
date	2011.01.21.15.59.09;	author joerg;	state Exp;
branches;
next	1.2;

1.2
date	2009.01.12.07.16.17;	author tsutsui;	state Exp;
branches
	1.2.6.1
	1.2.8.1
	1.2.10.1;
next	1.1;

1.1
date	2007.12.17.19.09.44;	author garbled;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1
	1.1.8.1
	1.1.14.1
	1.1.18.1
	1.1.26.1;
next	;

1.7.4.1
date	2017.08.28.17.51.50;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.7.8.1
date	2017.04.26.02.53.06;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.7.12.1
date	2017.04.21.16.53.35;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.6.2.1
date	2014.08.10.06.54.06;	author tls;	state Exp;
branches;
next	;
commitid	7fY3uHKSIbCABMLx;

1.4.4.1
date	2014.05.22.11.40.05;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.4.14.1
date	2014.08.20.00.03.21;	author tls;	state Exp;
branches;
next	1.4.14.2;
commitid	jTnpym9Qu0o4R1Nx;

1.4.14.2
date	2017.12.03.11.36.39;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.4.18.1
date	2013.08.28.23.59.21;	author rmind;	state Exp;
branches;
next	1.4.18.2;
commitid	cbp9Ov2uYijlqh3x;

1.4.18.2
date	2014.05.18.17.45.23;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.2.6.1
date	2011.03.05.20.51.45;	author rmind;	state Exp;
branches;
next	;

1.2.8.1
date	2011.06.06.09.06.33;	author jruoho;	state Exp;
branches;
next	;

1.2.10.1
date	2011.02.08.16.19.36;	author bouyer;	state Exp;
branches;
next	;

1.1.2.1
date	2007.12.17.19.09.44;	author garbled;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2007.12.17.19.09.45;	author garbled;	state Exp;
branches;
next	;

1.1.4.1
date	2007.12.17.19.09.44;	author bouyer;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2008.01.02.21.50.00;	author bouyer;	state Exp;
branches;
next	;

1.1.6.1
date	2007.12.17.19.09.44;	author matt;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2008.01.09.01.48.27;	author matt;	state Exp;
branches;
next	;

1.1.8.1
date	2007.12.17.19.09.44;	author yamt;	state dead;
branches;
next	1.1.8.2;

1.1.8.2
date	2008.01.21.09.39.00;	author yamt;	state Exp;
branches;
next	;

1.1.14.1
date	2009.01.17.13.28.27;	author mjf;	state Exp;
branches;
next	;

1.1.18.1
date	2009.05.04.08.11.46;	author yamt;	state Exp;
branches;
next	;

1.1.26.1
date	2009.01.19.13.16.38;	author skrll;	state Exp;
branches;
next	;


desc
@@


1.9
log
@fix several builds by making the library order libsa, libz, libkern.
@
text
@#	$NetBSD: Makefile,v 1.8 2017/04/08 19:53:22 christos Exp $

NOMAN= # defined

.include <bsd.own.mk>
.include <bsd.klinks.mk>

COMMON= ${.CURDIR}/../common
COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}

.PATH: ${.CURDIR}/../boot ${COMMONOBJ}

S= ${.CURDIR}/../../../..
L= ${COMMONOBJ}/lib

MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage

BASE?=		boot
PROG=		${BASE}
NEWVERSWHAT=	"BOOT"

SRCS= srt0.s
SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
SRCS+= ns16550.c
SRCS+= iplcb.c

CFLAGS= -Os -ffreestanding
CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
AFLAGS= -x assembler-with-cpp

CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S}
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
CPPFLAGS+= -D__daddr_t=int32_t
#CPPFLAGS+= -DDBMONITOR
CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30

STRIPFLAG=
BINMODE= 444

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBCRTI=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

RELOC= 0x800000
#RELOC= 0x0

LIBS= ${L}/sa/libsa.a ${L}/z/libz.a ${L}/kern/libkern.a

${PROG}: ${OBJS} ${LIBS}
	${_MKTARGET_LINK}
	${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \
		-Ttext ${RELOC} ${OBJS} ${LIBS}

.include "${S}/conf/newvers_stand.mk"

.include <bsd.prog.mk>
@


1.8
log
@centralize vers.c building for standalone programs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2014/08/08 16:56:32 joerg Exp $
d51 1
a51 1
LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
@


1.7
log
@Don't set -mmultiple or -mno-string for PowerPC, the difference is too
small to really matter and it sometimes even increases the size.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2014/01/12 15:26:30 tsutsui Exp $
d25 1
a25 1
SRCS+= ns16550.c vers.c
a50 2
CLEANFILES+= vers.c

a52 4
vers.c: ${.CURDIR}/../boot/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}

d58 2
@


1.7.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2017/04/08 19:53:22 christos Exp $
d25 1
a25 1
SRCS+= ns16550.c
d51 2
d55 4
a63 2
.include "${S}/conf/newvers_stand.mk"

@


1.7.8.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2017/04/08 19:53:22 christos Exp $
d25 1
a25 1
SRCS+= ns16550.c
d51 2
d55 4
a63 2
.include "${S}/conf/newvers_stand.mk"

@


1.7.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2017/04/08 19:53:22 christos Exp $
d25 1
a25 1
SRCS+= ns16550.c
d51 2
d55 4
a63 2
.include "${S}/conf/newvers_stand.mk"

@


1.6
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.5 2013/08/21 06:20:49 matt Exp $
d28 1
a28 1
CFLAGS= -Os -mmultiple -ffreestanding
@


1.6.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2014/08/08 16:56:32 joerg Exp $
d28 1
a28 1
CFLAGS= -Os -ffreestanding
@


1.5
log
@Use <bsd.klinks.mk>
Add a missing ${_MKTARGET_LINK}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/01/22 19:19:22 joerg Exp $
d43 1
@


1.4
log
@Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2011/01/21 15:59:09 joerg Exp $
d6 1
d50 1
a50 1
CLEANFILES+= vers.c machine powerpc
a53 13
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine powerpc
.NOPATH: machine powerpc

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

powerpc::
	-rm -f $@@
	ln -s ${S}/arch/powerpc/include $@@
.endif

d59 1
@


1.4.14.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a5 1
.include <bsd.klinks.mk>
d27 1
a27 1
CFLAGS= -Os -ffreestanding
a41 1
LIBCRTI=
d49 1
a49 1
CLEANFILES+= vers.c
d53 13
a70 1
	${_MKTARGET_LINK}
@


1.4.14.2
log
@update from HEAD
@
text
@d25 1
a25 1
SRCS+= ns16550.c
d51 2
d55 4
a63 2
.include "${S}/conf/newvers_stand.mk"

@


1.4.4.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.4 2011/01/22 19:19:22 joerg Exp $
a5 1
.include <bsd.klinks.mk>
a41 1
LIBCRTI=
d49 1
a49 1
CLEANFILES+= vers.c
d53 13
a70 1
	${_MKTARGET_LINK}
@


1.4.18.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
a5 1
.include <bsd.klinks.mk>
d49 1
a49 1
CLEANFILES+= vers.c
d53 13
a70 1
	${_MKTARGET_LINK}
@


1.4.18.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.18.1 2013/08/28 23:59:21 rmind Exp $
a42 1
LIBCRTI=
@


1.3
log
@Switch remaining platforms to modern CPP for assembler.
@
text
@d1 1
a1 1
#	$NetBSD: src/sys/arch/rs6000/stand/boot/Makefile,v 1.2 2009-01-12 07:16:17 tsutsui Exp $
d67 2
a68 1
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}
@


1.2
log
@- add prototype warning options
- catch up changes for common powerpc/stand/mkbootimage

XXX: daily build for rs6000 should be enabled on releng server?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2007/12/17 19:09:44 garbled Exp $
d29 1
a29 1
AFLAGS= -x assembler-with-cpp -traditional-cpp
@


1.2.8.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/01/22 19:19:22 joerg Exp $
d29 1
a29 1
AFLAGS= -x assembler-with-cpp
d67 1
a67 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}
@


1.2.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d29 1
a29 1
AFLAGS= -x assembler-with-cpp
d67 1
a67 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}
@


1.2.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/01/22 19:19:22 joerg Exp $
d29 1
a29 1
AFLAGS= -x assembler-with-cpp
d67 1
a67 2
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}
@


1.1
log
@Import the rs6000 port into the tree.

This port of NetBSD is intended to run on MCA-based IBM RS/6000
machines.  The port so far has only been tested on a 7006-41T, which is a
601-based RS/6000.  The port also contains a limited set of code for the
7012-3XX machines, but support for those is a long way off still.

The port builds and generates a working kernel, however, it still lacks
bus_dma code for the MCA bus, so at present, only the com ports work,
though any other device (such as the printer/keyboard) located on the
ioplanar could probably be made to work.  Work will continue on this port
as I iron out the DMA code.

This port was made possible by a generous gonation of hardware by Kevin
Bowling, who also provided much of the documentation for the port.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2006/06/27 23:26:13 garbled Exp $
d15 2
d28 1
d31 1
a31 2
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
@


1.1.2.1
log
@file Makefile was added on branch mjf-devfs on 2007-12-17 19:09:45 +0000
@
text
@d1 71
@


1.1.2.2
log
@Import the rs6000 port into the tree.

This port of NetBSD is intended to run on MCA-based IBM RS/6000
machines.  The port so far has only been tested on a 7006-41T, which is a
601-based RS/6000.  The port also contains a limited set of code for the
7012-3XX machines, but support for those is a long way off still.

The port builds and generates a working kernel, however, it still lacks
bus_dma code for the MCA bus, so at present, only the com ports work,
though any other device (such as the printer/keyboard) located on the
ioplanar could probably be made to work.  Work will continue on this port
as I iron out the DMA code.

This port was made possible by a generous gonation of hardware by Kevin
Bowling, who also provided much of the documentation for the port.
@
text
@a0 71
#	$NetBSD: Makefile,v 1.1 2007/12/17 19:09:44 garbled Exp $

NOMAN= # defined

.include <bsd.own.mk>

COMMON= ${.CURDIR}/../common
COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}

.PATH: ${.CURDIR}/../boot ${COMMONOBJ}

S= ${.CURDIR}/../../../..
L= ${COMMONOBJ}/lib

BASE?=		boot
PROG=		${BASE}
NEWVERSWHAT=	"BOOT"

SRCS= srt0.s
SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
SRCS+= ns16550.c vers.c
SRCS+= iplcb.c

CFLAGS= -Os -mmultiple -ffreestanding
AFLAGS= -x assembler-with-cpp -traditional-cpp

CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
CPPFLAGS+= -D__daddr_t=int32_t
#CPPFLAGS+= -DDBMONITOR
CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30

STRIPFLAG=
BINMODE= 444

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

RELOC= 0x800000
#RELOC= 0x0

CLEANFILES+= vers.c machine powerpc

LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine powerpc
.NOPATH: machine powerpc

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

powerpc::
	-rm -f $@@
	ln -s ${S}/arch/powerpc/include $@@
.endif

vers.c: ${.CURDIR}/../boot/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}

${PROG}: ${OBJS} ${LIBS}
	${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \
		-Ttext ${RELOC} ${OBJS} ${LIBS}

.include <bsd.prog.mk>
@


1.1.18.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2007/12/17 19:09:44 garbled Exp $
a14 2
MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage

a25 1
CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
d28 2
a29 1
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S}
@


1.1.26.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2009/01/12 07:16:17 tsutsui Exp $
a14 2
MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage

a25 1
CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
d28 2
a29 1
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S}
@


1.1.14.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
a14 2
MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage

a25 1
CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
d28 2
a29 1
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S}
@


1.1.8.1
log
@file Makefile was added on branch yamt-lazymbuf on 2008-01-21 09:39:00 +0000
@
text
@d1 71
@


1.1.8.2
log
@sync with head
@
text
@a0 71
#	$NetBSD$

NOMAN= # defined

.include <bsd.own.mk>

COMMON= ${.CURDIR}/../common
COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}

.PATH: ${.CURDIR}/../boot ${COMMONOBJ}

S= ${.CURDIR}/../../../..
L= ${COMMONOBJ}/lib

BASE?=		boot
PROG=		${BASE}
NEWVERSWHAT=	"BOOT"

SRCS= srt0.s
SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
SRCS+= ns16550.c vers.c
SRCS+= iplcb.c

CFLAGS= -Os -mmultiple -ffreestanding
AFLAGS= -x assembler-with-cpp -traditional-cpp

CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
CPPFLAGS+= -D__daddr_t=int32_t
#CPPFLAGS+= -DDBMONITOR
CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30

STRIPFLAG=
BINMODE= 444

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

RELOC= 0x800000
#RELOC= 0x0

CLEANFILES+= vers.c machine powerpc

LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine powerpc
.NOPATH: machine powerpc

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

powerpc::
	-rm -f $@@
	ln -s ${S}/arch/powerpc/include $@@
.endif

vers.c: ${.CURDIR}/../boot/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}

${PROG}: ${OBJS} ${LIBS}
	${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \
		-Ttext ${RELOC} ${OBJS} ${LIBS}

.include <bsd.prog.mk>
@


1.1.6.1
log
@file Makefile was added on branch matt-armv6 on 2008-01-09 01:48:27 +0000
@
text
@d1 71
@


1.1.6.2
log
@sync with HEAD
@
text
@a0 71
#	$NetBSD$

NOMAN= # defined

.include <bsd.own.mk>

COMMON= ${.CURDIR}/../common
COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}

.PATH: ${.CURDIR}/../boot ${COMMONOBJ}

S= ${.CURDIR}/../../../..
L= ${COMMONOBJ}/lib

BASE?=		boot
PROG=		${BASE}
NEWVERSWHAT=	"BOOT"

SRCS= srt0.s
SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
SRCS+= ns16550.c vers.c
SRCS+= iplcb.c

CFLAGS= -Os -mmultiple -ffreestanding
AFLAGS= -x assembler-with-cpp -traditional-cpp

CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
CPPFLAGS+= -D__daddr_t=int32_t
#CPPFLAGS+= -DDBMONITOR
CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30

STRIPFLAG=
BINMODE= 444

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

RELOC= 0x800000
#RELOC= 0x0

CLEANFILES+= vers.c machine powerpc

LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine powerpc
.NOPATH: machine powerpc

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

powerpc::
	-rm -f $@@
	ln -s ${S}/arch/powerpc/include $@@
.endif

vers.c: ${.CURDIR}/../boot/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}

${PROG}: ${OBJS} ${LIBS}
	${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \
		-Ttext ${RELOC} ${OBJS} ${LIBS}

.include <bsd.prog.mk>
@


1.1.4.1
log
@file Makefile was added on branch bouyer-xeni386 on 2008-01-02 21:50:00 +0000
@
text
@d1 71
@


1.1.4.2
log
@Sync with HEAD
@
text
@a0 71
#	$NetBSD$

NOMAN= # defined

.include <bsd.own.mk>

COMMON= ${.CURDIR}/../common
COMMONOBJ!=	cd ${COMMON} && ${PRINTOBJDIR}

.PATH: ${.CURDIR}/../boot ${COMMONOBJ}

S= ${.CURDIR}/../../../..
L= ${COMMONOBJ}/lib

BASE?=		boot
PROG=		${BASE}
NEWVERSWHAT=	"BOOT"

SRCS= srt0.s
SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c
SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
SRCS+= ns16550.c vers.c
SRCS+= iplcb.c

CFLAGS= -Os -mmultiple -ffreestanding
AFLAGS= -x assembler-with-cpp -traditional-cpp

CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN
CPPFLAGS+= -D__daddr_t=int32_t
#CPPFLAGS+= -DDBMONITOR
CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30

STRIPFLAG=
BINMODE= 444

# XXX SHOULD NOT NEED TO DEFINE THESE!
LIBCRT0=
LIBC=
LIBCRTBEGIN=
LIBCRTEND=

RELOC= 0x800000
#RELOC= 0x0

CLEANFILES+= vers.c machine powerpc

LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine powerpc
.NOPATH: machine powerpc

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

powerpc::
	-rm -f $@@
	ln -s ${S}/arch/powerpc/include $@@
.endif

vers.c: ${.CURDIR}/../boot/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT}

${PROG}: ${OBJS} ${LIBS}
	${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \
		-Ttext ${RELOC} ${OBJS} ${LIBS}

.include <bsd.prog.mk>
@


