Makefile revision 120533
1226031Sstas# $FreeBSD: head/lib/libkse/Makefile 120533 2003-09-27 23:27:19Z marcel $ 2226031Sstas# 3226031Sstas# All library objects contain FreeBSD revision strings by default; they may be 4226031Sstas# excluded as a space-saving measure. To produce a library that does 5226031Sstas# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS 6226031Sstas# below. Note, there are no IDs for syscall stubs whose sources are generated. 7226031Sstas# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS 8226031Sstas# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the 9226031Sstas# system call stubs. 10226031SstasLIB=kse 11226031SstasSHLIB_MAJOR= 1 12226031SstasCFLAGS+=-DPTHREAD_KERNEL 13226031SstasCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ 14226031Sstas -I${.CURDIR}/../../include 15226031SstasCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include 16226031SstasCFLAGS+=-I${.CURDIR}/sys 17226031SstasCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf 18226031SstasCFLAGS+=-fno-builtin 19226031Sstas 20226031Sstas# Uncomment this if you want libpthread to contain debug information for 21226031Sstas# thread locking. 22226031SstasCFLAGS+=-D_LOCK_DEBUG 23226031Sstas#CFLAGS+= -g 24226031Sstas 25226031Sstas# Uncomment this if you want to build a 1:1 threading mode library 26226031Sstas# however it is no longer strictly conformed to POSIX 27226031Sstas# CFLAGS+=-DSYSTEM_SCOPE_ONLY 28226031Sstas 29226031SstasLDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map 30226031Sstas 31226031Sstas# enable extra internal consistancy checks 32226031SstasCFLAGS+=-D_PTHREADS_INVARIANTS -Wall 33226031Sstas 34226031SstasPRECIOUSLIB= yes 35226031Sstas 36226031Sstas.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 37226031Sstas.include "${.CURDIR}/support/Makefile.inc" 38226031Sstas.include "${.CURDIR}/sys/Makefile.inc" 39226031Sstas.include "${.CURDIR}/thread/Makefile.inc" 40226031Sstas 41226031Sstas.if !defined(NOLIBC_R) 42226031Sstas.if ${MACHINE_ARCH} == "ia64" 43226031SstasSYMLINKS+=lib${LIB}.a ${LIBDIR}/libc_r.a 44226031Sstas.if !defined(NOPIC) 45226031SstasSYMLINKS+=lib${LIB}.so ${SHLIBDIR}/libc_r.so 46226031Sstas.endif 47226031Sstas.if !defined(NOPROFILE) 48226031SstasSYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libc_r_p.a 49226031Sstas.endif 50226031Sstas.endif 51226031Sstas.endif 52226031Sstas 53226031Sstas.include <bsd.lib.mk> 54226031Sstas