head	1.13;
access;
symbols
	perseant-exfatfs-base-20250801:1.13
	perseant-exfatfs-base-20240630:1.13
	perseant-exfatfs:1.13.0.48
	perseant-exfatfs-base:1.13
	cjep_sun2x:1.13.0.46
	cjep_sun2x-base:1.13
	cjep_staticlib_x-base1:1.13
	cjep_staticlib_x:1.13.0.44
	cjep_staticlib_x-base:1.13
	phil-wifi-20200421:1.13
	phil-wifi-20200411:1.13
	phil-wifi-20200406: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.42
	pgoyette-compat-base:1.13
	perseant-stdc-iso10646:1.13.0.40
	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.38
	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.36
	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.34
	pgoyette-localcount-base:1.13
	netbsd-5-2-3-RELEASE:1.13
	netbsd-5-1-5-RELEASE:1.13
	yamt-pagecache-base9:1.13
	yamt-pagecache-tag8:1.13
	tls-earlyentropy:1.13.0.30
	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.13
	netbsd-5-1-4-RELEASE:1.13
	netbsd-5-2-1-RELEASE:1.13
	netbsd-5-1-3-RELEASE:1.13
	agc-symver:1.13.0.32
	agc-symver-base:1.13
	tls-maxphys-base:1.13
	yamt-pagecache-base8:1.13
	netbsd-5-2:1.13.0.28
	yamt-pagecache-base7:1.13
	netbsd-5-2-RELEASE:1.13
	netbsd-5-2-RC1:1.13
	yamt-pagecache-base6:1.13
	yamt-pagecache-base5:1.13
	yamt-pagecache-base4:1.13
	netbsd-5-1-2-RELEASE:1.13
	netbsd-5-1-1-RELEASE:1.13
	yamt-pagecache-base3:1.13
	yamt-pagecache-base2:1.13
	yamt-pagecache:1.13.0.26
	yamt-pagecache-base:1.13
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.24
	bouyer-quota2-base:1.13
	matt-nb5-pq3:1.13.0.22
	matt-nb5-pq3-base:1.13
	netbsd-5-1:1.13.0.20
	netbsd-5-1-RELEASE:1.13
	netbsd-5-1-RC4:1.13
	netbsd-5-1-RC3:1.13
	netbsd-5-1-RC2:1.13
	netbsd-5-1-RC1:1.13
	netbsd-5-0-2-RELEASE:1.13
	netbsd-5-0-1-RELEASE:1.13
	jym-xensuspend-nbase:1.13
	netbsd-5-0:1.13.0.18
	netbsd-5-0-RELEASE:1.13
	netbsd-5-0-RC4:1.13
	netbsd-5-0-RC3:1.13
	netbsd-5-0-RC2:1.13
	jym-xensuspend:1.13.0.16
	jym-xensuspend-base:1.13
	netbsd-5-0-RC1:1.13
	netbsd-5:1.13.0.14
	netbsd-5-base:1.13
	yamt-pf42-base4:1.13
	yamt-pf42-base3:1.13
	hpcarm-cleanup-nbase:1.13
	yamt-pf42-base2:1.13
	yamt-pf42:1.13.0.12
	yamt-pf42-base:1.13
	mjf-devfs2:1.13.0.10
	mjf-devfs2-base:1.13
	keiichi-mipv6:1.13.0.8
	keiichi-mipv6-base:1.13
	cube-autoconf:1.13.0.6
	cube-autoconf-base:1.13
	mjf-devfs:1.13.0.4
	mjf-devfs-base:1.13
	hpcarm-cleanup:1.13.0.2
	hpcarm-cleanup-base:1.13
	netbsd-1-6-PATCH002-RELEASE:1.9
	netbsd-1-6-PATCH002:1.9
	netbsd-1-6-PATCH002-RC4:1.9
	netbsd-1-6-PATCH002-RC3:1.9
	netbsd-1-6-PATCH002-RC2:1.9
	netbsd-1-6-PATCH002-RC1:1.9
	netbsd-1-6-PATCH001:1.9
	netbsd-1-6-PATCH001-RELEASE:1.9
	netbsd-1-6-PATCH001-RC3:1.9
	netbsd-1-6-PATCH001-RC2:1.9
	netbsd-1-6-PATCH001-RC1:1.9
	fvdl_fs64_base:1.11
	netbsd-1-6-RELEASE:1.9
	netbsd-1-6-RC3:1.9
	netbsd-1-6-RC2:1.9
	netbsd-1-6-RC1:1.9
	netbsd-1-6:1.9.0.2
	netbsd-1-6-base:1.9
	netbsd-1-5-PATCH003:1.4
	netbsd-1-5-PATCH002:1.4
	netbsd-1-5-PATCH001:1.4
	netbsd-1-5-RELEASE:1.4
	netbsd-1-5-BETA2:1.4
	netbsd-1-5-BETA:1.4
	netbsd-1-4-PATCH003:1.1.2.2
	netbsd-1-5-ALPHA2:1.4
	netbsd-1-5:1.4.0.4
	netbsd-1-5-base:1.4
	minoura-xpg4dl:1.4.0.2
	minoura-xpg4dl-base:1.4
	netbsd-1-4-PATCH002:1.1.2.2
	wrstuden-devbsize-19991221:1.1
	wrstuden-devbsize:1.1.0.6
	wrstuden-devbsize-base:1.1
	comdex-fall-1999:1.1.0.4
	comdex-fall-1999-base:1.1
	netbsd-1-4-PATCH001:1.1.2.2
	netbsd-1-4-RELEASE:1.1.2.2
	netbsd-1-4:1.1.0.2;
