diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2003-06-06 13:49:51 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2003-06-06 13:49:51 +0000 |
commit | a2c945daf3d8e8bc56ea90992166d151d38a9215 (patch) | |
tree | 24b6c70fd3f020a7deec11d4489fdcefbd70625b /sys/boot/i386/kgzldr/Makefile | |
parent | f0a040c72b8815658ec48ee53b31b22a37ad5087 (diff) | |
download | FreeBSD-src-a2c945daf3d8e8bc56ea90992166d151d38a9215.zip FreeBSD-src-a2c945daf3d8e8bc56ea90992166d151d38a9215.tar.gz |
Tweak make values and targets not to build kgzldr.o at
installation stage.
Reviewed by: bde
Diffstat (limited to 'sys/boot/i386/kgzldr/Makefile')
-rw-r--r-- | sys/boot/i386/kgzldr/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/boot/i386/kgzldr/Makefile b/sys/boot/i386/kgzldr/Makefile index 539a504..08c3081 100644 --- a/sys/boot/i386/kgzldr/Makefile +++ b/sys/boot/i386/kgzldr/Makefile @@ -1,21 +1,25 @@ # $FreeBSD$ -FILES= 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 CFLAGS+=-Os CFLAGS+=-DKZIP LDFLAGS=-nostdlib -static -r -BINDIR= /usr/lib .PATH: ${.CURDIR}/../../../kern -CLEANFILES=${FILES} +CLEANFILES=kgzldr.o BOOT_COMCONSOLE_PORT?= 0x3f8 AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT} +all: ${OBJS} kgzldr.o + kgzldr.o: ${OBJS} ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} -.include <bsd.prog.mk> +realinstall: + ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + kgzldr.o ${DESTDIR}${LIBDIR} + +.include <bsd.lib.mk> |