Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / boot / pc32 / kgzldr / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.3.2.1 2001/03/04 05:04:33 obrien Exp $
2
3PROG= kgzldr.o
4SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
5CFLAGS= -fno-builtin
6.if ${OBJFORMAT} == aout
7CFLAGS+=-O2
8.else
9CFLAGS+=-Os
10.endif
11CFLAGS+=-DKZIP
12LDFLAGS=-nostdlib -static -r
13NOMAN=
14BINDIR= /usr/lib
15BINMODE=444
16STRIP=
17.PATH: ${.CURDIR}/../../../kern
18
19M4?= m4
20M4FLAGS=
21
22BOOT_COMCONSOLE_PORT?= 0x3f8
23M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}
24
25all: kgzldr.o
26
27kgzldr.o: ${OBJS}
28 ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
29
30.s.o:
31 (cd ${.CURDIR}; ${M4} ${M4FLAGS} ${.IMPSRC}) |\
32 ${AS} ${AFLAGS} -o ${.TARGET}
33
34.include <bsd.prog.mk>