summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/mbr/Makefile
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-21 20:31:01 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-21 20:31:01 +0000
commit6b634c6937ba07f51acaaa13c6ecef78f3827fde (patch)
tree9b150a5e4306e5dcd890959385ddd5b8b74a4ce2 /sys/arch/i386/stand/mbr/Makefile
parent0baad62aa40e38780a98e1dff56467c9f5011457 (diff)
don't use cc for ld, bad things happens w/ DESTDIR defined; by dm@
Diffstat (limited to 'sys/arch/i386/stand/mbr/Makefile')
-rw-r--r--sys/arch/i386/stand/mbr/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/mbr/Makefile b/sys/arch/i386/stand/mbr/Makefile
index 78bbb4ece09..ae3e65fc3a3 100644
--- a/sys/arch/i386/stand/mbr/Makefile
+++ b/sys/arch/i386/stand/mbr/Makefile
@@ -1,17 +1,27 @@
-# $OpenBSD: Makefile,v 1.2 1997/04/07 09:00:10 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 1997/04/21 20:31:00 mickey Exp $
#
PROG= mbr
SRCS= mbr.S
AFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../.. #-Wa,-a
-LDFLAGS=-s -Wl,-T0,-N,-x -nostdlib
+LD=ld
+LDFLAGS=-nostdlib -Ttext 0 -x -N -s -Bstatic
MAN+= mbr.8
STRIP=
# Uncomment this to make mbr talk to a serial port.
#CPPFLAGS+=-DSERIAL=0
-all:
+all: machine-links
+
+machine-links:
+ @rm -f machine i386
+ @ln -fs ${.CURDIR}/../.. i386
+ @ln -fs ${.CURDIR}/../../include machine
+
+${PROG}: $(OBJS) $(DPADD)
+ $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD)
+ @size $(PROG)
@if [ -x ${.OBJDIR}/${PROG} ]; then \
dd if=${.OBJDIR}/${PROG} of=${.OBJDIR}/.tmp ibs=32 skip=1; \
mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \