aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/mkfile
blob: 6492bb931022862956197297c01dae48ce06e3c2 (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
66
67
68
69
70
71
72
73
<$PLAN9/src/mkhdr

LIB=libthread.a
SYSOFILES=`sh ./sysofiles.sh`
OFILES=\
	$SYSOFILES\
	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\
	lib.$O\
	main.$O\
	memset.$O\
	memsetd.$O\
	read9pmsg.$O\
	ref.$O\
	sched.$O\
	setproc.$O\
	sleep.$O\

HFILES=\
	$PLAN9/include/thread.h\
	label.h\
	threadimpl.h\

<$PLAN9/src/mksyslib

tfork: tfork.$O $PLAN9/lib/$LIB
	$LD -o tfork tfork.$O $LDFLAGS -lthread -l9

tprimes: tprimes.$O $PLAN9/lib/$LIB
	$LD -o tprimes tprimes.$O $LDFLAGS -lthread -l9

texec: texec.$O $PLAN9/lib/$LIB
	$LD -o texec texec.$O $LDFLAGS -lthread -l9

tspawn: tspawn.$O $PLAN9/lib/$LIB
	$LD -o tspawn tspawn.$O $LDFLAGS -lthread -l9

trend: trend.$O $PLAN9/lib/$LIB
	$LD -o trend trend.$O $LDFLAGS -lthread -l9

tsignal: tsignal.$O $PLAN9/lib/$LIB
	$LD -o tsignal tsignal.$O $LDFLAGS -lthread -l9

CLEANFILES=$CLEANFILES tprimes texec

asm-Linux-ppc.$O: asm-Linux-386.s
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

Linux-clone.$O: execproc.ch exit-getpid.ch proctab.ch procstack.ch