diff options
Diffstat (limited to 'sys/arch/socppc/stand/mbr/Makefile')
-rw-r--r-- | sys/arch/socppc/stand/mbr/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/arch/socppc/stand/mbr/Makefile b/sys/arch/socppc/stand/mbr/Makefile new file mode 100644 index 00000000000..7d6e19be453 --- /dev/null +++ b/sys/arch/socppc/stand/mbr/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1 2010/02/15 13:43:24 kettenis Exp $ + +.include <bsd.own.mk> + +NOMAN= +#MAN= mbr.8 + +.if ${MACHINE} == "socppc" +PROG= mbr.mini +SRCS= mbr.S +AFLAGS+=-I${.OBJDIR} -I${.CURDIR}/../../.. #-Wa,a +LDFLAGS+=-N -e start -Ttext 0 +OBJCOPY?=objcopy + +INSTALL_STRIP= +S= ${.CURDIR}/../../../.. + +${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 + +.else +NOPROG= +.endif + +.include <bsd.prog.mk> |