summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/biosboot
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2013-01-17 12:25:12 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2013-01-17 12:25:12 +0000
commitfe6266fbe52c726e1378d5573d252e068683681f (patch)
tree660375da411fedb6903b4685fb624610565a682d /sys/arch/amd64/stand/biosboot
parent30179cf655de82f7ba463b6515ef59f92690d21a (diff)
Clean up/standardise makefiles for amd64/stand.
Diffstat (limited to 'sys/arch/amd64/stand/biosboot')
-rw-r--r--sys/arch/amd64/stand/biosboot/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/amd64/stand/biosboot/Makefile b/sys/arch/amd64/stand/biosboot/Makefile
index 6c88c12e65d..069526e3e7d 100644
--- a/sys/arch/amd64/stand/biosboot/Makefile
+++ b/sys/arch/amd64/stand/biosboot/Makefile
@@ -1,19 +1,21 @@
-# $OpenBSD: Makefile,v 1.6 2012/09/25 09:01:03 pascal Exp $
+# $OpenBSD: Makefile,v 1.7 2013/01/17 12:25:11 jsing Exp $
MAN= biosboot.8
.if ${MACHINE} == "amd64"
+S= ${.CURDIR}/../../../..
+SADIR= ${.CURDIR}/..
+
PROG= biosboot
SRCS= biosboot.S
LD=ld
LDFLAGS=-nostdlib -Ttext 0 -N -x -Bstatic -nopie
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
-SADIR= ${.CURDIR}/..
-${PROG}: $(OBJS) $(DPADD)
+${PROG}: $(OBJS)
@rm -f $(PROG)
- $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD)
+ $(LD) $(LDFLAGS) -o $(PROG) $(OBJS)
@size $(PROG)
CPPFLAGS+=-DLOADADDR=$(LOADADDR) -DLINKADDR=$(LINKADDR) -DBOOTMAGIC=$(BOOTMAGIC)
@@ -26,4 +28,3 @@ NOPROG=
.endif
.include <bsd.prog.mk>
-