1 619085f0 2004-12-25 devnull <$PLAN9/src/mkhdr
3 4dbefdd4 2004-12-27 devnull SYSOFILES=`{sh ./sysofiles.sh}
4 619085f0 2004-12-25 devnull LIB=libthread.a
6 4dbefdd4 2004-12-27 devnull $SYSOFILES\
7 619085f0 2004-12-25 devnull channel.$O\
8 2c87dda8 2004-12-28 devnull daemonize.$O\
10 619085f0 2004-12-25 devnull ioproc.$O\
13 619085f0 2004-12-25 devnull thread.$O\
15 619085f0 2004-12-25 devnull <$PLAN9/src/mksyslib
17 619085f0 2004-12-25 devnull HFILES=thread.h threadimpl.h
19 619085f0 2004-12-25 devnull tprimes: tprimes.$O
20 619085f0 2004-12-25 devnull 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
21 619085f0 2004-12-25 devnull tspawn: tspawn.$O
22 619085f0 2004-12-25 devnull 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
23 619085f0 2004-12-25 devnull tspawnloop: tspawnloop.$O
24 619085f0 2004-12-25 devnull 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
26 619085f0 2004-12-25 devnull %.$O: %.c
27 619085f0 2004-12-25 devnull 9c -I. $stem.c
29 619085f0 2004-12-25 devnull test:V: tprimes tspawn
30 619085f0 2004-12-25 devnull primes 1 10007 >p1.txt
31 619085f0 2004-12-25 devnull $PLAN9/bin/time ./tprimes 10000 >tp1.txt
32 619085f0 2004-12-25 devnull cmp p1.txt tp1.txt
33 619085f0 2004-12-25 devnull primes 1 1009 >p2.txt
34 619085f0 2004-12-25 devnull $PLAN9/bin/time ./tprimes 1000 >tp2.txt
35 619085f0 2004-12-25 devnull cmp p2.txt tp2.txt
36 619085f0 2004-12-25 devnull echo tspawn should take 3 seconds, not 6
37 619085f0 2004-12-25 devnull $PLAN9/bin/time ./tspawn sleep 3 >/dev/null
39 619085f0 2004-12-25 devnull CLEANFILES=p1.txt p2.txt tp1.txt tp2.txt