Makefile revision 169648
150476Speter# $FreeBSD: head/lib/libkse/Makefile 169648 2007-05-17 04:54:35Z deischen $ 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. 10169524Sdeischen 11169648Sdeischen.include <bsd.own.mk> 12169648Sdeischen 13169648Sdeischen.if ${DEFAULT_THREAD_LIB} == "libpthread" 14169648SdeischenSHLIBDIR= /lib 15125230Sdeischen.endif 16169524Sdeischen 17169524SdeischenLIB=kse 18148297SkensmithSHLIB_MAJOR= 2 19113658SdeischenCFLAGS+=-DPTHREAD_KERNEL 20103388SminiCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 2194797Sobrien -I${.CURDIR}/../../include 22113658SdeischenCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 23113658SdeischenCFLAGS+=-I${.CURDIR}/sys 24115399SkanCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 25133801SdavidxuCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 26115399SkanCFLAGS+=-fno-builtin 2736831Sjb 28103412Smini# Uncomment this if you want libpthread to contain debug information for 2936831Sjb# thread locking. 30113786SdeischenCFLAGS+=-D_LOCK_DEBUG 31157243SdesWARNS?=2 3236831Sjb 33117706Sdavidxu# Uncomment this if you want to build a 1:1 threading mode library 34117706Sdavidxu# however it is no longer strictly conformed to POSIX 35117706Sdavidxu# CFLAGS+=-DSYSTEM_SCOPE_ONLY 36117706Sdavidxu 37156774Sdeischen# Enable extra internal consistancy checks. 38156774SdeischenCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 39115399Skan 40156774SdeischenVERSION_MAP=${.CURDIR}/pthread.map 41156774Sdeischen 42136910SruPRECIOUSLIB= 4313546Sjulian 44116705Smarcel.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 45116705Smarcel.include "${.CURDIR}/support/Makefile.inc" 46116705Smarcel.include "${.CURDIR}/sys/Makefile.inc" 47103388Smini.include "${.CURDIR}/thread/Makefile.inc" 4813546Sjulian 49169524Sdeischen.if ${DEFAULT_THREAD_LIB} == "libpthread" 50169524SdeischenSYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 51169524Sdeischen.if !defined(NO_PIC) 52169524SdeischenSYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 53169524Sdeischen.endif 54169524Sdeischen.if ${MK_PROFILE} != "no" 55169524SdeischenSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 56169524Sdeischen.endif 57169524Sdeischen.endif 58169524Sdeischen 5913546Sjulian.include <bsd.lib.mk> 60