]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libthr/Makefile
Refactor one of the ISO extraction tests: Move the reference
[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 .if ${SHLIBDIR} == "/usr/lib"
14 SHLIBDIR= /lib
15 .endif
16
17 LIB=thr
18 SHLIB_MAJOR= 3
19 WARNS?= 3
20 CFLAGS+=-DPTHREAD_KERNEL
21 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
22         -I${.CURDIR}/../../include
23 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
24 CFLAGS+=-I${.CURDIR}/sys
25 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
26 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
27 CFLAGS+=-I${.CURDIR}/../libthread_db
28 CFLAGS+=-Winline
29
30 VERSION_DEF=${.CURDIR}/../libc/Versions.def
31 SYMBOL_MAPS=${.CURDIR}/pthread.map
32
33 MAN=    libthr.3
34
35 # enable extra internal consistancy checks
36 CFLAGS+=-D_PTHREADS_INVARIANTS
37 #CFLAGS+=-g
38
39 PRECIOUSLIB=
40
41 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
42 .include "${.CURDIR}/sys/Makefile.inc"
43 .include "${.CURDIR}/thread/Makefile.inc"
44
45 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
46 .if !defined(NO_PIC)
47 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
48 .endif
49 .if ${MK_PROFILE} != "no"
50 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
51 .endif
52
53 .include <bsd.lib.mk>