1993-06-18 18:39:41 +00:00
|
|
|
# @(#)Makefile 5.3 (Berkeley) 5/12/90
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1993-06-18 18:39:41 +00:00
|
|
|
|
|
|
|
PROG= gzip
|
|
|
|
SRCS= gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c \
|
1998-01-25 09:52:32 +00:00
|
|
|
crypt.c lzw.c unlzw.c unlzh.c unpack.c getopt.c
|
|
|
|
CFLAGS+=-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
SRCS+= match.S
|
|
|
|
CFLAGS+=-DASMV
|
|
|
|
.endif
|
2001-04-07 11:21:35 +00:00
|
|
|
SCRIPTS=gzexe zdiff zforce zmore znew
|
|
|
|
MAN= gzexe.1 gzip.1 zdiff.1 zforce.1 zmore.1 znew.1
|
1998-01-25 09:52:32 +00:00
|
|
|
|
2001-04-07 11:21:35 +00:00
|
|
|
NOSHARED?=yes
|
1997-12-26 01:53:58 +00:00
|
|
|
|
1993-07-16 17:48:38 +00:00
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
|
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
|
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat
|
1997-12-21 19:15:12 +00:00
|
|
|
LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp
|
2001-04-07 11:21:35 +00:00
|
|
|
MLINKS= gzip.1 gunzip.1 gzip.1 zcat.1 gzip.1 gzcat.1
|
|
|
|
MLINKS+= zdiff.1 zcmp.1
|
|
|
|
|
|
|
|
GREP_LIBZ?= YES
|
1997-12-21 19:15:12 +00:00
|
|
|
.if defined(GREP_LIBZ) && empty(GREP_LIBZ)
|
2001-04-07 11:21:35 +00:00
|
|
|
SCRIPTS+=zgrep.getopt
|
|
|
|
MAN+= zgrep.1
|
1996-01-23 01:00:37 +00:00
|
|
|
LINKS+= ${BINDIR}/zgrep ${BINDIR}/zegrep
|
|
|
|
LINKS+= ${BINDIR}/zgrep ${BINDIR}/zfgrep
|
1997-12-26 01:53:58 +00:00
|
|
|
MLINKS+= zgrep.1 zfgrep.1 zgrep.1 zegrep.1
|
1997-12-21 19:15:12 +00:00
|
|
|
.endif
|
1993-06-18 18:39:41 +00:00
|
|
|
|
|
|
|
match.o: ${.CURDIR}/match.S
|
2002-09-17 01:49:00 +00:00
|
|
|
$(CC) -E -DNO_UNDERLINE -traditional ${.CURDIR}/match.S >_match.s
|
1993-06-18 18:39:41 +00:00
|
|
|
$(CC) -c _match.s
|
1996-05-07 23:19:49 +00:00
|
|
|
mv -f _match.o match.o
|
1993-06-18 18:39:41 +00:00
|
|
|
rm -f _match.s
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|