3 SYSOFILES=`{sh ./sysofiles.sh}
17 HFILES=thread.h threadimpl.h
18 OpenBSD.$O FreeBSD.$O: BSD.c
22 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
24 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
25 tspawnloop: tspawnloop.$O
26 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
29 $CC $CFLAGS -I. $stem.c
32 test:V: tprimes tspawn
33 primes 1 10007 >p1.txt
34 $PLAN9/bin/time ./tprimes 10000 >tp1.txt
37 $PLAN9/bin/time ./tprimes 1000 >tp2.txt
39 echo tspawn should take 3 seconds, not 6
40 $PLAN9/bin/time ./tspawn sleep 3 >/dev/null
42 CLEANFILES=p1.txt p2.txt tp1.txt tp2.txt