Makefile revision 276486
1# $FreeBSD: stable/10/sys/boot/pc98/boot0.5/Makefile 276486 2014-12-31 23:25:37Z ngie $
2
3PROG=	${BOOT}.out
4INTERNALPROG=
5FILES=	${BOOT}
6MAN=
7SRCS=	start.s boot.s boot0.5.s disk.s selector.s support.s syscons.s \
8	putssjis.s
9CLEANFILES= ${BOOT} ${BOOT}.bin
10
11BOOT=	boot0.5
12
13# The base address that we the boot0 code to to run it.  Don't change this
14# unless you are glutton for punishment.
15BOOT_BOOT0_ORG?=	0x0000
16
17LDFLAGS=-e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-N,-T,${.CURDIR}/ldscript
18
19# The size of boot0.5 must be 7168 bytes
20${BOOT}: ${BOOT}.bin
21	cat ${BOOT}.bin /dev/zero | dd of=${BOOT} bs=1 count=7168
22
23${BOOT}.bin: ${BOOT}.out
24	objcopy -S -O binary ${BOOT}.out ${.TARGET}
25
26.include <bsd.prog.mk>
27