40587021a6
paths relative to ${.CURDIR} instead. Using BSDSRCDIR here means that it's impossible to compile these programs out of the source tree they're a part of, unless that sort tree happens to be the one at BSDSRCDIR.
26 lines
586 B
Makefile
26 lines
586 B
Makefile
# $NetBSD: Makefile,v 1.8 1999/06/21 01:19:38 cgd Exp $
|
|
# Small zcat (i.e. for install media)
|
|
#
|
|
# Note: gzio.c is compiled here so that crunchgen will assume
|
|
# the same symbol space for zcat.c and gzio.c which is required
|
|
# so that the fake deflate functions in zcat.c will satisfy the
|
|
# references to those functions in gzio.c (yes, it's a hack).
|
|
|
|
PROG= zcat
|
|
MKMAN= no
|
|
SRCS= zcat.c gzio.c
|
|
|
|
SRCDIR= ${.CURDIR}/../../../lib/libz
|
|
CPPFLAGS+= -I${SRCDIR}
|
|
|
|
DPADD+= ${LIBZ}
|
|
LDADD+= -lz
|
|
|
|
all: ${PROG}
|
|
|
|
.include <bsd.prog.mk>
|
|
.PATH: ${SRCDIR}
|
|
|
|
test: zcat
|
|
echo 'hello, hello!' | gzip | ./zcat
|