Deleted Added
full compact
Makefile (108149) Makefile (109886)
1# $FreeBSD: head/sys/boot/i386/boot2/Makefile 108149 2002-12-21 02:03:31Z obrien $
1# $FreeBSD: head/sys/boot/i386/boot2/Makefile 109886 2003-01-26 13:33:57Z phk $
2
3PROG= boot2
4NOMAN=
5STRIP=
6BINDIR?= /boot
7BINMODE= 444
8CLEANFILES+= boot1 boot1.out boot1.o \
9 boot2.ldr boot2.bin boot2.ld boot2.out boot2.o boot2.h \

--- 32 unchanged lines hidden (view full) ---

42 -I${.CURDIR}/../../common \
43 -I${.CURDIR}/../btx/lib -I. \
44 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
45 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
46 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
47
48LDFLAGS=-nostdlib -static -N --gc-sections
49
2
3PROG= boot2
4NOMAN=
5STRIP=
6BINDIR?= /boot
7BINMODE= 444
8CLEANFILES+= boot1 boot1.out boot1.o \
9 boot2.ldr boot2.bin boot2.ld boot2.out boot2.o boot2.h \

--- 32 unchanged lines hidden (view full) ---

42 -I${.CURDIR}/../../common \
43 -I${.CURDIR}/../btx/lib -I. \
44 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
45 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
46 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
47
48LDFLAGS=-nostdlib -static -N --gc-sections
49
50all: boot1 boot2
50all: boot1 boot2 boot
51
51
52boot: boot1 boot2
53 cat boot1 boot2 > boot
54
52boot1: boot1.out
53 objcopy -S -O binary boot1.out ${.TARGET}
54
55boot1.out: boot1.o
56 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
57
58boot1.o: boot1.s
59 ${CPP} ${CFLAGS} ${.IMPSRC} | \

--- 34 unchanged lines hidden (view full) ---

94sio.o: sio.s
95 ${AS} ${AFLAGS} --defsym SIOPRT=${BOOT_COMCONSOLE_PORT} \
96 --defsym SIOFMT=${B2SIOFMT} \
97 --defsym SIOSPD=${BOOT_COMCONSOLE_SPEED} \
98 ${.IMPSRC} -o ${.TARGET}
99
100install:
101 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
55boot1: boot1.out
56 objcopy -S -O binary boot1.out ${.TARGET}
57
58boot1.out: boot1.o
59 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
60
61boot1.o: boot1.s
62 ${CPP} ${CFLAGS} ${.IMPSRC} | \

--- 34 unchanged lines hidden (view full) ---

97sio.o: sio.s
98 ${AS} ${AFLAGS} --defsym SIOPRT=${BOOT_COMCONSOLE_PORT} \
99 --defsym SIOFMT=${B2SIOFMT} \
100 --defsym SIOSPD=${BOOT_COMCONSOLE_SPEED} \
101 ${.IMPSRC} -o ${.TARGET}
102
103install:
104 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
105 boot ${DESTDIR}${BINDIR}/boot
106 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
102 boot1 ${DESTDIR}${BINDIR}/boot1
103 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
104 boot2 ${DESTDIR}${BINDIR}/boot2
105
106.include <bsd.prog.mk>
107 boot1 ${DESTDIR}${BINDIR}/boot1
108 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
109 boot2 ${DESTDIR}${BINDIR}/boot2
110
111.include <bsd.prog.mk>