1998-10-30 00:11:35 +00:00
|
|
|
# $Id: Makefile,v 1.5 1998/10/13 18:29:18 rnordier Exp $
|
1998-09-12 06:30:26 +00:00
|
|
|
|
|
|
|
ORG=0x100000
|
1998-10-30 00:11:35 +00:00
|
|
|
AFLAGS+= --assembler-with-cpp
|
1998-09-12 06:30:26 +00:00
|
|
|
|
|
|
|
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
|
1998-10-13 18:29:18 +00:00
|
|
|
objcopy -S -O binary btxldr.out ${.TARGET}
|
1998-09-12 06:30:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
btxldr.o: btxldr.s
|
1998-10-30 00:11:35 +00:00
|
|
|
${CC} ${AFLAGS} -c -o ${.TARGET} ${.CURDIR}/btxldr.s
|
1998-09-12 06:30:26 +00:00
|
|
|
|
1998-09-25 17:14:16 +00:00
|
|
|
CLEANFILES+= btxldr btxldr.out btxldr.o
|
1998-09-14 18:27:06 +00:00
|
|
|
|
1998-09-25 17:14:16 +00:00
|
|
|
.include <bsd.prog.mk>
|