diff options
author | ru <ru@FreeBSD.org> | 2004-02-06 21:58:32 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-02-06 21:58:32 +0000 |
commit | 21fda7ee48f465c5fc64f99bf64397595d205484 (patch) | |
tree | 77a2225b4e0eca9d79fcb1ab7afde8fa690843f6 /sys/boot/i386/kgzldr/Makefile | |
parent | 55923d02028e15a90b63351ec63715c3a5350090 (diff) | |
download | FreeBSD-src-21fda7ee48f465c5fc64f99bf64397595d205484.zip FreeBSD-src-21fda7ee48f465c5fc64f99bf64397595d205484.tar.gz |
First round of cleanups to sys/boot/ makefiles:
- do not use PROG for what's not a real C program,
- use sys.mk transformation rules where possible,
- only create the "machine" symlink on AMD64,
- removed MAINTAINER lines in individual makefiles,
- added the LIBSTAND defitinion to <bsd.libnames.mk>,
- somewhat better contents in .depend files.
Tested on: i386, amd64
Prodded by: bde
Diffstat (limited to 'sys/boot/i386/kgzldr/Makefile')
-rw-r--r-- | sys/boot/i386/kgzldr/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/boot/i386/kgzldr/Makefile b/sys/boot/i386/kgzldr/Makefile index 7228a4f..b89d75d 100644 --- a/sys/boot/i386/kgzldr/Makefile +++ b/sys/boot/i386/kgzldr/Makefile @@ -1,5 +1,12 @@ # $FreeBSD$ +FILES= kgzldr.o +FILESOWN= ${LIBOWN} +FILESGRP= ${LIBGRP} +FILESMODE= ${LIBMODE} +FILESDIR= ${LIBDIR} +CLEANFILES= kgzldr.o + SRCS= start.s boot.c inflate.c lib.c crt.s sio.s OBJS= ${SRCS:N*.h:R:S/$/.o/g} CFLAGS= -ffreestanding @@ -8,18 +15,10 @@ CFLAGS+=-DKZIP LDFLAGS=-nostdlib -static -Wl,-r .PATH: ${.CURDIR}/../../../kern -CLEANFILES=kgzldr.o - BOOT_COMCONSOLE_PORT?= 0x3f8 AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT} -all: kgzldr.o - kgzldr.o: ${OBJS} ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} -realinstall: - ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - kgzldr.o ${DESTDIR}${LIBDIR} - .include <bsd.prog.mk> |