2001-09-22 06:01:13 +04:00
|
|
|
# $NetBSD: Makefile,v 1.13 2001/09/22 02:01:13 tv Exp $
|
1999-05-02 08:42:47 +04:00
|
|
|
|
|
|
|
MAN= mbr.8
|
2000-03-06 04:23:11 +03:00
|
|
|
MLINKS= mbr.8 bootselect.8
|
1998-10-15 19:22:13 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
1999-05-02 08:42:47 +04:00
|
|
|
.if ${MACHINE} == "i386"
|
|
|
|
PROG= mbr
|
|
|
|
SRCS= mbr.S
|
|
|
|
|
2001-01-14 12:41:41 +03:00
|
|
|
${PROG}: ${OBJS}
|
1999-03-24 19:02:41 +03:00
|
|
|
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
|
2000-02-11 19:14:32 +03:00
|
|
|
${STRIP} ${PROG}.tmp
|
2001-09-22 06:01:13 +04:00
|
|
|
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
|
1998-10-15 19:22:13 +04:00
|
|
|
rm -f ${PROG}.tmp
|
1999-05-02 08:42:47 +04:00
|
|
|
.endif
|
1998-10-15 19:22:13 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|