f6d236e3a2
src/sys/boot/i386/Makefile.inc 1.1 src/sys/boot/i386/btx/btx/btx.s 1.15 src/sys/boot/i386/btx/btxldr/Makefile 1.8 src/sys/boot/i386/btx/btxldr/btxldr.s 1.9 src/sys/boot/i386/libi386/biosdisk.c 1.29 src/sys/boot/i386/loader/Makefile 1.42 src/sys/boot/i386/loader/main.c 1.18 (entry point address of loader was not changed.) Reviewed by: nyan
29 lines
636 B
Makefile
29 lines
636 B
Makefile
# $FreeBSD$
|
|
|
|
M4?= m4
|
|
M4FLAGS+= -DLOADER_ADDRESS=${LOADER_ADDRESS} -DPC98
|
|
|
|
.if defined(BTXLDR_VERBOSE)
|
|
M4FLAGS+= -DBTXLDR_VERBOSE
|
|
.endif
|
|
|
|
all: btxldr
|
|
|
|
btxldr: btxldr.o
|
|
.if ${OBJFORMAT} == aout
|
|
${LD} -nostdlib -N -s -T ${LOADER_ADDRESS} -o btxldr.out btxldr.o
|
|
dd if=btxldr.out of=${.TARGET} ibs=32 skip=1
|
|
.else
|
|
${LD} -N -e start -Ttext ${LOADER_ADDRESS} -o btxldr.out btxldr.o
|
|
objcopy -S -O binary btxldr.out ${.TARGET}
|
|
.endif
|
|
|
|
btxldr.o: btxldr.s
|
|
(cd ${.CURDIR}; ${M4} ${M4FLAGS} btxldr.s ) | \
|
|
${AS} ${AFLAGS} -o ${.TARGET}
|
|
|
|
CLEANFILES+= btxldr btxldr.out btxldr.o
|
|
|
|
.include <${.CURDIR}/../../Makefile.inc>
|
|
.include <bsd.prog.mk>
|