8f65b6a695
Noticed by: Scott Mace <smace@intt.org>
22 lines
475 B
Makefile
22 lines
475 B
Makefile
# $Id: Makefile,v 1.4 1998/09/25 17:14:15 peter 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
|
|
objcopy -S -O binary btxldr.out ${.TARGET}
|
|
.endif
|
|
|
|
btxldr.o: btxldr.s
|
|
${AS} ${AFLAGS} -o ${.TARGET} ${.CURDIR}/btxldr.s
|
|
|
|
CLEANFILES+= btxldr btxldr.out btxldr.o
|
|
|
|
.include <bsd.prog.mk>
|