thread libs: move libc_r and libthread_xu to /usr/lib/thread
[dragonfly.git] / lib / libpthread / Makefile
1 # $DragonFly: src/lib/libpthread/Makefile,v 1.6 2008/01/20 19:14:09 corecode Exp $
2
3 LIBNAME=        libpthread
4 SHLIB_MAJOR=    0
5 SHLIB_NAME=     ${LIBNAME}.so
6 SONAME=         ${SHLIB_NAME}.${SHLIB_MAJOR}
7
8 SRCS=           dummy.c
9 WARNS?=         6
10
11 MAN+=   \
12         pthread.3 \
13         pthread_atfork.3 \
14         pthread_attr.3 \
15         pthread_attr_get_np.3 \
16         pthread_attr_setcreatesuspend_np.3 \
17         pthread_barrier_destroy.3 \
18         pthread_barrierattr.3 \
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 \
46         pthread_mutex_timedlock.3 \
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 \
52         pthread_rwlockattr_destroy.3 \
53         pthread_rwlockattr_getpshared.3 \
54         pthread_rwlockattr_init.3 \
55         pthread_rwlockattr_setpshared.3 \
56         pthread_rwlock_destroy.3 \
57         pthread_rwlock_init.3 \
58         pthread_rwlock_rdlock.3 \
59         pthread_rwlock_timedrdlock.3 \
60         pthread_rwlock_timedwrlock.3 \
61         pthread_rwlock_unlock.3 \
62         pthread_rwlock_wrlock.3 \
63         pthread_schedparam.3 \
64         pthread_self.3 \
65         pthread_set_name_np.3 \
66         pthread_setspecific.3 \
67         pthread_sigmask.3 \
68         pthread_spin_init.3 \
69         pthread_spin_lock.3 \
70         pthread_suspend_all_np.3 \
71         pthread_suspend_np.3 \
72         pthread_switch_add_np.3 \
73         pthread_testcancel.3 \
74         pthread_yield.3 \
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
83 MLINKS+= \
84         pthread_attr.3 pthread_attr_destroy.3 \
85         pthread_attr.3 pthread_attr_getdetachstate.3 \
86         pthread_attr.3 pthread_attr_getguardsize.3 \
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 \
96         pthread_attr.3 pthread_attr_setguardsize.3 \
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 \
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 \
110         pthread_condattr.3 pthread_condattr_init.3 \
111         pthread_condattr.3 pthread_condattr_destroy.3 \
112         pthread_getconcurrency.3 pthread_setconcurrency.3 \
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 \
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 \
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
137 realinstall: linkinstall
138 linkinstall:
139         # Do not overwrite existing symlinks
140         if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \
141                 ${LN} -fs thread/lib${THREAD_LIB}.so \
142                         ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \
143         fi
144         if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \
145                 ${LN} -fs thread/lib${THREAD_LIB}.a \
146                         ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \
147         fi
148
149 .include <bsd.lib.mk>