xref: /freebsd/lib/libthr/Makefile (revision d245d9e13fa39cab381193a24af50f540bb37e9f)
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.
10LIB=thr
11SHLIB_MAJOR= 1
12CFLAGS+=-DPTHREAD_KERNEL
13CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
14	-I${.CURDIR}/../../include
15CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
16CFLAGS+=-I${.CURDIR}/sys
17CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
18CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
19CFLAGS+=-I${.CURDIR}/../libthread_db
20CFLAGS+=-Winline
21
22# CFLAGS+=-DSYSTEM_SCOPE_ONLY
23
24LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
25
26# enable extra internal consistancy checks
27CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
28CFLAGS+=-g
29
30PRECIOUSLIB=
31
32.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
33.include "${.CURDIR}/sys/Makefile.inc"
34.include "${.CURDIR}/thread/Makefile.inc"
35
36.include <bsd.lib.mk>
37