NetBSD/distrib/utils/zcat/Makefile
martin c45ea630d3 Drop ``-Os'' on sparc64 due to toolchain issues.
The same change has already been applied on the 1.5 branch. The problems
(i.e. ifconfig not showing IP addresses) have been verified to still exist
with the new toolchain.
2001-08-20 12:19:43 +00:00

30 lines
660 B
Makefile

# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:47 martin 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}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
.endif
LDSTATIC?=-static
DPADD+= ${LIBZ}
LDADD+= -lz
all: ${PROG}
.include <bsd.prog.mk>
.PATH: ${SRCDIR}
test: zcat
echo 'hello, hello!' | gzip | ./zcat