aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/Makefile.MID
blob: 05c34167b53ca8db6547c98e126ccd4f943b54a2 (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
LIB=libthread.a
VERSION=2.0
PORTPLACE=devel/libthread
NAME=libthread

OFILES=\
	$(OBJTYPE).$O\
	asm-$(SYSNAME)-$(OBJTYPE).$O\
	channel.$O\
	chanprint.$O\
	create.$O\
	debug.$O\
	exec-unix.$O\
	exit.$O\
	getpid.$O\
	id.$O\
	iocall.$O\
	ioclose.$O\
	ioopen.$O\
	ioproc.$O\
	ioread.$O\
	ioreadn.$O\
	iowrite.$O\
	kill.$O\
	lib.$O\
	main.$O\
	memset.$O\
	memsetd.$O\
	note.$O\
	proctab.$O\
	ref.$O\
	rendez.$O\
	sched.$O\

HFILES=\
	thread.h\
	label.h\
	threadimpl.h\

all: $(LIB)

install: $(LIB)
	test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
	install -m 0644 thread.3 $(PREFIX)/man/man3/thread.3
	install -m 0644 ioproc.3 $(PREFIX)/man/man3/ioproc.3
	install -m 0644 thread.h $(PREFIX)/include/thread.h
	install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)

tprimes: $(LIB) tprimes.$O
	$(CC) -o tprimes tprimes.$O $(LIB) -L$(PREFIX)/lib -l9 -lfmt -lutf

texec: $(LIB) texec.$O
	$(CC) -o texec texec.$O $(LIB) -L$(PREFIX)/lib -l9 -lfmt -lutf