diff options
Diffstat (limited to 'sys/arch/amd64/stand/mbr/Makefile')
-rw-r--r-- | sys/arch/amd64/stand/mbr/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/arch/amd64/stand/mbr/Makefile b/sys/arch/amd64/stand/mbr/Makefile new file mode 100644 index 00000000000..670c731871c --- /dev/null +++ b/sys/arch/amd64/stand/mbr/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1 2004/02/03 12:09:47 mickey Exp $ +# + +PROG= mbr +SRCS= mbr.S +AFLAGS+=-m32 -I${.CURDIR} -I${.CURDIR}/../../.. #-Wa,-a +LD=ld +LDFLAGS=-melf_i386 -nostdlib -Ttext 0 -x -N -s -Bstatic -e start + +NOMAN= +#MAN+= mbr.8 + +INSTALL_STRIP= +SADIR=${.CURDIR}/.. +S= ${.CURDIR}/../../../.. + +# Uncomment this to make mbr talk to a serial port. +#CPPFLAGS+=-DSERIAL=0 + +${PROG}: $(OBJS) $(DPADD) + $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD) + #@size $(PROG) + @if [ -x ${.OBJDIR}/${PROG} ]; then \ + objcopy -O binary ${PROG} ${.OBJDIR}/.tmp;\ + mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \ + ls -l ${.OBJDIR}/${PROG}; \ + fi + +.include <bsd.prog.mk> |