Remove old mkinitrd config.
[dragonfly.git] / lib / libthread_xu / Makefile
blob713067f4e2ae33ab5837a3130eac9c1bb461ba0c
1 # $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
3 LIB=thread_xu
4 SHLIB_MAJOR= 2
6 # for now do not let the use of -flto
7 .if ${CFLAGS:M-flto}
8 CFLAGS+= -fno-lto
9 LDFLAGS+= -flto
10 .endif
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
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
34 PRECIOUSLIB= yes
36 LIBDIR= /usr/lib/thread
37 NOPROFILE= yes
39 WARNS?= 5 # keep for -Os, lots of -Winline
41 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
42 .include "${.CURDIR}/thread/Makefile.inc"
44 .include <bsd.lib.mk>