head	1.13;
access;
symbols
	perseant-exfatfs-base-20250801:1.13
	perseant-exfatfs-base-20240630:1.13
	perseant-exfatfs:1.13.0.40
	perseant-exfatfs-base:1.13
	bouyer-sunxi-drm:1.13.0.38
	bouyer-sunxi-drm-base:1.13
	cjep_sun2x:1.13.0.36
	cjep_sun2x-base:1.13
	cjep_staticlib_x-base1:1.13
	cjep_staticlib_x:1.13.0.34
	cjep_staticlib_x-base:1.13
	thorpej-futex-base:1.13
	bouyer-xenpvh-base2:1.13
	phil-wifi-20200421:1.13
	bouyer-xenpvh-base1:1.13
	phil-wifi-20200411:1.13
	bouyer-xenpvh:1.13.0.32
	bouyer-xenpvh-base:1.13
	phil-wifi-20200406:1.13
	ad-namecache-base3:1.13
	ad-namecache-base2:1.13
	ad-namecache-base1:1.13
	ad-namecache:1.13.0.30
	ad-namecache-base:1.13
	isaki-audio2:1.13.0.28
	isaki-audio2-base:1.13
	pgoyette-compat-merge-20190127:1.13
	pgoyette-compat-20190127:1.13
	pgoyette-compat-20190118:1.13
	pgoyette-compat-1226:1.13
	pgoyette-compat-1126:1.13
	pgoyette-compat-1020:1.13
	pgoyette-compat-0930:1.13
	pgoyette-compat-0906:1.13
	pgoyette-compat-0728:1.13
	pgoyette-compat-0625:1.13
	pgoyette-compat-0521:1.13
	pgoyette-compat-0502:1.13
	pgoyette-compat-0422:1.13
	pgoyette-compat-0415:1.13
	pgoyette-compat-0407:1.13
	pgoyette-compat-0330:1.13
	pgoyette-compat-0322:1.13
	pgoyette-compat-0315:1.13
	pgoyette-compat:1.13.0.26
	pgoyette-compat-base:1.13
	perseant-stdc-iso10646:1.13.0.24
	perseant-stdc-iso10646-base:1.13
	prg-localcount2-base3:1.13
	prg-localcount2-base2:1.13
	prg-localcount2-base1:1.13
	prg-localcount2:1.13.0.22
	prg-localcount2-base:1.13
	pgoyette-localcount-20170426:1.13
	bouyer-socketcan-base1:1.13
	pgoyette-localcount-20170320:1.13
	bouyer-socketcan:1.13.0.20
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	pgoyette-localcount-20161104:1.13
	localcount-20160914:1.13
	pgoyette-localcount-20160806:1.13
	pgoyette-localcount-20160726:1.13
	pgoyette-localcount:1.13.0.18
	pgoyette-localcount-base:1.13
	netbsd-5-2-3-RELEASE:1.11
	netbsd-5-1-5-RELEASE:1.11
	yamt-pagecache-base9:1.13
	yamt-pagecache-tag8:1.13
	tls-earlyentropy:1.13.0.16
	tls-earlyentropy-base:1.13
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13
	riastradh-drm2-base3:1.13
	netbsd-5-2-2-RELEASE:1.11
	netbsd-5-1-4-RELEASE:1.11
	netbsd-5-2-1-RELEASE:1.11
	netbsd-5-1-3-RELEASE:1.11
	rmind-smpnet-nbase:1.13
	rmind-smpnet:1.13.0.12
	rmind-smpnet-base:1.13
	agc-symver:1.13.0.14
	agc-symver-base:1.13
	tls-maxphys-base:1.13
	yamt-pagecache-base8:1.13
	netbsd-5-2:1.11.0.18
	yamt-pagecache-base7:1.13
	netbsd-5-2-RELEASE:1.11
	netbsd-5-2-RC1:1.11
	yamt-pagecache-base6:1.13
	yamt-pagecache-base5:1.13
	yamt-pagecache-base4:1.13
	netbsd-5-1-2-RELEASE:1.11
	netbsd-5-1-1-RELEASE:1.11
	jmcneill-usbmp:1.13.0.10
	jmcneill-usbmp-base:1.13
	jmcneill-audiomp3:1.13.0.8
	jmcneill-audiomp3-base:1.13
	yamt-pagecache-base3:1.13
	yamt-pagecache-base2:1.13
	yamt-pagecache:1.13.0.6
	yamt-pagecache-base:1.13
	rmind-uvmplock-nbase:1.13
	jym-xensuspend-nbase:1.13
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.4
	bouyer-quota2-base:1.13
	jruoho-x86intr:1.13.0.2
	jruoho-x86intr-base:1.13
	matt-nb5-mips64-premerge-20101231:1.11
	matt-nb5-pq3:1.11.0.16
	matt-nb5-pq3-base:1.11
	netbsd-5-1:1.11.0.14
	uebayasi-xip-base6:1.12
	uebayasi-xip-base5:1.12
	netbsd-5-1-RELEASE:1.11
	uebayasi-xip-base4:1.12
	uebayasi-xip-base3:1.12
	yamt-nfs-mp-base11:1.12
	netbsd-5-1-RC4:1.11
	matt-nb5-mips64-k15:1.11
	uebayasi-xip-base2:1.12
	yamt-nfs-mp-base10:1.12
	netbsd-5-1-RC3:1.11
	netbsd-5-1-RC2:1.11
	uebayasi-xip-base1:1.12
	netbsd-5-1-RC1:1.11
	rmind-uvmplock:1.12.0.4
	rmind-uvmplock-base:1.13
	yamt-nfs-mp-base9:1.12
	uebayasi-xip:1.12.0.2
	uebayasi-xip-base:1.12
	netbsd-5-0-2-RELEASE:1.11
	matt-nb5-mips64-premerge-20091211:1.11
	matt-premerge-20091211:1.12
	yamt-nfs-mp-base8:1.12
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.11
	matt-nb4-mips64-k7-u2a-k9b:1.11
	matt-nb5-mips64-u1-k1-k5:1.11
	yamt-nfs-mp-base7:1.12
	matt-nb5-mips64:1.11.0.12
	netbsd-5-0-1-RELEASE:1.11
	jymxensuspend-base:1.12
	yamt-nfs-mp-base6:1.12
	yamt-nfs-mp-base5:1.12
	yamt-nfs-mp-base4:1.12
	yamt-nfs-mp-base3:1.12
	nick-hppapmap-base4:1.12
	nick-hppapmap-base3:1.12
	netbsd-5-0:1.11.0.10
	netbsd-5-0-RELEASE:1.11
	netbsd-5-0-RC4:1.11
	netbsd-5-0-RC3:1.11
	nick-hppapmap-base2:1.12
	netbsd-5-0-RC2:1.11
	jym-xensuspend:1.11.0.8
	jym-xensuspend-base:1.13
	netbsd-5-0-RC1:1.11
	haad-dm-base2:1.11
	haad-nbase2:1.11
	ad-audiomp2:1.11.0.6
	ad-audiomp2-base:1.11
	netbsd-5:1.11.0.4
	netbsd-5-base:1.11
	nick-hppapmap:1.11.0.2
	nick-hppapmap-base:1.12
	matt-mips64-base2:1.10
	haad-dm-base1:1.10
	wrstuden-revivesa-base-4:1.10
	netbsd-4-0-1-RELEASE:1.10
	wrstuden-revivesa-base-3:1.10
	wrstuden-revivesa-base-2:1.10
	wrstuden-fixsa-newbase:1.10
	nick-csl-alignment-base5:1.10
	haad-dm:1.10.0.62
	haad-dm-base:1.11
	wrstuden-revivesa-base-1:1.10
	simonb-wapbl-nbase:1.10
	yamt-pf42-base4:1.10
	simonb-wapbl:1.10.0.60
	simonb-wapbl-base:1.10
	yamt-pf42-base3:1.10
	hpcarm-cleanup-nbase:1.10
	yamt-pf42-baseX:1.10
	yamt-pf42-base2:1.10
	yamt-nfs-mp-base2:1.10
	wrstuden-revivesa:1.10.0.58
	wrstuden-revivesa-base:1.10
	yamt-nfs-mp:1.10.0.56
	yamt-nfs-mp-base:1.10
	yamt-pf42:1.10.0.54
	yamt-pf42-base:1.10
	ad-socklock-base1:1.10
	yamt-lazymbuf-base15:1.10
	yamt-lazymbuf-base14:1.10
	keiichi-mipv6-nbase:1.10
	mjf-devfs2:1.10.0.52
	mjf-devfs2-base:1.11
	nick-net80211-sync:1.10.0.50
	nick-net80211-sync-base:1.10
	keiichi-mipv6:1.10.0.48
	keiichi-mipv6-base:1.10
	bouyer-xeni386-merge1:1.10
	matt-armv6-prevmlocking:1.10
	wrstuden-fixsa-base-1:1.10
	vmlocking2-base3:1.10
	netbsd-4-0:1.10.0.46
	netbsd-4-0-RELEASE:1.10
	bouyer-xeni386-nbase:1.10
	yamt-kmem-base3:1.10
	cube-autoconf:1.10.0.44
	cube-autoconf-base:1.10
	yamt-kmem-base2:1.10
	bouyer-xeni386:1.10.0.42
	bouyer-xeni386-base:1.10
	yamt-kmem:1.10.0.40
	yamt-kmem-base:1.10
	vmlocking2-base2:1.10
	reinoud-bufcleanup-nbase:1.10
	vmlocking2:1.10.0.38
	vmlocking2-base1:1.10
	netbsd-4-0-RC5:1.10
	matt-nb4-arm:1.10.0.36
	matt-nb4-arm-base:1.10
	matt-armv6-nbase:1.10
	jmcneill-base:1.10
	netbsd-4-0-RC4:1.10
	mjf-devfs:1.10.0.34
	mjf-devfs-base:1.10
	bouyer-xenamd64-base2:1.10
	vmlocking-nbase:1.10
	yamt-x86pmap-base4:1.10
	bouyer-xenamd64:1.10.0.32
	bouyer-xenamd64-base:1.10
	netbsd-4-0-RC3:1.10
	yamt-x86pmap-base3:1.10
	yamt-x86pmap-base2:1.10
	netbsd-4-0-RC2:1.10
	yamt-x86pmap:1.10.0.30
	yamt-x86pmap-base:1.10
	netbsd-4-0-RC1:1.10
	matt-armv6:1.10.0.28
	matt-armv6-base:1.10
	jmcneill-pm:1.10.0.26
	jmcneill-pm-base:1.10
	hpcarm-cleanup:1.10.0.24
	hpcarm-cleanup-base:1.10
	nick-csl-alignment:1.10.0.22
	nick-csl-alignment-base:1.10
	matt-mips64:1.10.0.20
	matt-mips64-base:1.10
	yamt-idlelwp-base8:1.10
	wrstuden-fixsa:1.10.0.18
	wrstuden-fixsa-base:1.10
	ppcoea-renovation:1.10.0.16
	ppcoea-renovation-base:1.10
	thorpej-atomic:1.10.0.14
	thorpej-atomic-base:1.10
	reinoud-bufcleanup:1.10.0.12
	reinoud-bufcleanup-base:1.10
	mjf-ufs-trans:1.10.0.10
	mjf-ufs-trans-base:1.10
	vmlocking:1.10.0.8
	vmlocking-base:1.10
	ad-audiomp:1.10.0.6
	ad-audiomp-base:1.10
	yamt-idlelwp:1.10.0.4
	post-newlock2-merge:1.10
	newlock2-nbase:1.10
	yamt-splraiseipl-base5:1.10
	yamt-splraiseipl-base4:1.10
	yamt-splraiseipl-base3:1.10
	abandoned-netbsd-4-base:1.8
	abandoned-netbsd-4:1.8.0.2
	yamt-splraiseipl-base2:1.10
	yamt-splraiseipl:1.8.0.6
	yamt-splraiseipl-base:1.8
	yamt-pdpolicy-base9:1.8
	newlock2:1.8.0.4
	newlock2-base:1.10
	yamt-pdpolicy-base8:1.8
	yamt-pdpolicy-base7:1.8
	netbsd-4:1.10.0.2
	netbsd-4-base:1.10
	yamt-pdpolicy-base6:1.6
	yamt-lazymbuf:1.5.0.6
	chap-midi-nbase:1.5
	gdamore-uart:1.5.0.4
	gdamore-uart-base:1.5
	simonb-timcounters-final:1.3.8.1
	yamt-pdpolicy-base5:1.5
	chap-midi:1.5.0.2
	chap-midi-base:1.5
	yamt-pdpolicy-base4:1.3
	yamt-pdpolicy-base3:1.3
	peter-altq-base:1.3
	peter-altq:1.3.0.14
	yamt-pdpolicy-base2:1.3
	elad-kernelauth-base:1.3
	elad-kernelauth:1.3.0.12
	yamt-pdpolicy:1.3.0.10
	yamt-pdpolicy-base:1.3
	yamt-uio_vmspace-base5:1.3
	simonb-timecounters:1.3.0.8
	simonb-timecounters-base:1.5
	rpaulo-netinet-merge-pcb:1.3.0.6
	rpaulo-netinet-merge-pcb-base:1.8
	yamt-uio_vmspace:1.3.0.4
	yamt-readahead-base3:1.3
	yamt-readahead-base2:1.3
	yamt-readahead-pervnode:1.3
	yamt-readahead-perfile:1.3
	yamt-readahead:1.3.0.2
	yamt-readahead-base:1.3
	ktrace-lwp-base:1.3
	ktrace-lwp:1.2.0.6
	yamt-vop-base3:1.2
	yamt-vop-base2:1.2
	thorpej-vnode-attr:1.2.0.4
	thorpej-vnode-attr-base:1.2
	yamt-vop:1.2.0.2
	yamt-vop-base:1.2;
