62f298be3bf05ded67fb70ccb41a6bdd2f009747
[dragonfly.git] / lib / libthread_xu / Makefile
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
4 LIB=thread_xu
5 SHLIB_MAJOR= 2
6 CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
7 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
8         -I${.CURDIR}/../../include
9 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
10 CFLAGS+=-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
18 CFLAGS+=-D_PTHREADS_INVARIANTS
19
20 PRECIOUSLIB=    yes
21
22 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
23 .include "${.CURDIR}/thread/Makefile.inc"
24
25 .include <bsd.lib.mk>