- Add THREAD_LIB to make.conf
[dragonfly.git] / lib / libpthread / Makefile
1 # $DragonFly: src/lib/libpthread/Makefile,v 1.5 2007/12/23 02:46:40 sephe Exp $
2
3 LIBNAME=        libpthread
4 SHLIB_MAJOR=    0
5 SHLIB_NAME=     ${LIBNAME}.so
6 SONAME=         ${SHLIB_NAME}.${SHLIB_MAJOR}
7 DPADD=          ${LIBTHREAD}
8 LDADD=          -l${THREAD_LIB} # or any lib defining the pthread interface
9
10 SRCS=           dummy.c
11
12 realinstall: linkinstall
13 linkinstall:
14         # Do not overwrite existing symlinks
15         if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \
16                 ${LN} -fs lib${THREAD_LIB}.so \
17                         ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \
18         fi
19         if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \
20                 ${LN} -fs lib${THREAD_LIB}.a \
21                         ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \
22         fi
23
24 .include <bsd.lib.mk>