locks; strict;
comment	@# @;


1.13
date	2010.12.29.17.44.03;	author jakllsch;	state dead;
branches;
next	1.12;

1.12
date	2009.02.14.13.52.51;	author abs;	state Exp;
branches
	1.12.4.1;
next	1.11;

1.11
date	2008.10.25.22.27.37;	author apb;	state Exp;
branches
	1.11.2.1
	1.11.8.1;
next	1.10;

1.10
date	2006.10.09.11.25.03;	author dsl;	state Exp;
branches
	1.10.52.1
	1.10.56.1
	1.10.62.1;
next	1.9;

1.9
date	2006.10.09.00.00.34;	author martin;	state Exp;
branches;
next	1.8;

1.8
date	2006.06.29.06.39.38;	author lukem;	state Exp;
branches
	1.8.4.1
	1.8.6.1;
next	1.7;

1.7
date	2006.06.29.06.37.19;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	2006.06.25.14.35.18;	author lukem;	state Exp;
branches;
next	1.5;

1.5
date	2006.05.13.04.12.33;	author lukem;	state Exp;
branches
	1.5.4.1
	1.5.6.1;
next	1.4;

1.4
date	2006.05.13.04.11.04;	author lukem;	state Exp;
branches;
next	1.3;

1.3
date	2005.11.12.04.34.54;	author simonb;	state Exp;
branches
	1.3.6.1
	1.3.8.1
	1.3.10.1
	1.3.14.1;
