Merge from vendor branch GCC:
[dragonfly.git] / sys / boot / pc98 / kgzldr / Makefile
1 # $FreeBSD: src/sys/boot/pc98/kgzldr/Makefile,v 1.10 2003/06/30 00:20:28 ru Exp $
2 # $DragonFly: src/sys/boot/pc98/kgzldr/Attic/Makefile,v 1.3 2003/11/10 06:08:39 dillon Exp $
3
4 SRCS=   start.s boot.c inflate.c lib.c crt.s sio.s
5 OBJS=   ${SRCS:N*.h:R:S/$/.o/g}
6 CFLAGS= -ffreestanding
7 CFLAGS+=-Os
8 CFLAGS+=-DKZIP
9 LDFLAGS=-nostdlib -static -Wl,-r
10 .PATH:  ${.CURDIR}/../../../kern
11
12 .PATH:  ${.CURDIR}/../../i386/kgzldr
13 AFLAGS+=--defsym PC98=1
14
15 CLEANFILES=kgzldr.o
16
17 BOOT_COMCONSOLE_PORT?=  0x238
18 AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
19
20 all: kgzldr.o
21
22 kgzldr.o: ${OBJS}
23         ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
24
25 realinstall:
26         ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
27             kgzldr.o ${DESTDIR}${LIBDIR}
28
29 .include <bsd.prog.mk>