HAMMER 61F2/Many: Fix bug in last commit
[dragonfly.git] / usr.bin / bzip2 / Makefile
blobf18755b6e14c2b84d8b8b54cf48027af1c647543
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.8 2007/08/27 16:50:51 pavalos Exp $
4 BZ2DIR= ${.CURDIR}/../../contrib/bzip2-1.0
6 .PATH: ${BZ2DIR}
8 PROG= bzip2
9 WARNS?= 2
11 CFLAGS+= -D_FILE_OFFSET_BITS=64
13 DPADD= ${LIBBZ2}
14 LDADD= -lbz2
16 NOSHARED?= YES
18 LINKS= ${BINDIR}/bzip2 ${BINDIR}/bunzip2
19 LINKS+= ${BINDIR}/bzip2 ${BINDIR}/bzcat
20 MLINKS= bzip2.1 bunzip2.1 bzip2.1 bzcat.1 bzip2.1 bzip2recover.1
22 REFFILES= sample1.ref sample2.ref sample3.ref
23 DREFFILES= sample1.bz2 sample2.bz2 sample3.bz2
24 TESTFILES= ${REFFILES} ${DREFFILES}
26 CLEANFILES+= sample1.rb2 sample2.rb2 sample3.rb2 \
27 sample1.tst sample2.tst sample3.tst
29 test: bzip2 ${TESTFILES}
30 @cat ${BZ2DIR}/words1
31 ./bzip2 -1 < ${BZ2DIR}/sample1.ref > sample1.rb2
32 ./bzip2 -2 < ${BZ2DIR}/sample2.ref > sample2.rb2
33 ./bzip2 -3 < ${BZ2DIR}/sample3.ref > sample3.rb2
34 ./bzip2 -d < ${BZ2DIR}/sample1.bz2 > sample1.tst
35 ./bzip2 -d < ${BZ2DIR}/sample2.bz2 > sample2.tst
36 ./bzip2 -ds < ${BZ2DIR}/sample3.bz2 > sample3.tst
37 cmp ${BZ2DIR}/sample1.bz2 sample1.rb2
38 cmp ${BZ2DIR}/sample2.bz2 sample2.rb2
39 cmp ${BZ2DIR}/sample3.bz2 sample3.rb2
40 cmp sample1.tst ${BZ2DIR}/sample1.ref
41 cmp sample2.tst ${BZ2DIR}/sample2.ref
42 cmp sample3.tst ${BZ2DIR}/sample3.ref
43 @cat ${BZ2DIR}/words3
45 .include <bsd.prog.mk>