summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/kgzldr/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-02-09 14:11:58 +0000
committerru <ru@FreeBSD.org>2004-02-09 14:11:58 +0000
commit5d659b9c9153cac8ef26ac894913d84a6772d779 (patch)
tree8ce2d80f6b9077e83a792c0cc593b1328ab46eb6 /sys/boot/i386/kgzldr/Makefile
parent951150d25a152b9b7302661fb693e51d0ffe17f1 (diff)
downloadFreeBSD-src-5d659b9c9153cac8ef26ac894913d84a6772d779.zip
FreeBSD-src-5d659b9c9153cac8ef26ac894913d84a6772d779.tar.gz
- Factor out -nostdlib to an upper level Makefile.inc.
- Now that bsd.prog.mk deals with programs linked with -nostdlib better, and has a notion of an "internal" program, use PROG where possible. This has a good impact on the contents of .depend files and causes programs to be linked with cc(1). XXX: boot2 couldn't be converted as it's actually two programs. Tested on: i386, amd64
Diffstat (limited to 'sys/boot/i386/kgzldr/Makefile')
-rw-r--r--sys/boot/i386/kgzldr/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/sys/boot/i386/kgzldr/Makefile b/sys/boot/i386/kgzldr/Makefile
index 4f21e8a..f19d1ea 100644
--- a/sys/boot/i386/kgzldr/Makefile
+++ b/sys/boot/i386/kgzldr/Makefile
@@ -1,23 +1,18 @@
# $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
BOOT_COMCONSOLE_PORT?= 0x3f8
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
-kgzldr.o: ${OBJS}
- ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud