]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libthr/Makefile
Bump the shared library version number of all libraries that have not
[FreeBSD/FreeBSD.git] / lib / libthr / Makefile
1 # $FreeBSD$
2 #
3 # All library objects contain FreeBSD revision strings by default; they may be
4 # excluded as a space-saving measure.  To produce a library that does
5 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
6 # below.  Note, there are no IDs for syscall stubs whose sources are generated.
7 # To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
8 # (for system call stubs) to CFLAGS below.  -DSYSLIBC_SCCS affects just the
9 # system call stubs.
10 LIB=thr
11 SHLIB_MAJOR= 2
12 CFLAGS+=-DPTHREAD_KERNEL
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}/sys
17 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
18 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
19 CFLAGS+=-I${.CURDIR}/../libthread_db
20 CFLAGS+=-Winline
21
22 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
23
24 LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
25
26 MAN=    libthr.3
27
28 # enable extra internal consistancy checks
29 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
30 CFLAGS+=-g
31
32 PRECIOUSLIB=
33
34 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
35 .include "${.CURDIR}/support/Makefile.inc"
36 .include "${.CURDIR}/sys/Makefile.inc"
37 .include "${.CURDIR}/thread/Makefile.inc"
38
39 .include <bsd.lib.mk>