]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libc_r/Makefile
This commit was generated by cvs2svn to compensate for changes in r161657,
[FreeBSD/FreeBSD.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 LIB=c_r
11 SHLIB_MAJOR= 6
12 CFLAGS+=-DPTHREAD_KERNEL 
13 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/uthread \
14         -I${.CURDIR}/../../include
15
16 # Uncomment this if you want libc_r to contain debug information for
17 # thread locking.
18 CFLAGS+=-D_LOCK_DEBUG
19
20 # enable extra internal consistancy checks
21 CFLAGS+=-D_PTHREADS_INVARIANTS
22
23 PRECIOUSLIB=
24
25 .include "${.CURDIR}/uthread/Makefile.inc"
26 .include "${.CURDIR}/sys/Makefile.inc"
27
28 .if ${MACHINE_ARCH} == "sparc64"
29 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
30 .if !defined(NO_PIC)
31 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
32 .endif
33 .if ${MK_PROFILE} != "no"
34 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
35 .endif
36 .endif
37
38 .include <bsd.lib.mk>