Deleted Added
full compact
Makefile (41008) Makefile (42480)
1# $Id: Makefile,v 1.9 1998/11/05 20:52:25 rnordier Exp $
1# $Id: Makefile,v 1.10 1998/11/08 15:36:34 rnordier Exp $
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 \
10 sio.o
11
12M4?= m4
13
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 \
10 sio.o
11
12M4?= m4
13
14B2SIOPRT?= 0x3f8
14BOOT_COMCONSOLE_PORT?= 0x3f8
15BOOT_COMCONSOLE_SPEED?= 9600
15B2SIOFMT?= 0x3
16B2SIOFMT?= 0x3
16B2SIODIV?= 0xc
17
18.if exists(${.OBJDIR}/../btx)
19BTX= ${.OBJDIR}/../btx
20.else
21BTX= ${.CURDIR}/../btx
22.endif
23
24ORG1= 0x7c00

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

57boot2.bin: boot2.out
58 objcopy -S -O binary boot2.out ${.TARGET}
59
60boot2.out: boot2.o sio.o
61 ${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
62 ${BTX}/lib/crt0.o boot2.o sio.o
63
64sio.o: sio.s
17
18.if exists(${.OBJDIR}/../btx)
19BTX= ${.OBJDIR}/../btx
20.else
21BTX= ${.CURDIR}/../btx
22.endif
23
24ORG1= 0x7c00

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

57boot2.bin: boot2.out
58 objcopy -S -O binary boot2.out ${.TARGET}
59
60boot2.out: boot2.o sio.o
61 ${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
62 ${BTX}/lib/crt0.o boot2.o sio.o
63
64sio.o: sio.s
65 (cd ${.CURDIR}; ${M4} -DSIOPRT=${B2SIOPRT} \
66 -DSIOFMT=${B2SIOFMT} -DSIODIV=${B2SIODIV} sio.s) | \
65 (cd ${.CURDIR}; ${M4} -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
66 -DSIOFMT=${B2SIOFMT} \
67 -DSIOSPD=${BOOT_COMCONSOLE_SPEED} sio.s) | \
67 ${AS} ${AFLAGS} -o ${.TARGET}
68
69install:
70 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
71 boot1 ${DESTDIR}${BINDIR}/boot1
72 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
73 boot2 ${DESTDIR}${BINDIR}/boot2
74
75.include <bsd.prog.mk>
68 ${AS} ${AFLAGS} -o ${.TARGET}
69
70install:
71 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
72 boot1 ${DESTDIR}${BINDIR}/boot1
73 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
74 boot2 ${DESTDIR}${BINDIR}/boot2
75
76.include <bsd.prog.mk>