xref: /dragonfly/lib/libpthread/Makefile (revision 1465342b)
1# $DragonFly: src/lib/libpthread/Makefile,v 1.5 2007/12/23 02:46:40 sephe Exp $
2
3LIBNAME=	libpthread
4SHLIB_MAJOR=	0
5SHLIB_NAME=	${LIBNAME}.so
6SONAME=		${SHLIB_NAME}.${SHLIB_MAJOR}
7DPADD=		${LIBTHREAD}
8LDADD=		-l${THREAD_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${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>
25