summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/mbr
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-02-09 14:11:58 +0000
committerru <ru@FreeBSD.org>2004-02-09 14:11:58 +0000
commit5d659b9c9153cac8ef26ac894913d84a6772d779 (patch)
tree8ce2d80f6b9077e83a792c0cc593b1328ab46eb6 /sys/boot/i386/mbr
parent951150d25a152b9b7302661fb693e51d0ffe17f1 (diff)
downloadFreeBSD-src-5d659b9c9153cac8ef26ac894913d84a6772d779.zip
FreeBSD-src-5d659b9c9153cac8ef26ac894913d84a6772d779.tar.gz
- Factor out -nostdlib to an upper level Makefile.inc.
- Now that bsd.prog.mk deals with programs linked with -nostdlib better, and has a notion of an "internal" program, use PROG where possible. This has a good impact on the contents of .depend files and causes programs to be linked with cc(1). XXX: boot2 couldn't be converted as it's actually two programs. Tested on: i386, amd64
Diffstat (limited to 'sys/boot/i386/mbr')
-rw-r--r--sys/boot/i386/mbr/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/boot/i386/mbr/Makefile b/sys/boot/i386/mbr/Makefile
index 7a40111..2405297 100644
--- a/sys/boot/i386/mbr/Makefile
+++ b/sys/boot/i386/mbr/Makefile
@@ -1,7 +1,11 @@
# $FreeBSD$
+PROG= ${BOOT}.out
+INTERNALPROG=
FILES= ${BOOT}
-CLEANFILES= ${BOOT} ${BOOT}.out ${BOOT}.o
+NOMAN=
+SRCS= ${BOOT}.s
+CLEANFILES= ${BOOT}
BOOT= mbr
ORG= 0x600
@@ -9,7 +13,6 @@ ORG= 0x600
${BOOT}: ${BOOT}.out
objcopy -S -O binary ${BOOT}.out ${.TARGET}
-${BOOT}.out: ${BOOT}.o
- ${LD} -N -e start -Ttext ${ORG} -o ${.TARGET} ${BOOT}.o
+LDFLAGS=-N -e start -Ttext ${ORG}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud