NetBSD/sbin/fdisk/mbr/Makefile

31 lines
478 B
Makefile
Raw Normal View History

2001-09-22 06:01:13 +04:00
# $NetBSD: Makefile,v 1.13 2001/09/22 02:01:13 tv Exp $
MAN= mbr.8
2000-03-06 04:23:11 +03:00
MLINKS= mbr.8 bootselect.8
BINDIR= /usr/mdec
BINMODE=444
STRIPFLAG=
1999-03-24 19:02:41 +03:00
.include <bsd.own.mk>
.if ${OBJECT_FMT} == "ELF"
LDFLAGS+= -e start
.else
LDFLAGS+= -e _start -N
.endif
.if ${MACHINE} == "i386"
PROG= mbr
SRCS= mbr.S
${PROG}: ${OBJS}
1999-03-24 19:02:41 +03:00
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
${STRIP} ${PROG}.tmp
2001-09-22 06:01:13 +04:00
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp
.endif
.include <bsd.prog.mk>