Makefile revision 48569
148569Sjasone#	$Id: Makefile,v 1.15 1999/06/20 08:32:37 jb Exp $
213546Sjulian#
313546Sjulian# All library objects contain rcsid strings by default; they may be
413546Sjulian# excluded as a space-saving measure.  To produce a library that does
513546Sjulian# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS
613546Sjulian# from CFLAGS below.  To remove these strings from just the system call
713546Sjulian# stubs, remove just -DSYSLIBC_RCS from CFLAGS.
813546SjulianLIB=c_r
948047SjbSHLIB_MAJOR= 4
1015635SpeterSHLIB_MINOR= 0
1134366SjbCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/../libc/include
1248047SjbCFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE -I${.CURDIR}/uthread
1336831Sjb
1436831Sjb# Uncomment this if you want libc_r to contain debug information for
1536831Sjb# thread locking.
1648569SjasoneCFLAGS+=-D_LOCK_DEBUG
1736831Sjb
1848569Sjasone# Uncomment this if you want libc_r to use growable stacks.
1948569SjasoneCFLAGS+= -D_PTHREAD_GSTACK
2048569Sjasone
2134366SjbAINC=	-I${.CURDIR}/../libc/${MACHINE_ARCH} -I${.CURDIR}/uthread
2213546SjulianPRECIOUSLIB=	yes
2313546Sjulian
2434366Sjb#
2534366Sjb# This is a list of syscalls that are renamed as _thread_sys_{syscall}
2634366Sjb# so that libc_r can provide replacement functions.
2734366Sjb#
2834366SjbHIDDEN_SYSCALLS= accept.o bind.o close.o connect.o dup.o dup2.o \
2936551Sjb	execve.o fchflags.o fchmod.o fchown.o fcntl.o \
3034366Sjb	flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \
3134366Sjb	getpeername.o getsockname.o getsockopt.o ioctl.o listen.o \
3241660Sjb	nanosleep.o nfssvc.o open.o poll.o read.o readv.o recvfrom.o \
3336552Sjb	recvmsg.o sched_yield.o select.o sendmsg.o sendto.o \
3436551Sjb	setsockopt.o shutdown.o sigaction.o sigaltstack.o \
3536551Sjb	signanosleep.o socket.o socketpair.o wait4.o write.o writev.o
3634366Sjb
3725402Sjb.include "${.CURDIR}/../libc/Makefile.inc"
3817706Sjulian.include "${.CURDIR}/man/Makefile.inc"
3925402Sjb.include "${.CURDIR}/uthread/Makefile.inc"
4013546Sjulian.include "${.CURDIR}/sys/Makefile.inc"
4113546Sjulian
4213546Sjulian.include <bsd.lib.mk>
43