| SYSOFILES=`{sh ./sysofiles.sh} |
| HFILES=thread.h threadimpl.h |
| OpenBSD.$O FreeBSD.$O: BSD.c |
| 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread |
| 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread |
| tspawnloop: tspawnloop.$O |
| 9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread |
| # cannot use generic .S rule because it conflicts |
| # with generic .s rule in mkcommon on case-insensitive |
| OpenBSD-power-asm.$O: OpenBSD-power-asm.S |
| $PLAN9/bin/time ./tprimes 10000 >tp1.txt |
| $PLAN9/bin/time ./tprimes 1000 >tp2.txt |
| echo tspawn should take 3 seconds, not 6 |
| $PLAN9/bin/time ./tspawn sleep 3 >/dev/null |
| CLEANFILES=p1.txt p2.txt tp1.txt tp2.txt |