1# $FreeBSD$
2
3FILES=	${BOOT}
4CLEANFILES= ${BOOT} ${BOOT}.part
5
6BOOT=	pc98boot
7
8.if exists(${.OBJDIR}/../boot0)
9BOOT0=	${.OBJDIR}/../boot0/boot0
10.else
11BOOT0=	${.CURDIR}/../boot0/boot0
12.endif
13.if exists(${.OBJDIR}/../boot0.5)
14BOOT05=	${.OBJDIR}/../boot0.5/boot0.5
15.else
16BOOT05=	${.CURDIR}/../boot0.5/boot0.5
17.endif
18
19${BOOT}: ${BOOT0} ${BOOT05} ${BOOT}.part
20	cat ${BOOT0} ${BOOT}.part ${BOOT05} > ${.TARGET}
21
22${BOOT}.part:
23	dd if=/dev/zero of=${.TARGET} bs=512 count=1
24
25.include <bsd.prog.mk>
26