30 lines
546 B
Makefile
30 lines
546 B
Makefile
# $Id: Makefile,v 1.1.1.1 1999/07/19 18:07:44 rnordier Exp $
|
|
|
|
PROG= kgzldr.o
|
|
SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
|
|
CFLAGS= -fno-builtin -Os
|
|
CFLAGS+=-DKZIP
|
|
LDFLAGS=-nostdlib -static -r
|
|
NOMAN=
|
|
BINDIR= /usr/lib
|
|
BINMODE=444
|
|
STRIP=
|
|
.PATH: ${.CURDIR}/../../../kern
|
|
|
|
M4?= m4
|
|
M4FLAGS=
|
|
|
|
BOOT_COMCONSOLE_PORT?= 0x3f8
|
|
M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}
|
|
|
|
all: kgzldr.o
|
|
|
|
kgzldr.o: ${OBJS}
|
|
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
|
|
|
|
.s.o:
|
|
(cd ${.CURDIR}; ${M4} ${M4FLAGS} ${.IMPSRC}) |\
|
|
${AS} ${AFLAGS} -o ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|