diff options
author | nyan <nyan@FreeBSD.org> | 2003-06-07 08:36:41 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-06-07 08:36:41 +0000 |
commit | 37d82464e9a8031651c3846f649f1cb970903752 (patch) | |
tree | 0f5a237f08868209e16f83ba6be380a94ab69756 /sys | |
parent | da2b3c28fcad66177b4a88916b42270a678931f5 (diff) | |
download | FreeBSD-src-37d82464e9a8031651c3846f649f1cb970903752.zip FreeBSD-src-37d82464e9a8031651c3846f649f1cb970903752.tar.gz |
MFi386: revisions 1.13 and 1.14.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/pc98/kgzldr/Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/sys/boot/pc98/kgzldr/Makefile b/sys/boot/pc98/kgzldr/Makefile index 5e1e866..9fed53d 100644 --- a/sys/boot/pc98/kgzldr/Makefile +++ b/sys/boot/pc98/kgzldr/Makefile @@ -1,24 +1,34 @@ # $FreeBSD$ -FILES= kgzldr.o -SRCS= start.s boot.c inflate.c lib.c crt.s sio.s +SRCS= boot.c inflate.c lib.c OBJS= ${SRCS:N*.h:R:S/$/.o/g} CFLAGS= -ffreestanding CFLAGS+=-Os CFLAGS+=-DKZIP LDFLAGS=-nostdlib -static -r -BINDIR= /usr/lib .PATH: ${.CURDIR}/../../../kern .PATH: ${.CURDIR}/../../i386/kgzldr AFLAGS+=--defsym PC98=1 -CLEANFILES=${FILES} +.for asm in start crt sio +OBJS+= ${asm}.o +${asm}.o: ${asm}.s + as -o ${.TARGET} ${.ALLSRC:M*${asm}*} +.endfor + +CLEANFILES=kgzldr.o BOOT_COMCONSOLE_PORT?= 0x238 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> |