Makefile revision 174092
150476Speter# $FreeBSD: head/lib/libkse/Makefile 174092 2007-11-29 21:49:08Z brooks $ 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 13174092Sbrooks.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no" 14174092SbrooksLIB=kse 15174092Sbrooks.if ${SHLIBDIR} == "/usr/lib" 16169648SdeischenSHLIBDIR= /lib 17125230Sdeischen.endif 18174092Sbrooks.else 19174092SbrooksSHLIB=kse 20174092Sbrooks.endif 21169524Sdeischen 22172505SobrienSHLIB_MAJOR= 3 23113658SdeischenCFLAGS+=-DPTHREAD_KERNEL 24103388SminiCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 2594797Sobrien -I${.CURDIR}/../../include 26113658SdeischenCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 27113658SdeischenCFLAGS+=-I${.CURDIR}/sys 28115399SkanCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 29133801SdavidxuCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} 30115399SkanCFLAGS+=-fno-builtin 31173766SjbCFLAGS+=-fno-strict-aliasing 3236831Sjb 33172491Sobrien# Uncomment this if you want libkse to contain debug information for 3436831Sjb# thread locking. 35113786SdeischenCFLAGS+=-D_LOCK_DEBUG 36157243SdesWARNS?=2 3736831Sjb 38117706Sdavidxu# Uncomment this if you want to build a 1:1 threading mode library 39117706Sdavidxu# however it is no longer strictly conformed to POSIX 40117706Sdavidxu# CFLAGS+=-DSYSTEM_SCOPE_ONLY 41117706Sdavidxu 42156774Sdeischen# Enable extra internal consistancy checks. 43156774SdeischenCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 44115399Skan 45172491SobrienVERSION_MAP=${.CURDIR}/kse.map 46156774Sdeischen 47136910SruPRECIOUSLIB= 4813546Sjulian 49116705Smarcel.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 50116705Smarcel.include "${.CURDIR}/support/Makefile.inc" 51116705Smarcel.include "${.CURDIR}/sys/Makefile.inc" 52103388Smini.include "${.CURDIR}/thread/Makefile.inc" 5313546Sjulian 54172491Sobrien.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no" 55169524SdeischenSYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a 56169524Sdeischen.if !defined(NO_PIC) 57169524SdeischenSYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so 58169524Sdeischen.endif 59169524Sdeischen.if ${MK_PROFILE} != "no" 60169524SdeischenSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a 61169524Sdeischen.endif 62169524Sdeischen.endif 63169524Sdeischen 6413546Sjulian.include <bsd.lib.mk> 65