mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFi386: revision 1.16.
This commit is contained in:
parent
40205a0623
commit
c173771625
1 changed files with 4 additions and 10 deletions
|
|
@ -1,28 +1,22 @@
|
|||
# $FreeBSD$
|
||||
|
||||
SRCS= boot.c inflate.c lib.c
|
||||
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
|
||||
LDFLAGS=-nostdlib -static -Wl,-r
|
||||
.PATH: ${.CURDIR}/../../../kern
|
||||
|
||||
.PATH: ${.CURDIR}/../../i386/kgzldr
|
||||
AFLAGS+=--defsym PC98=1
|
||||
|
||||
.for asm in start crt sio
|
||||
OBJS+= ${asm}.o
|
||||
${asm}.o: ${asm}.s
|
||||
${AS} ${AFLAGS} -o ${.TARGET} ${.ALLSRC:M*${asm}*}
|
||||
.endfor
|
||||
|
||||
CLEANFILES=kgzldr.o
|
||||
|
||||
BOOT_COMCONSOLE_PORT?= 0x238
|
||||
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
|
||||
|
||||
all: ${OBJS} kgzldr.o
|
||||
all: kgzldr.o
|
||||
|
||||
kgzldr.o: ${OBJS}
|
||||
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
|
||||
|
|
@ -31,4 +25,4 @@ realinstall:
|
|||
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
kgzldr.o ${DESTDIR}${LIBDIR}
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
Loading…
Reference in a new issue