diff options
Diffstat (limited to 'sys/arch/i386/stand/mbr/Makefile')
-rw-r--r-- | sys/arch/i386/stand/mbr/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/arch/i386/stand/mbr/Makefile b/sys/arch/i386/stand/mbr/Makefile new file mode 100644 index 00000000000..a7a97efbccd --- /dev/null +++ b/sys/arch/i386/stand/mbr/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1 1997/03/31 03:12:19 weingart Exp $ +# + +PROG= mbr +SRCS= mbr.S +AFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../.. #-Wa,-a +LDFLAGS=-s -Wl,-T0,-N,-x -nostdlib +MAN+= mbr.8 +STRIP= + +# Uncomment this to make mbr talk to a serial port. +#CPPFLAGS+=-DSERIAL=0 + +all: + # XXX access(2) says X_OK to root even w/o the x bit set !!! + @if [ -x ${.OBJDIR}/${PROG} ]; then \ + dd if=${.OBJDIR}/${PROG} of=${.OBJDIR}/.tmp ibs=32 skip=1; \ + mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \ + ls -l ${.OBJDIR}/${PROG}; \ + fi + +.include <bsd.prog.mk> |