]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libkse/Makefile
This commit was generated by cvs2svn to compensate for changes in r161657,
[FreeBSD/FreeBSD.git] / lib / libkse / 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 .if ${MACHINE_ARCH} == "sparc64"
11 LIB=kse
12 .else
13 LIB=pthread
14 SHLIBDIR?= /lib
15 .endif
16 SHLIB_MAJOR= 2
17 CFLAGS+=-DPTHREAD_KERNEL
18 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
19         -I${.CURDIR}/../../include
20 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
21 CFLAGS+=-I${.CURDIR}/sys
22 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
23 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
24 CFLAGS+=-fno-builtin
25
26 # Uncomment this if you want libpthread to contain debug information for
27 # thread locking.
28 CFLAGS+=-D_LOCK_DEBUG
29 WARNS?=2
30
31 # Uncomment this if you want to build a 1:1 threading mode library
32 # however it is no longer strictly conformed to POSIX
33 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
34
35 # Enable extra internal consistancy checks.
36 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
37
38 VERSION_MAP=${.CURDIR}/pthread.map
39
40 .if defined(SYMVER_ENABLED)
41 # Remove this if library version is bumped and LIBPTHREAD_1_0
42 # compatability hacks are removed (see thread/thr_private.h).
43 LDFLAGS+=-Wl,-zmuldefs
44 CFLAGS+=-DSYMBOL_VERSIONING
45 .endif
46
47 PRECIOUSLIB=
48
49 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
50 .include "${.CURDIR}/support/Makefile.inc"
51 .include "${.CURDIR}/sys/Makefile.inc"
52 .include "${.CURDIR}/thread/Makefile.inc"
53
54 .include <bsd.lib.mk>