next	1.2;

1.2
date	2005.10.12.15.27.39;	author tron;	state Exp;
branches
	1.2.6.1;
next	1.1;

1.1
date	2005.10.06.08.22.58;	author dyoung;	state Exp;
branches;
next	;

1.12.4.1
date	2011.03.05.20.50.44;	author rmind;	state dead;
branches;
next	;

1.11.2.1
date	2009.03.03.18.29.00;	author skrll;	state Exp;
branches;
next	;

1.11.8.1
date	2009.05.13.17.17.51;	author jym;	state Exp;
branches;
next	1.11.8.2;

1.11.8.2
date	2009.11.01.13.58.36;	author jym;	state Exp;
branches;
next	1.11.8.3;

1.11.8.3
date	2011.01.10.00.37.32;	author jym;	state dead;
branches;
next	;

1.10.52.1
date	2009.01.17.13.28.04;	author mjf;	state Exp;
branches;
next	;

1.10.56.1
date	2009.05.04.08.11.18;	author yamt;	state Exp;
branches;
next	;

1.10.62.1
date	2008.12.13.01.13.14;	author haad;	state Exp;
branches;
next	;

1.8.4.1
date	2006.11.18.21.29.20;	author ad;	state Exp;
branches;
next	;

1.8.6.1
date	2006.10.22.06.04.49;	author yamt;	state Exp;
branches;
next	;

