Makefile revision 148297
150476Speter# $FreeBSD: head/lib/libkse/Makefile 148297 2005-07-22 17:19:05Z kensmith $
213546Sjulian#
394797Sobrien# All library objects contain FreeBSD revision strings by default; they may be
413546Sjulian# excluded as a space-saving measure.  To produce a library that does
594797Sobrien# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
694797Sobrien# below.  Note, there are no IDs for syscall stubs whose sources are generated.
794797Sobrien# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
894797Sobrien# (for system call stubs) to CFLAGS below.  -DSYSLIBC_SCCS affects just the
994797Sobrien# system call stubs.
10125230Sdeischen.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
11113996SdeischenLIB=kse
12125230Sdeischen.else
13125230SdeischenLIB=pthread
14125230Sdeischen.endif
15148297SkensmithSHLIB_MAJOR= 2
16113658SdeischenCFLAGS+=-DPTHREAD_KERNEL
17103388SminiCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
1894797Sobrien	-I${.CURDIR}/../../include
19113658SdeischenCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
20113658SdeischenCFLAGS+=-I${.CURDIR}/sys
21115399SkanCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
22133801SdavidxuCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
23115399SkanCFLAGS+=-fno-builtin
2436831Sjb
25103412Smini# Uncomment this if you want libpthread to contain debug information for
2636831Sjb# thread locking.
27113786SdeischenCFLAGS+=-D_LOCK_DEBUG
28113786Sdeischen#CFLAGS+= -g
2936831Sjb
30117706Sdavidxu# Uncomment this if you want to build a 1:1 threading mode library
31117706Sdavidxu# however it is no longer strictly conformed to POSIX
32117706Sdavidxu# CFLAGS+=-DSYSTEM_SCOPE_ONLY
33117706Sdavidxu
34117125SruLDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
35115399Skan
3653812Salfred# enable extra internal consistancy checks
37113658SdeischenCFLAGS+=-D_PTHREADS_INVARIANTS -Wall
3853812Salfred
39136910SruPRECIOUSLIB=
4013546Sjulian
41116705Smarcel.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
42116705Smarcel.include "${.CURDIR}/support/Makefile.inc"
43116705Smarcel.include "${.CURDIR}/sys/Makefile.inc"
44103388Smini.include "${.CURDIR}/thread/Makefile.inc"
4513546Sjulian
4613546Sjulian.include <bsd.lib.mk>
47