1# $DragonFly: src/lib/libpthread/Makefile,v 1.2 2007/04/20 20:36:34 corecode Exp $ 2 3LIBNAME= libpthread 4SHLIB_MAJOR= 0 5SHLIB_NAME= ${LIBNAME}.so 6SONAME= ${SHLIB_NAME}.${SHLIB_MAJOR} 7DEFAULT_PTHREAD_LIB?= c_r 8LDADD= -l${DEFAULT_PTHREAD_LIB} # or any lib defining the pthread interface 9 10SRCS= dummy.c 11 12realinstall: linkinstall 13linkinstall: 14 # Do not overwrite existing symlinks 15 if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \ 16 ${LN} -fs lib${DEFAULT_PTHREAD_LIB}.so \ 17 ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \ 18 fi 19 if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \ 20 ${LN} -fs lib${DEFAULT_PTHREAD_LIB}.a \ 21 ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \ 22 fi 23 24.include <bsd.lib.mk> 25