xref: /dragonfly/lib/libthread_xu/Makefile (revision 36a3d1d6)
1# $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
2# $DragonFly: src/lib/libthread_xu/Makefile,v 1.7 2008/10/28 17:23:46 swildner Exp $
3
4LIB=thread_xu
5SHLIB_MAJOR= 2
6CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
7CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
8	-I${.CURDIR}/../../include
9CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
10CFLAGS+=-I${.CURDIR}/../libthread_db
11
12# CFLAGS+=-DSYSTEM_SCOPE_ONLY
13
14# XXX this breaks threaded applications
15#LDFLAGS=-Wl,-version-script=${.CURDIR}/pthread.map
16
17# enable extra internal consistancy checks
18CFLAGS+=-D_PTHREADS_INVARIANTS
19
20PRECIOUSLIB=	yes
21
22LIBDIR=	/usr/lib/thread
23NOPROFILE=	yes
24
25.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
26.include "${.CURDIR}/thread/Makefile.inc"
27
28.include <bsd.lib.mk>
29