summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/mbr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386/mbr/Makefile')
-rw-r--r--sys/boot/i386/mbr/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/boot/i386/mbr/Makefile b/sys/boot/i386/mbr/Makefile
index 8fa64e1..7a40111 100644
--- a/sys/boot/i386/mbr/Makefile
+++ b/sys/boot/i386/mbr/Makefile
@@ -1,16 +1,15 @@
# $FreeBSD$
-PROG= mbr
-NOMAN=
-STRIP=
-BINMODE= 444
+FILES= ${BOOT}
+CLEANFILES= ${BOOT} ${BOOT}.out ${BOOT}.o
+BOOT= mbr
ORG= 0x600
-mbr: mbr.o
- ${LD} -N -e start -Ttext ${ORG} -o mbr.out mbr.o
- objcopy -S -O binary mbr.out ${.TARGET}
+${BOOT}: ${BOOT}.out
+ objcopy -S -O binary ${BOOT}.out ${.TARGET}
-CLEANFILES+= mbr.out mbr.o
+${BOOT}.out: ${BOOT}.o
+ ${LD} -N -e start -Ttext ${ORG} -o ${.TARGET} ${BOOT}.o
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud