Makefile revision 48569
117683Spst#	$Id: Makefile,v 1.15 1999/06/20 08:32:37 jb Exp $
239291Sfenner#
317683Spst# All library objects contain rcsid strings by default; they may be
417683Spst# excluded as a space-saving measure.  To produce a library that does
517683Spst# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS
617683Spst# from CFLAGS below.  To remove these strings from just the system call
717683Spst# stubs, remove just -DSYSLIBC_RCS from CFLAGS.
817683SpstLIB=c_r
917683SpstSHLIB_MAJOR= 4
1017683SpstSHLIB_MINOR= 0
1117683SpstCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/../libc/include
1217683SpstCFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE -I${.CURDIR}/uthread
1317683Spst
1417683Spst# Uncomment this if you want libc_r to contain debug information for
1517683Spst# thread locking.
1617683SpstCFLAGS+=-D_LOCK_DEBUG
1717683Spst
1817683Spst# Uncomment this if you want libc_r to use growable stacks.
1917683SpstCFLAGS+= -D_PTHREAD_GSTACK
2017683Spst
2117683SpstAINC=	-I${.CURDIR}/../libc/${MACHINE_ARCH} -I${.CURDIR}/uthread
22146768SsamPRECIOUSLIB=	yes
23147894Ssam
24147894Ssam#
25147894Ssam# This is a list of syscalls that are renamed as _thread_sys_{syscall}
2617683Spst# so that libc_r can provide replacement functions.
2717683Spst#
2817683SpstHIDDEN_SYSCALLS= accept.o bind.o close.o connect.o dup.o dup2.o \
29127664Sbms	execve.o fchflags.o fchmod.o fchown.o fcntl.o \
3017683Spst	flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \
3117683Spst	getpeername.o getsockname.o getsockopt.o ioctl.o listen.o \
3217683Spst	nanosleep.o nfssvc.o open.o poll.o read.o readv.o recvfrom.o \
33146768Ssam	recvmsg.o sched_yield.o select.o sendmsg.o sendto.o \
3417683Spst	setsockopt.o shutdown.o sigaction.o sigaltstack.o \
3517683Spst	signanosleep.o socket.o socketpair.o wait4.o write.o writev.o
3617683Spst
3717683Spst.include "${.CURDIR}/../libc/Makefile.inc"
3817683Spst.include "${.CURDIR}/man/Makefile.inc"
39127664Sbms.include "${.CURDIR}/uthread/Makefile.inc"
40146768Ssam.include "${.CURDIR}/sys/Makefile.inc"
41147894Ssam
42147894Ssam.include <bsd.lib.mk>
43146768Ssam