1.5.4.1
date	2006.07.13.17.48.54;	author gdamore;	state Exp;
branches;
next	;

1.5.6.1
date	2006.05.13.04.12.33;	author yamt;	state dead;
branches;
next	1.5.6.2;

1.5.6.2
date	2006.06.21.14.52.44;	author yamt;	state Exp;
branches;
next	1.5.6.3;

1.5.6.3
date	2006.12.30.20.46.19;	author yamt;	state Exp;
branches;
next	;

1.3.6.1
date	2006.09.09.02.40.22;	author rpaulo;	state Exp;
branches;
next	;

1.3.8.1
date	2006.06.01.22.34.53;	author kardel;	state Exp;
branches;
next	;

1.3.10.1
date	2006.05.24.10.56.52;	author yamt;	state Exp;
branches;
next	1.3.10.2;

1.3.10.2
date	2006.06.26.12.44.53;	author yamt;	state Exp;
branches;
next	1.3.10.3;

1.3.10.3
date	2006.08.11.15.42.00;	author yamt;	state Exp;
branches;
next	;

1.3.14.1
date	2006.05.24.15.47.58;	author tron;	state Exp;
branches;
next	;

1.2.6.1
date	2005.10.12.15.27.39;	author skrll;	state dead;
branches;
next	1.2.6.2;

