Deleted Added
full compact
Makefile (40308) Makefile (40314)
1# $Id: Makefile,v 1.1.1.1 1998/10/12 21:16:26 rnordier Exp $
1# $Id: Makefile,v 1.2 1998/10/13 18:29:18 rnordier Exp $
2
3M4?= m4
4
5.if exists(${.OBJDIR}/../btx)
6BTX= ${.OBJDIR}/../btx
7.else
8BTX= ${.CURDIR}/../btx
9.endif

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

27boot1.out: boot1.o
28 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
29
30boot1.o: boot1.m4 boot1.s
31 ${M4} boot1.m4 boot1.s | ${AS} ${AFLAGS} -o ${.TARGET}
32
33boot2: boot2.ldr boot2.bin
34 btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \
2
3M4?= m4
4
5.if exists(${.OBJDIR}/../btx)
6BTX= ${.OBJDIR}/../btx
7.else
8BTX= ${.CURDIR}/../btx
9.endif

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

27boot1.out: boot1.o
28 ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
29
30boot1.o: boot1.m4 boot1.s
31 ${M4} boot1.m4 boot1.s | ${AS} ${AFLAGS} -o ${.TARGET}
32
33boot2: boot2.ldr boot2.bin
34 btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \
35 -o ${.TARGET} -P 1 boot2.bin
36 @ls -l boot2 | awk '{ x = 7680 - $$5; print x " bytes free"; \
37 if (x < 0) exit 1 }'
35 -o boot2.ld -P 1 boot2.bin
36 @ls -l boot2.ld | awk '{ x = 7680 - $$5; \
37 print x " bytes available"; if (x < 0) exit 1 }'
38 dd if=boot2.ld of=${.TARGET} obs=7680 conv=osync 2>/dev/null
38
39boot2.ldr:
40 dd if=/dev/zero of=${.TARGET} bs=512 count=1 2>/dev/null
41
42boot2.bin: boot2.out
43 objcopy -S -O binary boot2.out ${.TARGET}
44
45boot2.out: boot2.o
46 ${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
47 ${BTX}/lib/crt0.o boot2.o
48
49clean:
50 rm -f boot1 boot1.out boot1.o boot2 boot2.ldr boot2.bin \
39
40boot2.ldr:
41 dd if=/dev/zero of=${.TARGET} bs=512 count=1 2>/dev/null
42
43boot2.bin: boot2.out
44 objcopy -S -O binary boot2.out ${.TARGET}
45
46boot2.out: boot2.o
47 ${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
48 ${BTX}/lib/crt0.o boot2.o
49
50clean:
51 rm -f boot1 boot1.out boot1.o boot2 boot2.ldr boot2.bin \
51 boot2.out boot2.o
52 boot2.ld boot2.out boot2.o