OpenBSD/power support.
This commit is contained in:
parent
e9ad899486
commit
cea10000c5
9 changed files with 567 additions and 369 deletions
|
|
@ -15,6 +15,8 @@ OFILES=\
|
|||
<$PLAN9/src/mksyslib
|
||||
|
||||
HFILES=thread.h threadimpl.h
|
||||
OpenBSD.$O FreeBSD.$O: BSD.c
|
||||
NetBSD.$O: Linux.c
|
||||
|
||||
tprimes: tprimes.$O
|
||||
9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
|
||||
|
|
@ -24,9 +26,8 @@ tspawnloop: tspawnloop.$O
|
|||
9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
|
||||
|
||||
%.$O: %.c
|
||||
$CC -I. $stem.c
|
||||
$CC $CFLAGS -I. $stem.c
|
||||
|
||||
NetBSD.$O: Linux.c
|
||||
|
||||
test:V: tprimes tspawn
|
||||
primes 1 10007 >p1.txt
|
||||
|
|
@ -40,5 +41,3 @@ test:V: tprimes tspawn
|
|||
|
||||
CLEANFILES=p1.txt p2.txt tp1.txt tp2.txt
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue