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 $ 3 4BZ2DIR= ${.CURDIR}/../../contrib/bzip2-1.0 5 6.PATH: ${BZ2DIR} 7 8PROG= bzip2 9WARNS?= 2 10 11CFLAGS+= -D_FILE_OFFSET_BITS=64 12 13DPADD= ${LIBBZ2} 14LDADD= -lbz2 15 16NOSHARED?= YES 17 18LINKS= ${BINDIR}/bzip2 ${BINDIR}/bunzip2 19LINKS+= ${BINDIR}/bzip2 ${BINDIR}/bzcat 20MLINKS= bzip2.1 bunzip2.1 bzip2.1 bzcat.1 bzip2.1 bzip2recover.1 21 22REFFILES= sample1.ref sample2.ref sample3.ref 23DREFFILES= sample1.bz2 sample2.bz2 sample3.bz2 24TESTFILES= ${REFFILES} ${DREFFILES} 25 26CLEANFILES+= sample1.rb2 sample2.rb2 sample3.rb2 \ 27 sample1.tst sample2.tst sample3.tst 28 29test: 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 44 45.include <bsd.prog.mk> 46