CCVER=gcc46: Adjust Makefile so boot2 remains < 7.5kb
[dragonfly.git] / sys / boot / pc32 / kgzldr / Makefile
CommitLineData
5ee58eed
MD
1# $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.16 2003/06/30 00:15:38 ru Exp $
2# $DragonFly: src/sys/boot/pc32/kgzldr/Makefile,v 1.3 2003/11/10 06:08:35 dillon Exp $
984263bc 3
984263bc 4SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
5ee58eed
MD
5OBJS= ${SRCS:N*.h:R:S/$/.o/g}
6CFLAGS= -ffreestanding
984263bc 7CFLAGS+=-Os
984263bc 8CFLAGS+=-DKZIP
5ee58eed 9LDFLAGS=-nostdlib -static -Wl,-r
984263bc
MD
10.PATH: ${.CURDIR}/../../../kern
11
5ee58eed 12CLEANFILES=kgzldr.o
984263bc
MD
13
14BOOT_COMCONSOLE_PORT?= 0x3f8
5ee58eed 15AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
984263bc
MD
16
17all: kgzldr.o
18
19kgzldr.o: ${OBJS}
20 ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
21
5ee58eed
MD
22realinstall:
23 ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
24 kgzldr.o ${DESTDIR}${LIBDIR}
984263bc
MD
25
26.include <bsd.prog.mk>