1#	@(#)Makefile	8.2 (Berkeley) 12/13/93
2# $FreeBSD$
3
4.include <bsd.own.mk>
5
6MAN=		assert.3 \
7		ATOMIC_VAR_INIT.3 \
8		bitstring.3 \
9		end.3 \
10		fpgetround.3 \
11		intro.3 \
12		makedev.3 \
13		offsetof.3 \
14		${PTHREAD_MAN} \
15		queue.3 \
16		siginfo.3 \
17		stdarg.3 \
18		sysexits.3 \
19		tgmath.3 \
20		timeradd.3 \
21		tree.3
22
23MLINKS=		ATOMIC_VAR_INIT.3 atomic_compare_exchange_strong.3 \
24		ATOMIC_VAR_INIT.3 atomic_compare_exchange_strong_explicit.3 \
25		ATOMIC_VAR_INIT.3 atomic_compare_exchange_weak.3 \
26		ATOMIC_VAR_INIT.3 atomic_compare_exchange_weak_explicit.3 \
27		ATOMIC_VAR_INIT.3 atomic_exchange.3 \
28		ATOMIC_VAR_INIT.3 atomic_exchange_explicit.3 \
29		ATOMIC_VAR_INIT.3 atomic_fetch_add.3 \
30		ATOMIC_VAR_INIT.3 atomic_fetch_add_explicit.3 \
31		ATOMIC_VAR_INIT.3 atomic_fetch_and.3 \
32		ATOMIC_VAR_INIT.3 atomic_fetch_and_explicit.3 \
33		ATOMIC_VAR_INIT.3 atomic_fetch_or.3 \
34		ATOMIC_VAR_INIT.3 atomic_fetch_or_explicit.3 \
35		ATOMIC_VAR_INIT.3 atomic_fetch_sub.3 \
36		ATOMIC_VAR_INIT.3 atomic_fetch_sub_explicit.3 \
37		ATOMIC_VAR_INIT.3 atomic_fetch_xor.3 \
38		ATOMIC_VAR_INIT.3 atomic_fetch_xor_explicit.3 \
39		ATOMIC_VAR_INIT.3 atomic_init.3 \
40		ATOMIC_VAR_INIT.3 atomic_is_lock_free.3 \
41		ATOMIC_VAR_INIT.3 atomic_load.3 \
42		ATOMIC_VAR_INIT.3 atomic_load_explicit.3 \
43		ATOMIC_VAR_INIT.3 atomic_store.3 \
44		ATOMIC_VAR_INIT.3 atomic_store_explicit.3
45MLINKS+=	bitstring.3 bit_alloc.3 \
46		bitstring.3 bit_clear.3 \
47		bitstring.3 bit_decl.3 \
48		bitstring.3 bit_ffc.3 \
49		bitstring.3 bit_ffs.3 \
50		bitstring.3 bit_nclear.3 \
51		bitstring.3 bit_nset.3 \
52		bitstring.3 bit_set.3 \
53		bitstring.3 bitstr_size.3 \
54		bitstring.3 bit_test.3
55MLINKS+=	end.3 edata.3 \
56		end.3 etext.3
57MLINKS+=	fpgetround.3 fpgetmask.3 \
58		fpgetround.3 fpgetprec.3 \
59		fpgetround.3 fpgetsticky.3 \
60		fpgetround.3 fpresetsticky.3 \
61		fpgetround.3 fpsetmask.3 \
62		fpgetround.3 fpsetprec.3 \
63		fpgetround.3 fpsetround.3
64MLINKS+=	makedev.3 major.3 \
65		makedev.3 minor.3
66MLINKS+=	${PTHREAD_MLINKS}
67MLINKS+=	queue.3 LIST_EMPTY.3 \
68		queue.3 LIST_ENTRY.3 \
69		queue.3 LIST_FIRST.3 \
70		queue.3 LIST_FOREACH.3 \
71		queue.3 LIST_FOREACH_SAFE.3 \
72		queue.3 LIST_HEAD.3 \
73		queue.3 LIST_HEAD_INITIALIZER.3 \
74		queue.3 LIST_INIT.3 \
75		queue.3 LIST_INSERT_AFTER.3 \
76		queue.3 LIST_INSERT_BEFORE.3 \
77		queue.3 LIST_INSERT_HEAD.3 \
78		queue.3 LIST_NEXT.3 \
79		queue.3 LIST_PREV.3 \
80		queue.3 LIST_REMOVE.3 \
81		queue.3 LIST_SWAP.3 \
82		queue.3 SLIST_EMPTY.3 \
83		queue.3 SLIST_ENTRY.3 \
84		queue.3 SLIST_FIRST.3 \
85		queue.3 SLIST_FOREACH.3 \
86		queue.3 SLIST_FOREACH_SAFE.3 \
87		queue.3 SLIST_HEAD.3 \
88		queue.3 SLIST_HEAD_INITIALIZER.3 \
89		queue.3 SLIST_INIT.3 \
90		queue.3 SLIST_INSERT_AFTER.3 \
91		queue.3 SLIST_INSERT_HEAD.3 \
92		queue.3 SLIST_NEXT.3 \
93		queue.3 SLIST_REMOVE.3 \
94		queue.3 SLIST_REMOVE_AFTER.3 \
95		queue.3 SLIST_REMOVE_HEAD.3 \
96		queue.3 SLIST_SWAP.3 \
97		queue.3 STAILQ_CONCAT.3 \
98		queue.3 STAILQ_EMPTY.3 \
99		queue.3 STAILQ_ENTRY.3 \
100		queue.3 STAILQ_FIRST.3 \
101		queue.3 STAILQ_FOREACH.3 \
102		queue.3 STAILQ_FOREACH_SAFE.3 \
103		queue.3 STAILQ_HEAD.3 \
104		queue.3 STAILQ_HEAD_INITIALIZER.3 \
105		queue.3 STAILQ_INIT.3 \
106		queue.3 STAILQ_INSERT_AFTER.3 \
107		queue.3 STAILQ_INSERT_HEAD.3 \
108		queue.3 STAILQ_INSERT_TAIL.3 \
109		queue.3 STAILQ_LAST.3 \
110		queue.3 STAILQ_NEXT.3 \
111		queue.3 STAILQ_REMOVE.3 \
112		queue.3 STAILQ_REMOVE_AFTER.3 \
113		queue.3 STAILQ_REMOVE_HEAD.3 \
114		queue.3 STAILQ_SWAP.3 \
115		queue.3 TAILQ_CONCAT.3 \
116		queue.3 TAILQ_EMPTY.3 \
117		queue.3 TAILQ_ENTRY.3 \
118		queue.3 TAILQ_FIRST.3 \
119		queue.3 TAILQ_FOREACH.3 \
120		queue.3 TAILQ_FOREACH_REVERSE.3 \
121		queue.3 TAILQ_FOREACH_REVERSE_SAFE.3 \
122		queue.3 TAILQ_FOREACH_SAFE.3 \
123		queue.3 TAILQ_HEAD.3 \
124		queue.3 TAILQ_HEAD_INITIALIZER.3 \
125		queue.3 TAILQ_INIT.3 \
126		queue.3 TAILQ_INSERT_AFTER.3 \
127		queue.3 TAILQ_INSERT_BEFORE.3 \
128		queue.3 TAILQ_INSERT_HEAD.3 \
129		queue.3 TAILQ_INSERT_TAIL.3 \
130		queue.3 TAILQ_LAST.3 \
131		queue.3 TAILQ_NEXT.3 \
132		queue.3 TAILQ_PREV.3 \
133		queue.3 TAILQ_REMOVE.3 \
134		queue.3 TAILQ_SWAP.3
135MLINKS+=	stdarg.3 va_arg.3 \
136		stdarg.3 va_copy.3 \
137		stdarg.3 va_end.3 \
138		stdarg.3 varargs.3 \
139		stdarg.3 va_start.3
140MLINKS+=	timeradd.3 timerclear.3 \
141		timeradd.3 timercmp.3 \
142		timeradd.3 timerisset.3 \
143		timeradd.3 timersub.3
144MLINKS+=	tree.3 RB_EMPTY.3 \
145		tree.3 RB_ENTRY.3 \
146		tree.3 RB_FIND.3 \
147		tree.3 RB_FOREACH.3 \
148		tree.3 RB_FOREACH_REVERSE.3 \
149		tree.3 RB_GENERATE.3 \
150		tree.3 RB_GENERATE_STATIC.3 \
151		tree.3 RB_HEAD.3 \
152		tree.3 RB_INIT.3 \
153		tree.3 RB_INITIALIZER.3 \
154		tree.3 RB_INSERT.3 \
155		tree.3 RB_LEFT.3 \
156		tree.3 RB_MAX.3 \
157		tree.3 RB_MIN.3 \
158		tree.3 RB_NEXT.3 \
159		tree.3 RB_NFIND.3 \
160		tree.3 RB_PARENT.3 \
161		tree.3 RB_PREV.3 \
162		tree.3 RB_PROTOTYPE.3 \
163		tree.3 RB_PROTOTYPE_STATIC.3 \
164		tree.3 RB_REMOVE.3 \
165		tree.3 RB_RIGHT.3 \
166		tree.3 RB_ROOT.3 \
167		tree.3 SPLAY_EMPTY.3 \
168		tree.3 SPLAY_ENTRY.3 \
169		tree.3 SPLAY_FIND.3 \
170		tree.3 SPLAY_FOREACH.3 \
171		tree.3 SPLAY_GENERATE.3 \
172		tree.3 SPLAY_HEAD.3 \
173		tree.3 SPLAY_INIT.3 \
174		tree.3 SPLAY_INITIALIZER.3 \
175		tree.3 SPLAY_INSERT.3 \
176		tree.3 SPLAY_LEFT.3 \
177		tree.3 SPLAY_MAX.3 \
178		tree.3 SPLAY_MIN.3 \
179		tree.3 SPLAY_NEXT.3 \
180		tree.3 SPLAY_PROTOTYPE.3 \
181		tree.3 SPLAY_REMOVE.3 \
182		tree.3 SPLAY_RIGHT.3 \
183		tree.3 SPLAY_ROOT.3
184
185.if ${MK_LIBTHR} != "no"
186PTHREAD_MAN=	pthread.3 \
187		pthread_affinity_np.3 \
188		pthread_atfork.3 \
189		pthread_attr.3 \
190		pthread_attr_affinity_np.3 \
191		pthread_attr_get_np.3 \
192		pthread_attr_setcreatesuspend_np.3 \
193		pthread_barrierattr.3 \
194		pthread_barrier_destroy.3 \
195		pthread_cancel.3 \
196		pthread_cleanup_pop.3 \
197		pthread_cleanup_push.3 \
198		pthread_condattr.3 \
199		pthread_cond_broadcast.3 \
200		pthread_cond_destroy.3 \
201		pthread_cond_init.3 \
202		pthread_cond_signal.3 \
203		pthread_cond_timedwait.3 \
204		pthread_cond_wait.3 \
205		pthread_create.3 \
206		pthread_detach.3 \
207		pthread_equal.3 \
208		pthread_exit.3 \
209		pthread_getconcurrency.3 \
210		pthread_getcpuclockid.3 \
211		pthread_getspecific.3 \
212		pthread_getthreadid_np.3 \
213		pthread_join.3 \
214		pthread_key_create.3 \
215		pthread_key_delete.3 \
216		pthread_kill.3 \
217		pthread_main_np.3 \
218		pthread_multi_np.3 \
219		pthread_mutexattr.3 \
220		pthread_mutexattr_getkind_np.3 \
221		pthread_mutex_destroy.3 \
222		pthread_mutex_init.3 \
223		pthread_mutex_lock.3 \
224		pthread_mutex_timedlock.3 \
225		pthread_mutex_trylock.3 \
226		pthread_mutex_unlock.3 \
227		pthread_once.3 \
228		pthread_resume_all_np.3 \
229		pthread_resume_np.3 \
230		pthread_rwlockattr_destroy.3 \
231		pthread_rwlockattr_getpshared.3 \
232		pthread_rwlockattr_init.3 \
233		pthread_rwlockattr_setpshared.3 \
234		pthread_rwlock_destroy.3 \
235		pthread_rwlock_init.3 \
236		pthread_rwlock_rdlock.3 \
237		pthread_rwlock_timedrdlock.3 \
238		pthread_rwlock_timedwrlock.3 \
239		pthread_rwlock_unlock.3 \
240		pthread_rwlock_wrlock.3 \
241		pthread_schedparam.3 \
242		pthread_self.3 \
243		pthread_set_name_np.3 \
244		pthread_setspecific.3 \
245		pthread_sigmask.3 \
246		pthread_spin_init.3 \
247		pthread_spin_lock.3 \
248		pthread_suspend_all_np.3 \
249		pthread_suspend_np.3 \
250		pthread_switch_add_np.3 \
251		pthread_testcancel.3 \
252		pthread_yield.3
253
254PTHREAD_MLINKS=	pthread_affinity_np.3 pthread_getaffinity_np.3 \
255		pthread_affinity_np.3 pthread_setaffinity_np.3
256PTHREAD_MLINKS+=pthread_attr.3 pthread_attr_destroy.3 \
257		pthread_attr.3 pthread_attr_getdetachstate.3 \
258		pthread_attr.3 pthread_attr_getguardsize.3 \
259		pthread_attr.3 pthread_attr_getinheritsched.3 \
260		pthread_attr.3 pthread_attr_getschedparam.3 \
261		pthread_attr.3 pthread_attr_getschedpolicy.3 \
262		pthread_attr.3 pthread_attr_getscope.3 \
263		pthread_attr.3 pthread_attr_getstack.3 \
264		pthread_attr.3 pthread_attr_getstackaddr.3 \
265		pthread_attr.3 pthread_attr_getstacksize.3 \
266		pthread_attr.3 pthread_attr_init.3 \
267		pthread_attr.3 pthread_attr_setdetachstate.3 \
268		pthread_attr.3 pthread_attr_setguardsize.3 \
269		pthread_attr.3 pthread_attr_setinheritsched.3 \
270		pthread_attr.3 pthread_attr_setschedparam.3 \
271		pthread_attr.3 pthread_attr_setschedpolicy.3 \
272		pthread_attr.3 pthread_attr_setscope.3 \
273		pthread_attr.3 pthread_attr_setstack.3 \
274		pthread_attr.3 pthread_attr_setstackaddr.3 \
275		pthread_attr.3 pthread_attr_setstacksize.3
276PTHREAD_MLINKS+=pthread_attr_affinity_np.3 pthread_attr_getaffinity_np.3 \
277		pthread_attr_affinity_np.3 pthread_attr_setaffinity_np.3
278PTHREAD_MLINKS+=pthread_barrierattr.3 pthread_barrierattr_destroy.3 \
279		pthread_barrierattr.3 pthread_barrierattr_getpshared.3 \
280		pthread_barrierattr.3 pthread_barrierattr_init.3 \
281		pthread_barrierattr.3 pthread_barrierattr_setpshared.3
282PTHREAD_MLINKS+=pthread_barrier_destroy.3 pthread_barrier_init.3 \
283		pthread_barrier_destroy.3 pthread_barrier_wait.3
284PTHREAD_MLINKS+=pthread_condattr.3 pthread_condattr_destroy.3 \
285		pthread_condattr.3 pthread_condattr_init.3 \
286		pthread_condattr.3 pthread_condattr_getclock.3 \
287		pthread_condattr.3 pthread_condattr_setclock.3 \
288		pthread_condattr.3 pthread_condattr_getpshared.3 \
289		pthread_condattr.3 pthread_condattr_setpshared.3
290PTHREAD_MLINKS+=pthread_getconcurrency.3 pthread_setconcurrency.3
291PTHREAD_MLINKS+=pthread_multi_np.3 pthread_single_np.3
292PTHREAD_MLINKS+=pthread_mutexattr.3 pthread_mutexattr_destroy.3 \
293		pthread_mutexattr.3 pthread_mutexattr_getprioceiling.3 \
294		pthread_mutexattr.3 pthread_mutexattr_getprotocol.3 \
295		pthread_mutexattr.3 pthread_mutexattr_gettype.3 \
296		pthread_mutexattr.3 pthread_mutexattr_init.3 \
297		pthread_mutexattr.3 pthread_mutexattr_setprioceiling.3 \
298		pthread_mutexattr.3 pthread_mutexattr_setprotocol.3 \
299		pthread_mutexattr.3 pthread_mutexattr_settype.3
300PTHREAD_MLINKS+=pthread_mutexattr_getkind_np.3 pthread_mutexattr_setkind_np.3
301PTHREAD_MLINKS+=pthread_rwlock_rdlock.3 pthread_rwlock_tryrdlock.3
302PTHREAD_MLINKS+=pthread_rwlock_wrlock.3 pthread_rwlock_trywrlock.3
303PTHREAD_MLINKS+=pthread_schedparam.3 pthread_getschedparam.3 \
304		pthread_schedparam.3 pthread_setschedparam.3
305PTHREAD_MLINKS+=pthread_spin_init.3 pthread_spin_destroy.3 \
306		pthread_spin_lock.3 pthread_spin_trylock.3 \
307		pthread_spin_lock.3 pthread_spin_unlock.3
308PTHREAD_MLINKS+=pthread_switch_add_np.3 pthread_switch_delete_np.3
309PTHREAD_MLINKS+=pthread_testcancel.3 pthread_setcancelstate.3 \
310		pthread_testcancel.3 pthread_setcanceltype.3
311PTHREAD_MLINKS+=pthread_join.3 pthread_timedjoin_np.3
312.endif
313
314.include <bsd.prog.mk>
315