mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
9292eec80d
that are presently embedded in the fdisk and sysinstall code.
29 lines
454 B
Makefile
29 lines
454 B
Makefile
# $Id: $
|
|
|
|
PROG= mbr
|
|
NOMAN=
|
|
STRIP=
|
|
BINDIR?= /boot
|
|
BINMODE= 444
|
|
|
|
M4?= m4
|
|
|
|
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
|
|
|
|
mbr.o: mbr.m4 mbr.s
|
|
(cd ${.CURDIR}; ${M4} mbr.m4 mbr.s) | \
|
|
${AS} ${AFLAGS} -o ${.TARGET}
|
|
|
|
CLEANFILES+= mbr.out mbr.o
|
|
|
|
.include <bsd.prog.mk>
|