Makefile revision 157243
150476Speter# $FreeBSD: head/lib/libkse/Makefile 157243 2006-03-29 05:38:19Z des $ 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 28157243SdesWARNS?=2 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 34156774Sdeischen# Enable extra internal consistancy checks. 35156774SdeischenCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 36115399Skan 37156774SdeischenVERSION_MAP=${.CURDIR}/pthread.map 38156774Sdeischen 39156611Sdeischen.if defined(SYMVER_ENABLED) 40156774Sdeischen# Remove this if library version is bumped and LIBPTHREAD_1_0 41156774Sdeischen# compatability hacks are removed (see thread/thr_private.h). 42156774SdeischenLDFLAGS+=-Wl,-zmuldefs 43156611SdeischenCFLAGS+=-DSYMBOL_VERSIONING 44156611Sdeischen.endif 4553812Salfred 46136910SruPRECIOUSLIB= 4713546Sjulian 48116705Smarcel.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 49116705Smarcel.include "${.CURDIR}/support/Makefile.inc" 50116705Smarcel.include "${.CURDIR}/sys/Makefile.inc" 51103388Smini.include "${.CURDIR}/thread/Makefile.inc" 5213546Sjulian 5313546Sjulian.include <bsd.lib.mk> 54