]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - lib/libc_r/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / lib / libc_r / 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 ${DEFAULT_THREAD_LIB} == "libc_r" && ${SHLIBDIR} == "/usr/lib"
14 SHLIBDIR= /lib
15 .endif
16
17 LIB=c_r
18 SHLIB_MAJOR= 7
19 CFLAGS+=-DPTHREAD_KERNEL 
20 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/uthread \
21         -I${.CURDIR}/../../include
22
23 # Uncomment this if you want libc_r to contain debug information for
24 # thread locking.
25 CFLAGS+=-D_LOCK_DEBUG
26
27 # enable extra internal consistancy checks
28 CFLAGS+=-D_PTHREADS_INVARIANTS
29
30 PRECIOUSLIB=
31
32 .include "${.CURDIR}/uthread/Makefile.inc"
33 .include "${.CURDIR}/sys/Makefile.inc"
34
35 .if ${DEFAULT_THREAD_LIB} == "libc_r"
36 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
37 .if !defined(NO_PIC)
38 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
39 .endif
40 .if ${MK_PROFILE} != "no"
41 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
42 .endif
43 .endif
44
45 .include <bsd.lib.mk>