summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-06-30 00:20:28 +0000
committerru <ru@FreeBSD.org>2003-06-30 00:20:28 +0000
commit02ef41d822928e9df6aa328042976b6f5e94d75a (patch)
treeafc396cf661c2e6c2bdb770faffcd5d3cd1b7e03 /sys/boot
parent8fec58f4cc8dafd4de8ed16bacbbf49d0c56a3f1 (diff)
downloadFreeBSD-src-02ef41d822928e9df6aa328042976b6f5e94d75a.zip
FreeBSD-src-02ef41d822928e9df6aa328042976b6f5e94d75a.tar.gz
MFi386: revision 1.16.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/pc98/kgzldr/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/boot/pc98/kgzldr/Makefile b/sys/boot/pc98/kgzldr/Makefile
index 66e725e..13bd2cd 100644
--- a/sys/boot/pc98/kgzldr/Makefile
+++ b/sys/boot/pc98/kgzldr/Makefile
@@ -1,28 +1,22 @@
# $FreeBSD$
-SRCS= boot.c inflate.c lib.c
+SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
CFLAGS= -ffreestanding
CFLAGS+=-Os
CFLAGS+=-DKZIP
-LDFLAGS=-nostdlib -static -r
+LDFLAGS=-nostdlib -static -Wl,-r
.PATH: ${.CURDIR}/../../../kern
.PATH: ${.CURDIR}/../../i386/kgzldr
AFLAGS+=--defsym PC98=1
-.for asm in start crt sio
-OBJS+= ${asm}.o
-${asm}.o: ${asm}.s
- ${AS} ${AFLAGS} -o ${.TARGET} ${.ALLSRC:M*${asm}*}
-.endfor
-
CLEANFILES=kgzldr.o
BOOT_COMCONSOLE_PORT?= 0x238
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
-all: ${OBJS} kgzldr.o
+all: kgzldr.o
kgzldr.o: ${OBJS}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
@@ -31,4 +25,4 @@ realinstall:
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
kgzldr.o ${DESTDIR}${LIBDIR}
-.include <bsd.lib.mk>
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud