blob: 4ea898a58722ddc040881da263f67ececc0682d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $OpenBSD: Makefile,v 1.2 2006/10/06 22:06:46 deraadt Exp $
.include <bsd.own.mk>
MAN= mbr.8
.if ${MACHINE} == "landisk"
PROG= mbr
SRCS= mbr.S
AFLAGS+=-nostdinc -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../.. #-Wa,a
LDFLAGS+=-N -e start -Ttext 0x8c200200
OBJCOPY?=objcopy
INSTALL_STRIP=
S= ${.CURDIR}/../../../..
# Uncomment this to make mbr talk to a serial port.
#CPPFLAGS+=-DSERIAL=0
${PROG}: $(OBJS) $(DPADD)
$(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD)
@size $(PROG)
@if [ -x ${.OBJDIR}/${PROG} ]; then \
${OBJCOPY} -O binary ${PROG} ${.OBJDIR}/.tmp;\
mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \
ls -l ${.OBJDIR}/${PROG}; \
fi
.else
NOPROG=
.endif
.include <bsd.prog.mk>
|