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}/thread \
14 -I${.CURDIR}/../../include
15 CFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
16 CFLAGS+=-I${.CURDIR}/sys
17 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
18 CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
19 CFLAGS+=-I${.CURDIR}/../libthread_db
22 # CFLAGS+=-DSYSTEM_SCOPE_ONLY
24 LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
28 # enable extra internal consistancy checks
29 CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
34 .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
35 .include "${.CURDIR}/support/Makefile.inc"
36 .include "${.CURDIR}/sys/Makefile.inc"
37 .include "${.CURDIR}/thread/Makefile.inc"