1.2.6.2
date	2005.11.10.13.56.53;	author skrll;	state Exp;
branches;
next	1.2.6.3;

1.2.6.3
date	2005.12.11.10.28.19;	author christos;	state Exp;
branches;
next	;


desc
@@


1.13
log
@bootxx_cd9660 (cdboot), like bootxx_fat16 (fatboot), is not a traditional
libsa-based program.  As such, build bootxx_cd9660 where its source lives.
This has been done by moving bootxx/bootxx_cd9660/Makefile to cdboot/Makefile
and adjusting the relative paths appropriately, so as to minimize binary change.
@
text
@#	$NetBSD: Makefile,v 1.12 2009/02/14 13:52:51 abs Exp $

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

NOMAN=		# defined
.include <bsd.own.mk>

STRIPFLAG=	# nothing

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

PRIMARY_LOAD_ADDRESS=	0x600
SECONDARY_LOAD_ADDRESS=	0x10000

PROG=		bootxx_cd9660
SRCS?=		cdboot.S

BINDIR=		/usr/mdec
BINMODE=	444

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

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DDISABLE_KEYPRESS

.if ${MACHINE_ARCH} == "x86_64"
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
.endif

BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86

DPSRCS+=	machine x86

CLEANFILES+=	${PROG}.tmp

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
	    ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
		| ${TOOL_SED} 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.12
