Deleted Added
full compact
Makefile (64123) Makefile (125563)
1# $FreeBSD: head/sys/boot/pc98/boot0.5/Makefile 64123 2000-08-02 08:46:08Z kato $
1# $FreeBSD: head/sys/boot/pc98/boot0.5/Makefile 125563 2004-02-07 12:19:44Z nyan $
2
2
3PROG= boot0.5
4OBJS= start.o boot.o boot0.5.o disk.o selector.o support.o \
5 syscons.o
6NOMAN=
7STRIP=
8BINDIR?= /boot
9BINMODE= 444
3FILES= ${BOOT}
4CLEANFILES= ${BOOT} ${BOOT}.bin ${BOOT}.out ${OBJS}
10
5
11ORG= 0x000
6BOOT= boot0.5
12
7
13# The size of boot0.5 must be 7168 bytes
14boot0.5: boot0.5.bin
15 cat boot0.5.bin /dev/zero | dd of=boot0.5 bs=1 count=7168
8SRCS= start.s boot.s boot0.5.s disk.s selector.s support.s syscons.s
9OBJS= ${SRCS:N*.h:R:S/$/.o/g}
16
10
17boot0.5.bin: boot0.5.out
18 objcopy -S -O binary boot0.5.out ${.TARGET}
11# The base address that we the boot0 code to to run it. Don't change this
12# unless you are glutton for punishment.
13BOOT_BOOT0_ORG?= 0x0000
19
14
20boot0.5.out: ${OBJS}
21 ${LD} -N -e start -Ttext ${ORG} -o ${.TARGET} ${OBJS}
15# The size of boot0.5 must be 7168 bytes
16${BOOT}: ${BOOT}.bin
17 cat ${BOOT}.bin /dev/zero | dd of=${BOOT} bs=1 count=7168
22
18
23CLEANFILES+= boot0.5.out boot0.5.bin
19${BOOT}.bin: ${BOOT}.out
20 objcopy -S -O binary ${BOOT}.out ${.TARGET}
24
21
22${BOOT}.out: ${OBJS}
23 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o ${.TARGET} ${.ALLSRC}
24
25.include <bsd.prog.mk>
25.include <bsd.prog.mk>