Makefile revision 117706
160786Sps# $FreeBSD: head/lib/libkse/Makefile 117706 2003-07-17 23:02:30Z davidxu $
2128345Stjr#
360786Sps# All library objects contain FreeBSD revision strings by default; they may be
460786Sps# excluded as a space-saving measure.  To produce a library that does
560786Sps# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
660786Sps# below.  Note, there are no IDs for syscall stubs whose sources are generated.
760786Sps# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
860786Sps# (for system call stubs) to CFLAGS below.  -DSYSLIBC_SCCS affects just the
960786Sps# system call stubs.
1060786SpsLIB=kse
1160786SpsSHLIB_MAJOR= 1
1260786SpsCFLAGS+=-DPTHREAD_KERNEL
1360786SpsCFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
1460786Sps	-I${.CURDIR}/../../include
1560786SpsCFLAGS+=-I${.CURDIR}/arch/${MACHINE_ARCH}/include
1660786SpsCFLAGS+=-I${.CURDIR}/sys
1760786SpsCFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
1860786SpsCFLAGS+=-fno-builtin
1960786Sps
2060786Sps# Uncomment this if you want libpthread to contain debug information for
2160786Sps# thread locking.
2260786SpsCFLAGS+=-D_LOCK_DEBUG
2360786Sps#CFLAGS+= -g
2460786Sps
2560786Sps# Uncomment this if you want to build a 1:1 threading mode library
2660786Sps# however it is no longer strictly conformed to POSIX
2760786Sps# CFLAGS+=-DSYSTEM_SCOPE_ONLY
2860786Sps
2960786SpsLDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
3060786Sps
3160786Sps# enable extra internal consistancy checks
32128345StjrCFLAGS+=-D_PTHREADS_INVARIANTS -Wall
33128345Stjr
34128345StjrPRECIOUSLIB=	yes
35128345Stjr
36128345Stjr.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
37128345Stjr.include "${.CURDIR}/support/Makefile.inc"
38128345Stjr.include "${.CURDIR}/sys/Makefile.inc"
39128345Stjr.include "${.CURDIR}/thread/Makefile.inc"
40128345Stjr
4160786Sps.include <bsd.lib.mk>
4260786Sps
4360786Sps# Can't put thr_support.c in SRCS but want it in .depend.
4460786Sps${DEPENDFILE}: thr_support.c
4560786Sps
4660786Sps# LIBC_PIC is defined only after <bsd.lib.mk> is included.
4760786Spsthr_libc.So: ${LIBC_PIC}
4860786Sps