blob: f8ec8e806b520a40b82927f2688ae802a872983f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<$PLAN9/src/mkhdr
LIB=libthread.a
OFILES=\
$OBJTYPE.$O\
asm-$SYSNAME-$OBJTYPE.$O\
channel.$O\
chanprint.$O\
create.$O\
debug.$O\
exec-unix.$O\
exit.$O\
fdwait.$O\
getpid.$O\
id.$O\
iocall.$O\
ioclose.$O\
iodial.$O\
ioopen.$O\
ioproc.$O\
ioread.$O\
ioreadn.$O\
iosleep.$O\
iowrite.$O\
kill.$O\
lib.$O\
main.$O\
memset.$O\
memsetd.$O\
note.$O\
proctab.$O\
read9pmsg.$O\
ref.$O\
rendez.$O\
sched.$O\
HFILES=\
$PLAN9/include/thread.h\
label.h\
threadimpl.h\
<$PLAN9/src/mksyslib
tprimes: tprimes.$O $PLAN9/lib/$LIB
$LD -o tprimes tprimes.$O $LDFLAGS -lthread -l9 -lfmt -lutf
texec: texec.$O $PLAN9/lib/$LIB
$LD -o texec texec.$O $LDFLAGS -lthread -l9 -lfmt -lutf
trend: trend.$O $PLAN9/lib/$LIB
$LD -o trend trend.$O $LDFLAGS -lthread -l9 -lfmt -lutf
CLEANFILES=$CLEANFILES tprimes texec
asm-Linux-386.$O: asm-FreeBSD-386.s
asm-NetBSD-386.$O: asm-FreeBSD-386.s
asm-OpenBSD-386.$O: asm-FreeBSD-386.s
# sorry
VG=`test -d /home/rsc/pub/valgrind-debian && echo -DUSEVALGRIND`
# VG=
CFLAGS=$CFLAGS $VG
|