log
@Convert more MACHINE tests to MACHINE_ARCH
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/10/25 22:27:37 apb Exp $
@


1.12.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/02/14 13:52:51 abs Exp $
@


1.11
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2006/10/09 11:25:03 dsl Exp $
d32 1
a32 1
.if ${MACHINE} == "amd64"
@


1.11.8.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/02/14 13:52:51 abs Exp $
d32 1
a32 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.11.8.2
log
@Sync with HEAD.
@
text
@@


1.11.8.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11.8.2 2009/11/01 13:58:36 jym Exp $
@


1.11.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/02/14 13:52:51 abs Exp $
d32 1
a32 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.10
log
@Put NOMAN= back before the include of bsd.own.mk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2006/10/09 00:00:34 martin Exp $
d49 1
a49 1
		| sed 's/^0*//'  ); \
@


1.10.56.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2006/10/09 11:25:03 dsl Exp $
d32 1
a32 1
.if ${MACHINE_ARCH} == "x86_64"
d49 1
a49 1
		| ${TOOL_SED} 's/^0*//'  ); \
@


1.10.52.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d49 1
a49 1
		| ${TOOL_SED} 's/^0*//'  ); \
@


1.10.62.1
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2008/10/25 22:27:37 apb Exp $
d49 1
a49 1
		| ${TOOL_SED} 's/^0*//'  ); \
@


1.9
log
@Fix PR port-i386/33550 by Scott Ellis as suggested:
make sure the overrides to STRIPFLAGS etc. persist by including
bsd.own.mk earlier.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/06/29 06:39:38 lukem Exp $
d5 1
a7 1
NOMAN=		# defined
@


1.8
log
@whitespace cleanup
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2006/06/29 06:37:19 lukem Exp $
d5 2
a17 2
.include <bsd.own.mk>

@


1.8.4.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2006/10/09 11:25:03 dsl Exp $
a5 2
.include <bsd.own.mk>

d16 2
@


1.8.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/06/29 06:39:38 lukem Exp $
a5 2
.include <bsd.own.mk>

d16 2
@


1.7
log
@Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2006/06/25 14:35:18 lukem Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../..
d13 2
a14 2
PRIMARY_LOAD_ADDRESS=0x600
SECONDARY_LOAD_ADDRESS=0x10000
d18 2
a19 2
PROG=	bootxx_cd9660
SRCS?=	cdboot.S
d21 2
a22 2
BINDIR=	/usr/mdec
BINMODE=444
d24 1
a24 1
.PATH:	${.CURDIR}/../.. ${.CURDIR}/../../cdboot
d26 5
a30 5
LDFLAGS+= -nostdlib -Wl,-e,start
CPPFLAGS+= -I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+= -DDISABLE_KEYPRESS
d33 2
a34 2
LDFLAGS+=  -Wl,-m,elf_i386
AFLAGS+=   -m32
d42 1
a42 1
CLEANFILES+= ${PROG}.tmp
d46 4
a49 2
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' | sed 's/^0*//'  ); \
@


1.6
log
@Use  -Wl,-Ttext,foo  instead of  -Ttext foo  when using $(CC)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2006/05/13 04:12:33 lukem Exp $
d37 2
a38 17
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: machine x86
.NOPATH: machine x86
.endif

dependall: depend all

realdepend realall: machine x86
CLEANFILES+= machine x86

machine::
	-rm -f $@@
	ln -s $S/arch/i386/include $@@

x86::
	-rm -f $@@
	ln -s $S/arch/x86/include $@@
d40 1
a40 1
${OBJS}: machine x86
@


1.5
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2006/05/13 04:11:04 lukem Exp $
d61 1
a61 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
@


1.5.6.1
log
@file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
@
text
@d1 67
@


