1999-04-16 02:31:23 +04:00
|
|
|
# $NetBSD: Makefile,v 1.4 1999/04/15 22:31:23 fvdl Exp $
|
1998-10-15 19:22:13 +04:00
|
|
|
|
|
|
|
BINDIR= /usr/mdec
|
|
|
|
BINMODE=444
|
|
|
|
|
|
|
|
STRIPFLAG=
|
|
|
|
|
|
|
|
PROG= mbr
|
|
|
|
SRCS= mbr.S
|
1999-04-16 02:31:23 +04:00
|
|
|
|
|
|
|
MAN= mbr.8
|
1998-10-15 19:22:13 +04:00
|
|
|
|
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
|
|
|
|
|
1998-10-15 19:22:13 +04:00
|
|
|
${PROG}: ${OBJS}
|
1999-03-24 19:02:41 +03:00
|
|
|
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
|
1998-10-15 19:22:13 +04:00
|
|
|
${STRIPPROG} ${PROG}.tmp
|
1999-03-24 19:02:41 +03:00
|
|
|
objcopy -O binary ${PROG}.tmp ${PROG}
|
1998-10-15 19:22:13 +04:00
|
|
|
rm -f ${PROG}.tmp
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|