1 # $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
6 # for now do not let the use of -flto
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
19 # XXX this breaks threaded applications
20 #LDFLAGS=-Wl,-version-script=${.CURDIR}/pthread.map
22 # enable extra internal consistancy checks
23 CFLAGS
+=-D_PTHREADS_INVARIANTS
26 .if defined
(PTHREADS_DEBUGGING
)
27 CFLAGS
+=-D_PTHREADS_DEBUGGING
29 .if defined
(PTHREADS_DEBUGGING2
)
30 CFLAGS
+=-D_PTHREADS_DEBUGGING2
36 LIBDIR
= /usr
/lib
/thread
39 WARNS?
= 5 # keep for -Os, lots of -Winline
41 .
include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
42 .
include "${.CURDIR}/thread/Makefile.inc"