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
13 .if ${DEFAULT_THREAD_LIB} == "libc_r" && ${SHLIBDIR} == "/usr/lib"
19 CFLAGS+=-DPTHREAD_KERNEL
20 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/uthread \
21 -I${.CURDIR}/../../include
23 # Uncomment this if you want libc_r to contain debug information for
27 # enable extra internal consistancy checks
28 CFLAGS+=-D_PTHREADS_INVARIANTS
32 .include "${.CURDIR}/uthread/Makefile.inc"
33 .include "${.CURDIR}/sys/Makefile.inc"
35 .if ${DEFAULT_THREAD_LIB} == "libc_r"
36 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
38 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
40 .if ${MK_PROFILE} != "no"
41 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a