blob: fdb623a55e6978aba7fb2eabbeeafdbdf2191e05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# $Id: Makefile,v 1.2 1998/09/14 18:27:05 msmith Exp $
ORG=0x100000
all: btxldr
btxldr: btxldr.o
.if ${OBJFORMAT} == aout
${LD} -nostdlib -N -s -T ${ORG} -o btxldr.out btxldr.o
dd if=btxldr.out of=${.TARGET} ibs=32 skip=1
.else
${LD} -N -e start -Ttext ${ORG} -o btxldr.out btxldr.o
/usr/libexec/elf/objcopy -S -O binary btxldr.out ${.TARGET}
.endif
btxldr.o: btxldr.s
${AS} ${AFLAGS} -o ${.TARGET} btxldr.s
clean:
rm -f btxldr btxldr.out btxldr.o
depend:
cleandepend:
install:
|