Deleted Added
full compact
Makefile (235207) Makefile (262613)
1# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 235207 2012-05-09 19:08:54Z marius $
1# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 262613 2014-02-28 18:06:00Z dim $
2
3PROG= boot1.elf
4INTERNALPROG=
5NO_MAN=
6FILES?= boot1
7SRCS= _start.s boot1.c
8CLEANFILES=${FILES} boot1.aout
9
10BOOTBLOCKBASE= 0x4000
11
2
3PROG= boot1.elf
4INTERNALPROG=
5NO_MAN=
6FILES?= boot1
7SRCS= _start.s boot1.c
8CLEANFILES=${FILES} boot1.aout
9
10BOOTBLOCKBASE= 0x4000
11
12CFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common
12CFLAGS.clang+=-mcmodel=small
13CFLAGS.gcc+=-mcmodel=medlow
14CFLAGS+=-Os -I${.CURDIR}/../../common
13LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N
14
15# Construct boot1. sunlabel expects it to contain zeroed-out space for the
16# label, and to be of the correct size.
17${FILES}: boot1.aout
18 @set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
19 echo "$$x bytes available"; test $$x -ge 0
20 dd if=/dev/zero of=${.TARGET} bs=512 count=16
21 dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
22
23boot1.aout: boot1.elf
24 elf2aout -o ${.TARGET} ${.ALLSRC}
25
26boot1.o: ${.CURDIR}/../../common/ufsread.c
27
28.include <bsd.prog.mk>
15LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N
16
17# Construct boot1. sunlabel expects it to contain zeroed-out space for the
18# label, and to be of the correct size.
19${FILES}: boot1.aout
20 @set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
21 echo "$$x bytes available"; test $$x -ge 0
22 dd if=/dev/zero of=${.TARGET} bs=512 count=16
23 dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc
24
25boot1.aout: boot1.elf
26 elf2aout -o ${.TARGET} ${.ALLSRC}
27
28boot1.o: ${.CURDIR}/../../common/ufsread.c
29
30.include <bsd.prog.mk>