summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/kgzldr/Makefile
blob: 9ed9114c186624a8966d9a4792dd952bacc3e827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $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

CLEANFILES=${FILES}

BOOT_COMCONSOLE_PORT?=	0x3f8
M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}

kgzldr.o: ${OBJS}
	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud