2000-02-11 18:36:25 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 2000/02/11 15:36:26 hubertf Exp $
|
1999-04-16 02:31:23 +04:00
|
|
|
|
|
|
|
BINDIR= /usr/mdec
|
|
|
|
BINMODE=444
|
|
|
|
|
|
|
|
STRIPFLAG=
|
|
|
|
|
|
|
|
PROG= mbr_bootsel
|
|
|
|
SRCS= mbr_bootsel.S
|
|
|
|
MKMAN= no
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
|
|
LDFLAGS+= -e start
|
|
|
|
.else
|
|
|
|
LDFLAGS+= -e _start -N
|
|
|
|
.endif
|
|
|
|
|
|
|
|
${PROG}: ${OBJS}
|
|
|
|
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
|
2000-02-11 18:36:25 +03:00
|
|
|
${STRIPPROG} ${PROG}.tmp
|
1999-04-16 02:31:23 +04:00
|
|
|
objcopy -O binary ${PROG}.tmp ${PROG}
|
|
|
|
rm -f ${PROG}.tmp
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|