Clean up the namespace of <sys/timeb.h>.
[dragonfly.git] / usr.bin / gzip / Makefile
CommitLineData
62529567 1# $NetBSD: Makefile,v 1.8 2004/01/01 02:44:09 mrg Exp $
c03f08f3 2# $DragonFly: src/usr.bin/gzip/Makefile,v 1.5 2007/08/27 16:50:54 pavalos Exp $
62529567
JS
3
4PROG= gzip
d49e4f59 5MAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zgrep.1 zmore.1 znew.1
62529567 6
c93c76c6 7.if defined(BOOTSTRAPPING) && exists(${_SHLIBDIRPREFIX}/usr/lib/libz.a)
8LDFLAGS+= -L${_SHLIBDIRPREFIX}/usr/lib
9.endif
10
62529567
JS
11DPADD= ${LIBZ}
12LDADD= -lz
62529567
JS
13
14NOSHARED?= yes
15
e75d098c 16.if defined(NO_GZIP_UNCOMPRESS)
62529567
JS
17CFLAGS+= -DNO_COMPRESS_SUPPORT
18.endif
19.if defined(GZIP_UNBZIP2)
20DPADD+= ${LIBZ2}
21LDADD+= -lbz2
22.else
23CFLAGS+= -DNO_BZIP2_SUPPORT
24.endif
25
d49e4f59 26SCRIPTS= gzexe zdiff zforce zgrep zmore znew
62529567
JS
27
28MLINKS+= gzip.1 gunzip.1 \
29 gzip.1 gzcat.1 \
30 gzip.1 zcat.1 \
00e71414 31 zdiff.1 zcmp.1 \
d49e4f59
YT
32 zgrep.1 zegrep.1 \
33 zgrep.1 zfgrep.1 \
00e71414 34 zmore.1 zless.1
62529567
JS
35
36LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \
37 ${BINDIR}/gzip ${BINDIR}/gzcat \
38 ${BINDIR}/gzip ${BINDIR}/zcat \
00e71414 39 ${BINDIR}/zdiff ${BINDIR}/zcmp \
d49e4f59
YT
40 ${BINDIR}/zgrep ${BINDIR}/zegrep \
41 ${BINDIR}/zgrep ${BINDIR}/zfgrep \
00e71414 42 ${BINDIR}/zmore ${BINDIR}/zless
62529567 43
62529567 44.include <bsd.prog.mk>