1.5.6.2
log
@sync with head.
@
text
@a0 67
#	$NetBSD: Makefile,v 1.5.6.1 2006/06/21 14:52:44 yamt Exp $

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

NOMAN=		# defined
STRIPFLAG=	# nothing

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

PRIMARY_LOAD_ADDRESS=0x600
SECONDARY_LOAD_ADDRESS=0x10000

.include <bsd.own.mk>

PROG=	bootxx_cd9660
SRCS?=	cdboot.S

BINDIR=	/usr/mdec
BINMODE=444

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

LDFLAGS+= -nostdlib -Wl,-e,start
CPPFLAGS+= -I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+= -DDISABLE_KEYPRESS

.if ${MACHINE} == "amd64"
LDFLAGS+=  -Wl,-m,elf_i386
AFLAGS+=   -m32
.endif

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

dependall: depend all

realdepend realall: machine x86
CLEANFILES+= machine x86

machine::
	-rm -f $@@
	ln -s $S/arch/i386/include $@@

x86::
	-rm -f $@@
	ln -s $S/arch/x86/include $@@

${OBJS}: machine x86

CLEANFILES+= ${PROG}.tmp

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' | sed 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.5.6.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5.6.2 2006/12/30 20:46:19 yamt Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
a5 2
.include <bsd.own.mk>

d13 7
a19 2
PRIMARY_LOAD_ADDRESS=	0x600
SECONDARY_LOAD_ADDRESS=	0x10000
d21 2
a22 2
PROG=		bootxx_cd9660
SRCS?=		cdboot.S
d24 1
a24 2
BINDIR=		/usr/mdec
BINMODE=	444
d26 5
a30 7
.PATH:		${.CURDIR}/../.. ${.CURDIR}/../../cdboot

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DDISABLE_KEYPRESS
d33 2
a34 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d37 17
a53 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d55 1
a55 1
DPSRCS+=	machine x86
d57 1
a57 1
CLEANFILES+=	${PROG}.tmp
d61 2
a62 4
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
	    ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
		| sed 's/^0*//'  ); \
@


1.5.4.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/06/29 06:39:38 lukem Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d13 2
a14 2
PRIMARY_LOAD_ADDRESS=	0x600
SECONDARY_LOAD_ADDRESS=	0x10000
d18 2
a19 2
PROG=		bootxx_cd9660
SRCS?=		cdboot.S
d21 2
a22 2
BINDIR=		/usr/mdec
BINMODE=	444
d24 1
a24 1
.PATH:		${.CURDIR}/../.. ${.CURDIR}/../../cdboot
d26 5
a30 5
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DDISABLE_KEYPRESS
d33 2
a34 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d37 17
a53 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d55 1
a55 1
DPSRCS+=	machine x86
d57 1
a57 1
CLEANFILES+=	${PROG}.tmp
d61 2
a62 4
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
	    ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
		| sed 's/^0*//'  ); \
@


1.4
log
@Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2005/11/12 04:34:54 simonb Exp $
d60 1
@


1.3
log
@Adjust the S variable (pointer to top of sys tree) so that it points to
the right place.  Fixes build problems in this directory if there's no
destdir available.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2005/10/12 15:27:39 tron Exp $
d26 1
a26 1
LDFLAGS+= -e start
d33 1
a33 1
LDFLAGS+=  -m elf_i386
d60 1
a60 1
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
@


1.3.6.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2006/06/29 06:39:38 lukem Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d13 2
a14 2
PRIMARY_LOAD_ADDRESS=	0x600
SECONDARY_LOAD_ADDRESS=	0x10000
d18 2
a19 2
PROG=		bootxx_cd9660
SRCS?=		cdboot.S
d21 2
a22 2
BINDIR=		/usr/mdec
BINMODE=	444
d24 1
a24 1
.PATH:		${.CURDIR}/../.. ${.CURDIR}/../../cdboot
d26 5
a30 5
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DDISABLE_KEYPRESS
d33 2
a34 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d37 17
a53 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d55 1
a55 1
DPSRCS+=	machine x86
d57 1
a57 1
CLEANFILES+=	${PROG}.tmp
d60 2
a61 5
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
	    ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
		| sed 's/^0*//'  ); \
