freebsd-nq/sys/boot/pc98/kgzldr/Makefile

35 lines
673 B
Makefile
Raw Normal View History

# $FreeBSD$
2003-06-07 08:36:41 +00:00
SRCS= boot.c inflate.c lib.c
2002-04-15 13:44:00 +00:00
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
CFLAGS= -ffreestanding
CFLAGS+=-Os
CFLAGS+=-DKZIP
LDFLAGS=-nostdlib -static -r
.PATH: ${.CURDIR}/../../../kern
.PATH: ${.CURDIR}/../../i386/kgzldr
AFLAGS+=--defsym PC98=1
2003-06-07 08:36:41 +00:00
.for asm in start crt sio
OBJS+= ${asm}.o
${asm}.o: ${asm}.s
2003-06-07 17:42:26 +00:00
${AS} ${AFLAGS} -o ${.TARGET} ${.ALLSRC:M*${asm}*}
2003-06-07 08:36:41 +00:00
.endfor
CLEANFILES=kgzldr.o
2002-04-25 13:28:10 +00:00
BOOT_COMCONSOLE_PORT?= 0x238
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
2003-06-07 08:36:41 +00:00
all: ${OBJS} kgzldr.o
kgzldr.o: ${OBJS}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
2003-06-07 08:36:41 +00:00
realinstall:
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
kgzldr.o ${DESTDIR}${LIBDIR}
.include <bsd.lib.mk>