Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / gnu / usr.bin / gzip / Makefile
1 #       @(#)Makefile    5.3 (Berkeley) 5/12/90
2 # $FreeBSD: src/gnu/usr.bin/gzip/Makefile,v 1.21.2.2 2001/04/25 14:04:12 ru Exp $
3 # $DragonFly: src/gnu/usr.bin/gzip/Attic/Makefile,v 1.2 2003/06/17 04:25:46 dillon Exp $
4
5 PROG=   gzip
6 SRCS=   gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c \
7         crypt.c lzw.c unlzw.c unlzh.c unpack.c getopt.c
8 CFLAGS+=-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
9 .if ${MACHINE_ARCH} == "i386"
10 SRCS+=  match.S
11 CFLAGS+=-DASMV
12 .endif
13 SCRIPTS=gzexe zdiff zforce zmore znew
14 MAN=    gzexe.1 gzip.1 zdiff.1 zforce.1 zmore.1 znew.1
15
16 NOSHARED?=yes
17
18 LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
19 LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
20 LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat
21 LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp
22 MLINKS= gzip.1 gunzip.1 gzip.1 zcat.1 gzip.1 gzcat.1
23 MLINKS+= zdiff.1 zcmp.1
24
25 GREP_LIBZ?=     YES
26 .if defined(GREP_LIBZ) && empty(GREP_LIBZ)
27 SCRIPTS+=zgrep.getopt
28 MAN+=   zgrep.1
29 LINKS+= ${BINDIR}/zgrep ${BINDIR}/zegrep
30 LINKS+= ${BINDIR}/zgrep ${BINDIR}/zfgrep
31 MLINKS+= zgrep.1 zfgrep.1 zgrep.1 zegrep.1
32 .endif
33
34 match.o: ${.CURDIR}/match.S
35         $(CC) -E -traditional ${.CURDIR}/match.S >_match.s
36         $(CC) -c _match.s
37         mv -f _match.o match.o
38         rm -f _match.s
39
40 .include <bsd.prog.mk>