MFC:
[dragonfly.git] / lib / libthread_xu / Makefile
blob08145bd8835a70a976a94cc87a403b4260a9b32e
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.5 2005/05/07 09:29:46 davidxu Exp $
4 # All library objects contain FreeBSD revision strings by default; they may be
5 # excluded as a space-saving measure. To produce a library that does
6 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
7 # below. Note, there are no IDs for syscall stubs whose sources are generated.
8 # To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
9 # (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
10 # system call stubs.
11 LIB=thread_xu
12 SHLIB_MAJOR= 2
13 CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
14 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
15 -I${.CURDIR}/../../include
16 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
17 CFLAGS+=-I${.CURDIR}/../libthread_db
18 CFLAGS+=-Winline
20 CFLAGS+= -g
22 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
24 LDFLAGS=--version-script=${.CURDIR}/pthread.map
26 # enable extra internal consistancy checks
27 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
29 PRECIOUSLIB= yes
31 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
32 .include "${.CURDIR}/thread/Makefile.inc"
34 .include <bsd.lib.mk>