1# $NetBSD: Makefile,v 1.8 2004/01/01 02:44:09 mrg Exp $ 2# $DragonFly: src/usr.bin/gzip/Makefile,v 1.2 2004/10/31 10:26:26 joerg Exp $ 3 4PROG= gzip 5SRCS= gzip.c 6MAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zgrep.1 zmore.1 znew.1 7 8DPADD= ${LIBZ} 9LDADD= -lz 10WARNS= 6 11 12NOSHARED?= yes 13 14.if defined(NO_GZIP_UNCOMPRESS) 15CFLAGS+= -DNO_COMPRESS_SUPPORT 16.endif 17.if defined(GZIP_UNBZIP2) 18DPADD+= ${LIBZ2} 19LDADD+= -lbz2 20.else 21CFLAGS+= -DNO_BZIP2_SUPPORT 22.endif 23 24SCRIPTS= gzexe zdiff zforce zgrep zmore znew 25 26MLINKS+= gzip.1 gunzip.1 \ 27 gzip.1 gzcat.1 \ 28 gzip.1 zcat.1 \ 29 zdiff.1 zcmp.1 \ 30 zgrep.1 zegrep.1 \ 31 zgrep.1 zfgrep.1 32 33LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \ 34 ${BINDIR}/gzip ${BINDIR}/gzcat \ 35 ${BINDIR}/gzip ${BINDIR}/zcat \ 36 ${BINDIR}/zdiff ${BINDIR}/zcmp \ 37 ${BINDIR}/zgrep ${BINDIR}/zegrep \ 38 ${BINDIR}/zgrep ${BINDIR}/zfgrep 39 40.if defined(BOOTSTRAPPING) 41 42.PATH: ${.CURDIR}/../../lib/libc/stdlib 43SRCS+= getopt.h getopt_long.c 44CFLAGS+= -I${.OBJDIR} -DBOOTSTRAPPING 45 46getopt.h : ${.CURDIR}/../../include/getopt.h 47 cp ${.ALLSRC} ${.TARGET} 48 49.endif 50 51.include <bsd.prog.mk> 52