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
19 CFLAGS+=-DPTHREAD_KERNEL
20 CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
21 -I${.CURDIR}/../../include
22 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
23 CFLAGS+=-I${.CURDIR}/sys
24 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
25 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
26 CFLAGS+=-I${.CURDIR}/../libthread_db
28 LDFLAGS+=-Wl,-znodelete
30 VERSION_DEF=${.CURDIR}/../libc/Versions.def
31 SYMBOL_MAPS=${.CURDIR}/pthread.map
35 # enable extra internal consistancy checks
36 CFLAGS+=-D_PTHREADS_INVARIANTS
41 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
42 .include "${.CURDIR}/sys/Makefile.inc"
43 .include "${.CURDIR}/thread/Makefile.inc"
45 .if ${MK_INSTALLLIB} != "no"
46 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
49 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
51 .if ${MK_PROFILE} != "no"
52 SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
55 .if !defined(WITHOUT_SYSCALL_COMPAT)
56 CFLAGS+=-DSYSCALL_COMPAT