e76b726da30206955edc2c0205d4e05fde18812f
[dragonfly.git] / lib / libpthread / Makefile
1 # $DragonFly: src/lib/libpthread/Makefile,v 1.3 2007/12/14 20:27:14 corecode Exp $
2
3 LIBNAME=        libpthread
4 SHLIB_MAJOR=    0
5 SHLIB_NAME=     ${LIBNAME}.so
6 SONAME=         ${SHLIB_NAME}.${SHLIB_MAJOR}
7 DEFAULT_PTHREAD_LIB?=   libthread_xu
8 LDADD=          -l${DEFAULT_PTHREAD_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${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>