URI: 
       tmkfile - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tmkfile (849B)
       ---
            1 <$PLAN9/src/mkhdr
            2 
            3 OFILES=
            4 
            5 TARG=\
            6         bzip2\
            7         bunzip2\
            8 
            9 HFILES=\
           10         lib/os.h\
           11         lib/bzlib.h\
           12         lib/plan9.h\
           13 
           14 LIB=lib/libbzip2.a
           15 
           16 <$PLAN9/src/mkmany
           17 
           18 CFLAGS=$CFLAGS -DPLAN9 -Ilib
           19 
           20 test:V: $O.bzip2 $O.bunzip2
           21         ./$O.bzip2 -1  < sample1.ref > sample1.rb2
           22         ./$O.bzip2 -2  < sample2.ref > sample2.rb2
           23         ./$O.bzip2 -3  < sample3.ref > sample3.rb2
           24         ./$O.bunzip2  < sample1.bz2 > sample1.tst
           25         ./$O.bunzip2  < sample2.bz2 > sample2.tst
           26         ./$O.bunzip2 < sample3.bz2 > sample3.tst
           27         cmp sample1.bz2 sample1.rb2 
           28         cmp sample2.bz2 sample2.rb2
           29         cmp sample3.bz2 sample3.rb2
           30         cmp sample1.tst sample1.ref
           31         cmp sample2.tst sample2.ref
           32         cmp sample3.tst sample3.ref
           33 
           34 bzip2recover.$O: bzip2recover.c
           35         pcc -D_POSIX_SOURCE -D_BSD_EXTENSION -c bzip2recover.c
           36 
           37 clean:V:
           38         rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* $TARG *.rb2 *.tst
           39         cd lib; mk clean
           40 
           41 lib/libbzip2.a:
           42         cd lib; mk
           43