]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libthr/Makefile
Remove declaration of _thr_initial from MD header file, it is no longer
[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
11 .include <bsd.own.mk>
12
13 LIB=thr
14 SHLIB_MAJOR= 2
15 CFLAGS+=-DPTHREAD_KERNEL
16 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
17         -I${.CURDIR}/../../include
18 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
19 CFLAGS+=-I${.CURDIR}/sys
20 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
21 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
22 CFLAGS+=-I${.CURDIR}/../libthread_db
23 CFLAGS+=-Winline
24
25 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
26
27 LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
28
29 MAN=    libthr.3
30
31 # enable extra internal consistancy checks
32 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
33 #CFLAGS+=-g
34
35 PRECIOUSLIB=
36
37 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
38 .include "${.CURDIR}/sys/Makefile.inc"
39 .include "${.CURDIR}/thread/Makefile.inc"
40
41 .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
42 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
43 .if !defined(NO_PIC)
44 SYMLINKS+=lib${LIB}.so ${SHLIBDIR}/libpthread.so
45 .endif
46 .if ${MK_PROFILE} != "no"
47 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
48 .endif
49 .endif
50
51 .include <bsd.lib.mk>