Remove some warning flags and raise WARNS where possible.
[dragonfly.git] / lib / libthread_xu / Makefile
CommitLineData
71b3fa15 1# $FreeBSD: src/lib/libpthread/Makefile,v 1.53 2004/10/24 15:32:32 ru Exp $
f7d9d915 2# $DragonFly: src/lib/libthread_xu/Makefile,v 1.6 2008/10/28 16:54:09 swildner Exp $
71b3fa15
DX
3#
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.
11LIB=thread_xu
f675e8b5 12SHLIB_MAJOR= 2
71b3fa15
DX
13CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
14CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
15 -I${.CURDIR}/../../include
16CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
3cd47da3 17CFLAGS+=-I${.CURDIR}/../libthread_db
71b3fa15
DX
18
19CFLAGS+= -g
20
21# CFLAGS+=-DSYSTEM_SCOPE_ONLY
22
23LDFLAGS=--version-script=${.CURDIR}/pthread.map
24
25# enable extra internal consistancy checks
f7d9d915 26CFLAGS+=-D_PTHREADS_INVARIANTS
71b3fa15
DX
27
28PRECIOUSLIB= yes
29
30.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
71b3fa15
DX
31.include "${.CURDIR}/thread/Makefile.inc"
32
33.include <bsd.lib.mk>