freebsd-dev/sys/boot/i386/btx/btxldr/Makefile
Mike Smith 948486abe3 Initial integration of the i386 bootloader and BTX.
- Discard large amounts of BIOS-related code in favour of the more compact
   BTX vm86 interface.
 - Build the loader module as ELF, although the resulting object is a.out,
   make gensetdefs 32/64-bit sensitive and use a single copy of it.
 - Throw away installboot, as it's no longer required.
 - Use direct bcopy operations in the i386_copy module, as BTX
   maps the first 16M of memory.  Check operations against the
   detected size of actual memory.
1998-09-17 23:52:16 +00:00

27 lines
492 B
Makefile

# $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: