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
12 CFLAGS+=-DPTHREAD_KERNEL
13 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/uthread \
14 -I${.CURDIR}/../../include
16 # Uncomment this if you want libc_r to contain debug information for
20 # enable extra internal consistancy checks
21 CFLAGS+=-D_PTHREADS_INVARIANTS
25 .include "${.CURDIR}/uthread/Makefile.inc"
26 .include "${.CURDIR}/sys/Makefile.inc"
28 .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
29 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
31 SYMLINKS+=lib${LIB}.so ${SHLIBDIR}/libpthread.so
33 .if !defined(NO_PROFILE)
34 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a