Update to bzip2-1.0.4.
[dragonfly.git] / usr.bin / bzip2 / Makefile
blob569767ec0c5f59d5e0f3f8792f8d4282572dff4a
1 # $FreeBSD: src/usr.bin/bzip2/Makefile,v 1.5.2.2 2001/08/02 01:09:06 obrien Exp $
2 # $DragonFly: src/usr.bin/bzip2/Makefile,v 1.7 2007/01/20 05:57:40 pavalos Exp $
4 BZ2DIR= ${.CURDIR}/../../contrib/bzip2-1.0
6 .PATH: ${BZ2DIR}
8 PROG= bzip2
9 SRCS= bzip2.c
11 MAN= bzip2.1
12 CFLAGS+= -D_FILE_OFFSET_BITS=64
14 DPADD= ${LIBBZ2}
15 LDADD= -lbz2
17 NOSHARED?= YES
19 LINKS= ${BINDIR}/bzip2 ${BINDIR}/bunzip2
20 LINKS+= ${BINDIR}/bzip2 ${BINDIR}/bzcat
21 MLINKS= bzip2.1 bunzip2.1 bzip2.1 bzcat.1 bzip2.1 bzip2recover.1
23 REFFILES= sample1.ref sample2.ref sample3.ref
24 DREFFILES= sample1.bz2 sample2.bz2 sample3.bz2
25 TESTFILES= ${REFFILES} ${DREFFILES}
27 CLEANFILES+= sample1.rb2 sample2.rb2 sample3.rb2 \
28 sample1.tst sample2.tst sample3.tst
30 test: bzip2 ${TESTFILES}
31 @cat ${BZ2DIR}/words1
32 ./bzip2 -1 < ${BZ2DIR}/sample1.ref > sample1.rb2
33 ./bzip2 -2 < ${BZ2DIR}/sample2.ref > sample2.rb2
34 ./bzip2 -3 < ${BZ2DIR}/sample3.ref > sample3.rb2
35 ./bzip2 -d < ${BZ2DIR}/sample1.bz2 > sample1.tst
36 ./bzip2 -d < ${BZ2DIR}/sample2.bz2 > sample2.tst
37 ./bzip2 -ds < ${BZ2DIR}/sample3.bz2 > sample3.tst
38 cmp ${BZ2DIR}/sample1.bz2 sample1.rb2
39 cmp ${BZ2DIR}/sample2.bz2 sample2.rb2
40 cmp ${BZ2DIR}/sample3.bz2 sample3.rb2
41 cmp sample1.tst ${BZ2DIR}/sample1.ref
42 cmp sample2.tst ${BZ2DIR}/sample2.ref
43 cmp sample3.tst ${BZ2DIR}/sample3.ref
44 @cat ${BZ2DIR}/words3
46 .include <bsd.prog.mk>