From fe6266fbe52c726e1378d5573d252e068683681f Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Thu, 17 Jan 2013 12:25:12 +0000 Subject: Clean up/standardise makefiles for amd64/stand. --- sys/arch/amd64/stand/biosboot/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/arch/amd64/stand/biosboot') 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 - -- cgit v1.2.3