]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - lib/libthr/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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 MK_SSP= no
13
14 .if (${DEFAULT_THREAD_LIB} == "libthr" || ${MK_LIBKSE} == "no") && \
15     ${SHLIBDIR} == "/usr/lib"
16 SHLIBDIR= /lib
17 .endif
18
19 LIB=thr
20 SHLIB_MAJOR= 3
21 WARNS?= 3
22 CFLAGS+=-DPTHREAD_KERNEL
23 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
24         -I${.CURDIR}/../../include
25 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
26 CFLAGS+=-I${.CURDIR}/sys
27 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
28 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
29 CFLAGS+=-I${.CURDIR}/../libthread_db
30 CFLAGS+=-Winline
31
32 VERSION_DEF=${.CURDIR}/../libc/Versions.def
33 SYMBOL_MAPS=${.CURDIR}/pthread.map
34
35 MAN=    libthr.3
36
37 # enable extra internal consistancy checks
38 CFLAGS+=-D_PTHREADS_INVARIANTS
39 #CFLAGS+=-g
40
41 PRECIOUSLIB=
42
43 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
44 .include "${.CURDIR}/sys/Makefile.inc"
45 .include "${.CURDIR}/thread/Makefile.inc"
46
47 .if ${DEFAULT_THREAD_LIB} == "libthr" || ${MK_LIBKSE} == "no"
48 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
49 .if !defined(NO_PIC)
50 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
51 .endif
52 .if ${MK_PROFILE} != "no"
53 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
54 .endif
55 .endif
56
57 .if !defined(WITHOUT_SYSCALL_COMPAT)
58 CFLAGS+=-DSYSCALL_COMPAT
59 .endif
60
61 .include <bsd.lib.mk>