locks; strict;
comment	@# @;


1.13
date	2003.07.16.11.11.51;	author dsl;	state dead;
branches;
next	1.12;

1.12
date	2003.04.26.19.19.29;	author fvdl;	state Exp;
branches;
next	1.11;

1.11
date	2002.11.23.23.45.52;	author fvdl;	state Exp;
branches;
next	1.10;

1.10
date	2002.09.18.06.38.51;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2001.12.12.01.48.43;	author tv;	state Exp;
branches;
next	1.8;

1.8
date	2001.09.22.02.09.37;	author tv;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.14.09.41.41;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	2001.01.14.09.24.30;	author christos;	state Exp;
branches;
next	1.5;

1.5
date	2001.01.14.09.22.01;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	2000.02.11.16.14.33;	author hubertf;	state Exp;
branches;
next	1.3;

1.3
date	2000.02.11.15.36.26;	author hubertf;	state Exp;
branches;
next	1.2;

1.2
date	2000.02.01.06.01.21;	author tsutsui;	state Exp;
branches;
next	1.1;

1.1
date	99.04.15.22.31.23;	author fvdl;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	99.04.15.22.31.23;	author fvdl;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	99.04.18.00.18.50;	author fvdl;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Remove old i386 mbr stuff (move to arch/i386/stand/mbr a while ago)
mbr.8 moved to src/share/man/man8/man8.i386
@
text
@#	$NetBSD: Makefile,v 1.12 2003/04/26 19:19:29 fvdl Exp $

NOMAN=	# defined
STRIPFLAG=

.include <bsd.own.mk>

BINDIR=	/usr/mdec
BINMODE=444

PROG=	mbr_bootsel
SRCS=	mbr_bootsel.S

.if ${OBJECT_FMT} == "ELF"
LDFLAGS+= -e start
.else
LDFLAGS+= -e _start -N
.endif

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


${PROG}: ${OBJS}
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
	${STRIP} ${PROG}.tmp
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.12
log
@x86_64 -> amd64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2002/11/23 23:45:52 fvdl Exp $
@


1.11
log
@Compile mbr and mbr_bootsel on x86_64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2002/09/18 06:38:51 lukem Exp $
d20 1
a20 1
.if ${MACHINE} == "x86_64"
@


1.10
log
@minor makefile delint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2001/12/12 01:48:43 tv Exp $
d19 6
@


1.9
log
@MKfoo=no -> NOfoo
@
text
@d1 6
a6 1
#	$NetBSD: Makefile,v 1.8 2001/09/22 02:09:37 tv Exp $
a10 2
STRIPFLAG=

a12 3
NOMAN=	# defined

.include <bsd.own.mk>
@


1.8
log
@objcopy -> ${OBJCOPY}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2001/01/14 09:41:41 christos Exp $
d10 1
a10 1
MKMAN=	no
@


1.7
log
@back out previous; it is better for now to handle the dependencies in
bsd.prog.mk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2001/01/14 09:24:30 christos Exp $
d23 1
a23 1
	objcopy -O binary ${PROG}.tmp ${PROG}
@


1.6
log
@add .NOTMAIN for good measure.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2001/01/14 09:22:01 christos Exp $
d20 1
a20 1
${PROG}: .NOTMAIN ${SRCS:S/.S/.o/g}
@


1.5
log
@don't use OBJS in the dependency line because it is not defined yet.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2000/02/11 16:14:33 hubertf Exp $
d20 1
a20 1
${PROG}: ${SRCS:S/.S/.o/g}
@


1.4
log
@Revert last change, it was caused by the build not picking the
right files if DESTDIR is set.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2000/02/11 15:36:26 hubertf Exp $
d20 1
a20 1
${PROG}: ${OBJS}
@


1.3
log
@s/STRIP/STRIPPROG/
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/02/01 06:01:21 tsutsui Exp $
d22 1
a22 1
	${STRIPPROG} ${PROG}.tmp
@


1.2
log
@STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1999/04/15 22:31:23 fvdl Exp $
d22 1
a22 1
	${STRIP} ${PROG}.tmp
@


1.1
log
@Add and build a bootselecting MBR (i386).
@
text
@d1 1
a1 1
#	$NetBSD$
d22 1
a22 1
	${STRIPPROG} ${PROG}.tmp
@


1.1.2.1
log
@file Makefile was added on branch netbsd-1-4 on 1999-04-18 00:18:50 +0000
@
text
@d1 26
@


1.1.2.2
log
@Pull up bootselector mods, as approved by releng.
@
text
@a0 26
#	$NetBSD: Makefile,v 1.1.2.1 1999/04/18 00:18:50 fvdl Exp $

BINDIR=	/usr/mdec
BINMODE=444

STRIPFLAG=

PROG=	mbr_bootsel
SRCS=	mbr_bootsel.S
MKMAN=	no

.include <bsd.own.mk>

.if ${OBJECT_FMT} == "ELF"
LDFLAGS+= -e start
.else
LDFLAGS+= -e _start -N
.endif

${PROG}: ${OBJS}
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
	${STRIPPROG} ${PROG}.tmp
	objcopy -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@
