freebsd-dev/sys/boot/i386/kgzldr/Makefile

32 lines
599 B
Makefile
Raw Normal View History

1999-08-28 01:08:13 +00:00
# $FreeBSD$
SRCS= boot.c inflate.c lib.c
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
2002-05-10 01:06:52 +00:00
CFLAGS= -ffreestanding
CFLAGS+=-Os
CFLAGS+=-DKZIP
LDFLAGS=-nostdlib -static -r
.PATH: ${.CURDIR}/../../../kern
.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?= 0x3f8
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
all: ${OBJS} kgzldr.o
kgzldr.o: ${OBJS}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
realinstall:
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
kgzldr.o ${DESTDIR}${LIBDIR}
.include <bsd.lib.mk>