NetBSD/sbin/fdisk/mbr_bootsel/Makefile
2003-04-26 19:14:17 +00:00

33 lines
516 B
Makefile

# $NetBSD: Makefile,v 1.12 2003/04/26 19:19:29 fvdl Exp $
NOMAN= # defined
STRIPFLAG=
.include <bsd.own.mk>
BINDIR= /usr/mdec
BINMODE=444
PROG= mbr_bootsel
SRCS= mbr_bootsel.S
.if ${OBJECT_FMT} == "ELF"
LDFLAGS+= -e start
.else
LDFLAGS+= -e _start -N
.endif
.if ${MACHINE} == "amd64"
LDFLAGS+= -m elf_i386
AFLAGS+= -m32
.endif
${PROG}: ${OBJS}
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
${STRIP} ${PROG}.tmp
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp
.include <bsd.prog.mk>