1 # $DragonFly: src/lib/libpthread/Makefile,v 1.2 2007/04/20 20:36:34 corecode Exp $
5 SHLIB_NAME
= ${LIBNAME}.so
6 SONAME
= ${SHLIB_NAME}.
${SHLIB_MAJOR}
7 DEFAULT_PTHREAD_LIB?
= c_r
8 LDADD
= -l
${DEFAULT_PTHREAD_LIB} # or any lib defining the pthread interface
12 realinstall
: linkinstall
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}; \
19 if
[ ! -e
${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a
]; then \
20 ${LN} -fs lib
${DEFAULT_PTHREAD_LIB}.a \
21 ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a
; \