1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-07-19 18:07:44 +00:00
|
|
|
|
|
|
|
SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
|
2002-04-12 15:49:30 +00:00
|
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
2002-05-10 01:06:52 +00:00
|
|
|
CFLAGS= -ffreestanding
|
2000-11-04 13:03:52 +00:00
|
|
|
CFLAGS+=-Os
|
1999-07-19 18:07:44 +00:00
|
|
|
CFLAGS+=-DKZIP
|
|
|
|
LDFLAGS=-nostdlib -static -r
|
|
|
|
.PATH: ${.CURDIR}/../../../kern
|
|
|
|
|
2003-06-06 13:49:51 +00:00
|
|
|
CLEANFILES=kgzldr.o
|
2002-04-17 15:33:40 +00:00
|
|
|
|
1999-07-19 18:07:44 +00:00
|
|
|
BOOT_COMCONSOLE_PORT?= 0x3f8
|
2002-09-30 20:37:58 +00:00
|
|
|
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
|
1999-07-19 18:07:44 +00:00
|
|
|
|
2003-06-06 13:49:51 +00:00
|
|
|
all: ${OBJS} kgzldr.o
|
|
|
|
|
1999-07-19 18:07:44 +00:00
|
|
|
kgzldr.o: ${OBJS}
|
|
|
|
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
|
|
|
|
|
2003-06-06 13:49:51 +00:00
|
|
|
realinstall:
|
|
|
|
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
|
|
kgzldr.o ${DESTDIR}${LIBDIR}
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|