425f8660a7
of SIOPRT which broke kgzldr and therefore make release. Pointed out by: murray
25 lines
480 B
Makefile
25 lines
480 B
Makefile
# $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
|
|
|
|
.PATH: ${.CURDIR}/../../i386/kgzldr
|
|
AFLAGS+=--defsym PC98=1
|
|
|
|
CLEANFILES=${FILES}
|
|
|
|
BOOT_COMCONSOLE_PORT?= 0x238
|
|
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
|
|
|
|
kgzldr.o: ${OBJS}
|
|
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
|
|
|
|
.include <bsd.prog.mk>
|