summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/btx/btxldr/Makefile
blob: b6f40162d23affdeb2a99b63a8160c0f6e435a7c (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
# $FreeBSD$

ORG=0x100000
#AFLAGS+=	-x assembler-with-cpp

#AFLAGS+=	--defsym PC98=1 --defsym BTXLDR_VERBOSE=1
AFLAGS+=	--defsym PC98=1

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
#	${CC} ${AFLAGS} -c -o ${.TARGET} ${.CURDIR}/btxldr.s
	${AS} ${AFLAGS} -o ${.TARGET} ${.CURDIR}/btxldr.s

CLEANFILES+= btxldr btxldr.out btxldr.o

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud