drm/linux: Add down_write_killable()
[dragonfly.git] / lib / libthread_xu / Makefile
1 # $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
2
3 LIB=thread_xu
4 SHLIB_MAJOR= 2
5
6 # for now do not let the use of -flto
7 .if ${CFLAGS:M-flto}
8 CFLAGS+=        -fno-lto
9 LDFLAGS+=       -flto
10 .endif
11
12 CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
13 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
14         -I${.CURDIR}/../../include
15 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
16 CFLAGS+=-I${.CURDIR}/../libthread_db
17 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
18
19 # XXX this breaks threaded applications
20 #LDFLAGS=-Wl,-version-script=${.CURDIR}/pthread.map
21
22 # enable extra internal consistancy checks
23 CFLAGS+=-D_PTHREADS_INVARIANTS
24
25 # debugging
26 .if defined(PTHREADS_DEBUGGING)
27 CFLAGS+=-D_PTHREADS_DEBUGGING
28 .endif
29 .if defined(PTHREADS_DEBUGGING2)
30 CFLAGS+=-D_PTHREADS_DEBUGGING2
31 .endif
32
33
34 PRECIOUSLIB=    yes
35
36 LIBDIR= /usr/lib/thread
37 NOPROFILE=      yes
38
39 WARNS?= 5 # keep for -Os, lots of -Winline
40
41 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
42 .include "${.CURDIR}/thread/Makefile.inc"
43
44 .include <bsd.lib.mk>