summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/kgzldr
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2004-02-09 16:01:45 +0000
committernyan <nyan@FreeBSD.org>2004-02-09 16:01:45 +0000
commit95fdeae578a3e59b1b367c2a6110fb2b37e8bcc0 (patch)
treebfa91e9031f74bd45478a1f392344af812dfd705 /sys/boot/pc98/kgzldr
parent801e658cdd4ee7e5d845318ee79c08f07be63ef5 (diff)
downloadFreeBSD-src-95fdeae578a3e59b1b367c2a6110fb2b37e8bcc0.zip
FreeBSD-src-95fdeae578a3e59b1b367c2a6110fb2b37e8bcc0.tar.gz
MFi386: Factor out -nostdlib and use PROG.
Diffstat (limited to 'sys/boot/pc98/kgzldr')
-rw-r--r--sys/boot/pc98/kgzldr/Makefile21
1 files changed, 8 insertions, 13 deletions
diff --git a/sys/boot/pc98/kgzldr/Makefile b/sys/boot/pc98/kgzldr/Makefile
index a3ddf0f..f41fe4b 100644
--- a/sys/boot/pc98/kgzldr/Makefile
+++ b/sys/boot/pc98/kgzldr/Makefile
@@ -1,26 +1,21 @@
# $FreeBSD$
-FILES= kgzldr.o
-FILESOWN= ${LIBOWN}
-FILESGRP= ${LIBGRP}
-FILESMODE= ${LIBMODE}
-FILESDIR= ${LIBDIR}
-CLEANFILES= kgzldr.o
+PROG= kgzldr.o
+BINMODE=${LIBMODE}
+BINDIR= ${LIBDIR}
+NOMAN=
SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
-OBJS= ${SRCS:N*.h:R:S/$/.o/g}
CFLAGS= -Os
CFLAGS+=-DKZIP
-LDFLAGS=-nostdlib -static -Wl,-r
+NOSHARED=
+LDFLAGS=-Wl,-r
.PATH: ${.CURDIR}/../../../kern
-
.PATH: ${.CURDIR}/../../i386/kgzldr
-AFLAGS+=--defsym PC98=1
BOOT_COMCONSOLE_PORT?= 0x238
-AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
-kgzldr.o: ${OBJS}
- ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
+AFLAGS+=--defsym PC98=1
+AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud