| 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_attr.3 \ |
| 14 | pthread_attr_get_np.3 \ |
| 15 | pthread_attr_setcreatesuspend_np.3 \ |
| 16 | pthread_cancel.3 \ |
| 17 | pthread_cleanup_pop.3 \ |
| 18 | pthread_cleanup_push.3 \ |
| 19 | pthread_getconcurrency.3 \ |
| 20 | pthread_condattr.3 \ |
| 21 | pthread_cond_broadcast.3 \ |
| 22 | pthread_cond_destroy.3 \ |
| 23 | pthread_cond_init.3 \ |
| 24 | pthread_cond_signal.3 \ |
| 25 | pthread_cond_timedwait.3 \ |
| 26 | pthread_cond_wait.3 \ |
| 27 | pthread_create.3 \ |
| 28 | pthread_detach.3 \ |
| 29 | pthread_equal.3 \ |
| 30 | pthread_exit.3 \ |
| 31 | pthread_getspecific.3 \ |
| 32 | pthread_join.3 \ |
| 33 | pthread_key_create.3 \ |
| 34 | pthread_key_delete.3 \ |
| 35 | pthread_kill.3 \ |
| 36 | pthread_main_np.3 \ |
| 37 | pthread_multi_np.3 \ |
| 38 | pthread_mutexattr.3 \ |
| 39 | pthread_mutexattr_getkind_np.3 \ |
| 40 | pthread_mutex_destroy.3 \ |
| 41 | pthread_mutex_init.3 \ |
| 42 | pthread_mutex_lock.3 \ |
| 43 | pthread_mutex_trylock.3 \ |
| 44 | pthread_mutex_unlock.3 \ |
| 45 | pthread_once.3 \ |
| 46 | pthread_resume_all_np.3 \ |
| 47 | pthread_resume_np.3 \ |
| 48 | pthread_rwlock_destroy.3 \ |
| 49 | pthread_rwlock_init.3 \ |
| 50 | pthread_rwlock_rdlock.3 \ |
| 51 | pthread_rwlock_unlock.3 \ |
| 52 | pthread_rwlock_wrlock.3 \ |
| 53 | pthread_rwlockattr_destroy.3 \ |
| 54 | pthread_rwlockattr_getpshared.3 \ |
| 55 | pthread_rwlockattr_init.3 \ |
| 56 | pthread_rwlockattr_setpshared.3 \ |
| 57 | pthread_schedparam.3 \ |
| 58 | pthread_self.3 \ |
| 59 | pthread_set_name_np.3 \ |
| 60 | pthread_setspecific.3 \ |
| 61 | pthread_sigmask.3 \ |
| 62 | pthread_suspend_all_np.3 \ |
| 63 | pthread_suspend_np.3 \ |
| 64 | pthread_switch_add_np.3 \ |
| 65 | pthread_testcancel.3 \ |
| 66 | sem_destroy.3 \ |
| 67 | sem_getvalue.3 \ |
| 68 | sem_init.3 \ |
| 69 | sem_open.3 \ |
| 70 | sem_post.3 \ |
| 71 | sem_wait.3 \ |
| 72 | sigwait.3 |
| 73 | |
| 74 | MLINKS+= \ |
| 75 | pthread_attr.3 pthread_attr_destroy.3 \ |
| 76 | pthread_attr.3 pthread_attr_getdetachstate.3 \ |
| 77 | pthread_attr.3 pthread_attr_getinheritsched.3 \ |
| 78 | pthread_attr.3 pthread_attr_getschedparam.3 \ |
| 79 | pthread_attr.3 pthread_attr_getschedpolicy.3 \ |
| 80 | pthread_attr.3 pthread_attr_getscope.3 \ |
| 81 | pthread_attr.3 pthread_attr_getstack.3 \ |
| 82 | pthread_attr.3 pthread_attr_getstackaddr.3 \ |
| 83 | pthread_attr.3 pthread_attr_getstacksize.3 \ |
| 84 | pthread_attr.3 pthread_attr_init.3 \ |
| 85 | pthread_attr.3 pthread_attr_setdetachstate.3 \ |
| 86 | pthread_attr.3 pthread_attr_setinheritsched.3 \ |
| 87 | pthread_attr.3 pthread_attr_setschedparam.3 \ |
| 88 | pthread_attr.3 pthread_attr_setschedpolicy.3 \ |
| 89 | pthread_attr.3 pthread_attr_setscope.3 \ |
| 90 | pthread_attr.3 pthread_attr_setstack.3 \ |
| 91 | pthread_attr.3 pthread_attr_setstackaddr.3 \ |
| 92 | pthread_attr.3 pthread_attr_setstacksize.3 \ |
| 93 | pthread_getconcurrency.3 pthread_setconcurrency.3 \ |
| 94 | pthread_condattr.3 pthread_condattr_init.3 \ |
| 95 | pthread_condattr.3 pthread_condattr_destroy.3 \ |
| 96 | pthread_multi_np.3 pthread_single_np.3 \ |
| 97 | pthread_mutexattr.3 pthread_mutexattr_init.3 \ |
| 98 | pthread_mutexattr.3 pthread_mutexattr_destroy.3 \ |
| 99 | pthread_mutexattr.3 pthread_mutexattr_getprioceiling.3 \ |
| 100 | pthread_mutexattr.3 pthread_mutexattr_getprotocol.3 \ |
| 101 | pthread_mutexattr.3 pthread_mutexattr_gettype.3 \ |
| 102 | pthread_mutexattr.3 pthread_mutexattr_setprioceiling.3 \ |
| 103 | pthread_mutexattr.3 pthread_mutexattr_setprotocol.3 \ |
| 104 | pthread_mutexattr.3 pthread_mutexattr_settype.3 \ |
| 105 | pthread_mutexattr_getkind_np.3 pthread_mutexattr_setkind_np.3 \ |
| 106 | pthread_rwlock_rdlock.3 pthread_rwlock_tryrdlock.3 \ |
| 107 | pthread_rwlock_wrlock.3 pthread_rwlock_trywrlock.3 \ |
| 108 | pthread_schedparam.3 pthread_getschedparam.3 \ |
| 109 | pthread_schedparam.3 pthread_setschedparam.3 \ |
| 110 | pthread_switch_add_np.3 pthread_switch_delete_np.3 \ |
| 111 | pthread_testcancel.3 pthread_setcancelstate.3 \ |
| 112 | pthread_testcancel.3 pthread_setcanceltype.3 \ |
| 113 | sem_open.3 sem_close.3 \ |
| 114 | sem_open.3 sem_unlink.3 \ |
| 115 | sem_wait.3 sem_trywait.3 |
| 116 | |
| 117 | realinstall: linkinstall |
| 118 | linkinstall: |
| 119 | # Do not overwrite existing symlinks |
| 120 | if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \ |
| 121 | ${LN} -fs lib${THREAD_LIB}.so \ |
| 122 | ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \ |
| 123 | fi |
| 124 | if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \ |
| 125 | ${LN} -fs lib${THREAD_LIB}.a \ |
| 126 | ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \ |
| 127 | fi |
| 128 | |
| 129 | .include <bsd.lib.mk> |