1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-24 16:10:11 +00:00
freebsd/sys/boot/i386/mbr/Makefile

25 lines
376 B
Makefile
Raw Normal View History

1999-08-28 01:08:13 +00:00
# $FreeBSD$
2000-10-02 17:23:16 +00:00
MAINTAINER= rnordier
PROG= mbr
NOMAN=
STRIP=
BINDIR?= /boot
BINMODE= 444
ORG= 0x600
mbr: mbr.o
.if ${OBJFORMAT} == aout
${LD} -N -s -T ${ORG} -o mbr.out mbr.o
dd if=mbr.out of=${.TARGET} ibs=32 skip=1
.else
${LD} -N -e start -Ttext ${ORG} -o mbr.out mbr.o
objcopy -S -O binary mbr.out ${.TARGET}
.endif
CLEANFILES+= mbr.out mbr.o
.include <bsd.prog.mk>