@


1.3.8.1
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2005/11/12 04:34:54 simonb Exp $
d26 1
a26 1
LDFLAGS+= -nostdlib -Wl,-e,start
d33 1
a33 1
LDFLAGS+=  -Wl,-m,elf_i386
d60 1
a60 2
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
@


1.3.14.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d1 1
a1 1
#	$NetBSD$
d26 1
a26 1
LDFLAGS+= -nostdlib -Wl,-e,start
d33 1
a33 1
LDFLAGS+=  -Wl,-m,elf_i386
d60 1
a60 2
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
@


1.3.10.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2005/11/12 04:34:54 simonb Exp $
d26 1
a26 1
LDFLAGS+= -nostdlib -Wl,-e,start
d33 1
a33 1
LDFLAGS+=  -Wl,-m,elf_i386
d60 1
a60 2
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
@


1.3.10.2
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.10.1 2006/05/24 10:56:52 yamt Exp $
d61 1
a61 1
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} ${OBJS}
@


1.3.10.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.10.2 2006/06/26 12:44:53 yamt Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d13 2
a14 2
PRIMARY_LOAD_ADDRESS=	0x600
SECONDARY_LOAD_ADDRESS=	0x10000
d18 2
a19 2
PROG=		bootxx_cd9660
SRCS?=		cdboot.S
d21 2
a22 2
BINDIR=		/usr/mdec
BINMODE=	444
d24 1
a24 1
.PATH:		${.CURDIR}/../.. ${.CURDIR}/../../cdboot
d26 5
a30 5
LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+=	-DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+=	-DDISABLE_KEYPRESS
d33 2
a34 2
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
d37 17
a53 2
BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86
d55 1
a55 1
DPSRCS+=	machine x86
d57 1
a57 1
CLEANFILES+=	${PROG}.tmp
d61 2
a62 4
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
	    ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
		| sed 's/^0*//'  ); \
@


1.2
log
@Make build of ISO9660 boot loader work if no object directories are used.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2005/10/06 08:22:58 dyoung Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../../../
@


1.2.6.1
log
@file Makefile was added on branch ktrace-lwp on 2005-11-10 13:56:53 +0000
@
text
@d1 66
@


1.2.6.2
log
@Sync with HEAD. Here we go again...
@
text
@a0 66
#	$NetBSD: Makefile,v 1.2.6.1 2005/11/10 13:56:53 skrll Exp $

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

NOMAN=		# defined
STRIPFLAG=	# nothing

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

PRIMARY_LOAD_ADDRESS=0x600
SECONDARY_LOAD_ADDRESS=0x10000

.include <bsd.own.mk>

PROG=	bootxx_cd9660
SRCS?=	cdboot.S

BINDIR=	/usr/mdec
BINMODE=444

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

LDFLAGS+= -e start
CPPFLAGS+= -I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+= -DDISABLE_KEYPRESS

.if ${MACHINE} == "amd64"
LDFLAGS+=  -m elf_i386
AFLAGS+=   -m32
.endif

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

dependall: depend all

realdepend realall: machine x86
CLEANFILES+= machine x86

machine::
	-rm -f $@@
	ln -s $S/arch/i386/include $@@

x86::
	-rm -f $@@
	ln -s $S/arch/x86/include $@@

${OBJS}: machine x86

CLEANFILES+= ${PROG}.tmp

${PROG}: ${OBJS}
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' | sed 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.2.6.3
log
@Sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.6.2 2005/12/11 10:28:19 christos Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../..
@


1.1
log
@Build and install /usr/mdec/bootxx_cd9660, a primary boot loader
for ISO9660 filesystems.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2005/07/20 03:27:51 junyoung Exp $
d42 2
@
