thread libs: move libc_r and libthread_xu to /usr/lib/thread
[dragonfly.git] / lib / libpthread / Makefile
CommitLineData
a4bded30 1# $DragonFly: src/lib/libpthread/Makefile,v 1.6 2008/01/20 19:14:09 corecode Exp $
4491bca1
SS
2
3LIBNAME= libpthread
4SHLIB_MAJOR= 0
5SHLIB_NAME= ${LIBNAME}.so
6SONAME= ${SHLIB_NAME}.${SHLIB_MAJOR}
4491bca1
SS
7
8SRCS= dummy.c
d26feb1b 9WARNS?= 6
4491bca1 10
cd4602d1 11MAN+= \
183d29cf 12 pthread.3 \
15acf97d 13 pthread_atfork.3 \
183d29cf 14 pthread_attr.3 \
610da160
SW
15 pthread_attr_get_np.3 \
16 pthread_attr_setcreatesuspend_np.3 \
15acf97d
SW
17 pthread_barrier_destroy.3 \
18 pthread_barrierattr.3 \
610da160
SW
19 pthread_cancel.3 \
20 pthread_cleanup_pop.3 \
21 pthread_cleanup_push.3 \
22 pthread_getconcurrency.3 \
23 pthread_condattr.3 \
24 pthread_cond_broadcast.3 \
25 pthread_cond_destroy.3 \
26 pthread_cond_init.3 \
27 pthread_cond_signal.3 \
28 pthread_cond_timedwait.3 \
29 pthread_cond_wait.3 \
30 pthread_create.3 \
31 pthread_detach.3 \
32 pthread_equal.3 \
33 pthread_exit.3 \
34 pthread_getspecific.3 \
35 pthread_join.3 \
36 pthread_key_create.3 \
37 pthread_key_delete.3 \
38 pthread_kill.3 \
39 pthread_main_np.3 \
40 pthread_multi_np.3 \
41 pthread_mutexattr.3 \
42 pthread_mutexattr_getkind_np.3 \
43 pthread_mutex_destroy.3 \
44 pthread_mutex_init.3 \
45 pthread_mutex_lock.3 \
15acf97d 46 pthread_mutex_timedlock.3 \
610da160
SW
47 pthread_mutex_trylock.3 \
48 pthread_mutex_unlock.3 \
49 pthread_once.3 \
50 pthread_resume_all_np.3 \
51 pthread_resume_np.3 \
15acf97d
SW
52 pthread_rwlockattr_destroy.3 \
53 pthread_rwlockattr_getpshared.3 \
54 pthread_rwlockattr_init.3 \
55 pthread_rwlockattr_setpshared.3 \
610da160
SW
56 pthread_rwlock_destroy.3 \
57 pthread_rwlock_init.3 \
58 pthread_rwlock_rdlock.3 \
15acf97d
SW
59 pthread_rwlock_timedrdlock.3 \
60 pthread_rwlock_timedwrlock.3 \
610da160
SW
61 pthread_rwlock_unlock.3 \
62 pthread_rwlock_wrlock.3 \
610da160
SW
63 pthread_schedparam.3 \
64 pthread_self.3 \
65 pthread_set_name_np.3 \
66 pthread_setspecific.3 \
67 pthread_sigmask.3 \
15acf97d
SW
68 pthread_spin_init.3 \
69 pthread_spin_lock.3 \
610da160
SW
70 pthread_suspend_all_np.3 \
71 pthread_suspend_np.3 \
72 pthread_switch_add_np.3 \
73 pthread_testcancel.3 \
15acf97d 74 pthread_yield.3 \
610da160
SW
75 sem_destroy.3 \
76 sem_getvalue.3 \
77 sem_init.3 \
78 sem_open.3 \
79 sem_post.3 \
80 sem_wait.3 \
81 sigwait.3
82
83MLINKS+= \
84 pthread_attr.3 pthread_attr_destroy.3 \
85 pthread_attr.3 pthread_attr_getdetachstate.3 \
a8dfb9a0 86 pthread_attr.3 pthread_attr_getguardsize.3 \
610da160
SW
87 pthread_attr.3 pthread_attr_getinheritsched.3 \
88 pthread_attr.3 pthread_attr_getschedparam.3 \
89 pthread_attr.3 pthread_attr_getschedpolicy.3 \
90 pthread_attr.3 pthread_attr_getscope.3 \
91 pthread_attr.3 pthread_attr_getstack.3 \
92 pthread_attr.3 pthread_attr_getstackaddr.3 \
93 pthread_attr.3 pthread_attr_getstacksize.3 \
94 pthread_attr.3 pthread_attr_init.3 \
95 pthread_attr.3 pthread_attr_setdetachstate.3 \
a8dfb9a0 96 pthread_attr.3 pthread_attr_setguardsize.3 \
610da160
SW
97 pthread_attr.3 pthread_attr_setinheritsched.3 \
98 pthread_attr.3 pthread_attr_setschedparam.3 \
99 pthread_attr.3 pthread_attr_setschedpolicy.3 \
100 pthread_attr.3 pthread_attr_setscope.3 \
101 pthread_attr.3 pthread_attr_setstack.3 \
102 pthread_attr.3 pthread_attr_setstackaddr.3 \
103 pthread_attr.3 pthread_attr_setstacksize.3 \
15acf97d
SW
104 pthread_barrierattr.3 pthread_barrierattr_destroy.3 \
105 pthread_barrierattr.3 pthread_barrierattr_getpshared.3 \
106 pthread_barrierattr.3 pthread_barrierattr_init.3 \
107 pthread_barrierattr.3 pthread_barrierattr_setpshared.3 \
108 pthread_barrier_destroy.3 pthread_barrier_init.3 \
109 pthread_barrier_destroy.3 pthread_barrier_wait.3 \
610da160
SW
110 pthread_condattr.3 pthread_condattr_init.3 \
111 pthread_condattr.3 pthread_condattr_destroy.3 \
15acf97d 112 pthread_getconcurrency.3 pthread_setconcurrency.3 \
610da160
SW
113 pthread_multi_np.3 pthread_single_np.3 \
114 pthread_mutexattr.3 pthread_mutexattr_init.3 \
115 pthread_mutexattr.3 pthread_mutexattr_destroy.3 \
116 pthread_mutexattr.3 pthread_mutexattr_getprioceiling.3 \
117 pthread_mutexattr.3 pthread_mutexattr_getprotocol.3 \
118 pthread_mutexattr.3 pthread_mutexattr_gettype.3 \
119 pthread_mutexattr.3 pthread_mutexattr_setprioceiling.3 \
120 pthread_mutexattr.3 pthread_mutexattr_setprotocol.3 \
121 pthread_mutexattr.3 pthread_mutexattr_settype.3 \
122 pthread_mutexattr_getkind_np.3 pthread_mutexattr_setkind_np.3 \
123 pthread_rwlock_rdlock.3 pthread_rwlock_tryrdlock.3 \
124 pthread_rwlock_wrlock.3 pthread_rwlock_trywrlock.3 \
125 pthread_schedparam.3 pthread_getschedparam.3 \
126 pthread_schedparam.3 pthread_setschedparam.3 \
15acf97d
SW
127 pthread_spin_init.3 pthread_spin_destroy.3 \
128 pthread_spin_lock.3 pthread_spin_trylock.3 \
129 pthread_spin_lock.3 pthread_spin_unlock.3 \
610da160
SW
130 pthread_switch_add_np.3 pthread_switch_delete_np.3 \
131 pthread_testcancel.3 pthread_setcancelstate.3 \
132 pthread_testcancel.3 pthread_setcanceltype.3 \
133 sem_open.3 sem_close.3 \
134 sem_open.3 sem_unlink.3 \
135 sem_wait.3 sem_trywait.3
136
4491bca1
SS
137realinstall: linkinstall
138linkinstall:
139 # Do not overwrite existing symlinks
459aea46 140 if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \
54674d33 141 ${LN} -fs thread/lib${THREAD_LIB}.so \
459aea46 142 ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \
4491bca1
SS
143 fi
144 if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \
54674d33 145 ${LN} -fs thread/lib${THREAD_LIB}.a \
4491bca1
SS
146 ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \
147 fi
148
149.include <bsd.lib.mk>