Blob


1 PLAN9=../../..
2 <$PLAN9/src/mkhdr
4 OFILES=
6 TARG=\
7 bzip2\
8 bunzip2\
10 HFILES=\
11 lib/os.h\
12 lib/bzlib.h\
13 lib/plan9.h\
15 LIB=lib/libbzip2.a
17 SHORTLIB=bio 9
18 <$PLAN9/src/mkmany
20 CFLAGS=$CFLAGS -p -DPLAN9 -Ilib
22 test:V: $O.bzip2 $O.bunzip2
23 ./$O.bzip2 -1 < sample1.ref > sample1.rb2
24 ./$O.bzip2 -2 < sample2.ref > sample2.rb2
25 ./$O.bzip2 -3 < sample3.ref > sample3.rb2
26 ./$O.bunzip2 < sample1.bz2 > sample1.tst
27 ./$O.bunzip2 < sample2.bz2 > sample2.tst
28 ./$O.bunzip2 < sample3.bz2 > sample3.tst
29 cmp sample1.bz2 sample1.rb2
30 cmp sample2.bz2 sample2.rb2
31 cmp sample3.bz2 sample3.rb2
32 cmp sample1.tst sample1.ref
33 cmp sample2.tst sample2.ref
34 cmp sample3.tst sample3.ref
36 bzip2recover.$O: bzip2recover.c
37 pcc -D_POSIX_SOURCE -D_BSD_EXTENSION -c bzip2recover.c
39 clean:V:
40 rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* $TARG *.rb2 *.tst
41 cd lib; mk clean
43 lib/libbzip2.a:
44 cd lib; mk