blob: a7a97efbccde51943f6db5c0107e134ace51e5bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $OpenBSD: Makefile,v 1.1 1997/03/31 03:12:19 weingart Exp $
#
PROG= mbr
SRCS= mbr.S
AFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../.. #-Wa,-a
LDFLAGS=-s -Wl,-T0,-N,-x -nostdlib
MAN+= mbr.8
STRIP=
# Uncomment this to make mbr talk to a serial port.
#CPPFLAGS+=-DSERIAL=0
all:
# XXX access(2) says X_OK to root even w/o the x bit set !!!
@if [ -x ${.OBJDIR}/${PROG} ]; then \
dd if=${.OBJDIR}/${PROG} of=${.OBJDIR}/.tmp ibs=32 skip=1; \
mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \
ls -l ${.OBJDIR}/${PROG}; \
fi
.include <bsd.prog.mk>
|