Makefile revision 34366
134366Sjb#	$Id: Makefile,v 1.6 1997/05/03 03:57:21 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
915635SpeterSHLIB_MAJOR= 3
1015635SpeterSHLIB_MINOR= 0
1134366SjbCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/../libc/include
1213546SjulianCFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE -I${.CURDIR}/uthread
1334366SjbAINC=	-I${.CURDIR}/../libc/${MACHINE_ARCH} -I${.CURDIR}/uthread
1413546SjulianPRECIOUSLIB=	yes
1513546Sjulian
1634366Sjb#
1734366Sjb# This is a list of syscalls that are renamed as _thread_sys_{syscall}
1834366Sjb# so that libc_r can provide replacement functions.
1934366Sjb#
2034366SjbHIDDEN_SYSCALLS= accept.o bind.o close.o connect.o dup.o dup2.o \
2134366Sjb	execve.o fchdir.o fchflags.o fchmod.o fchown.o fcntl.o \
2234366Sjb	flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \
2334366Sjb	getpeername.o getsockname.o getsockopt.o ioctl.o listen.o \
2434366Sjb	mkfifo.o mknod.o nanosleep.o nfssvc.o open.o read.o readv.o \
2534366Sjb	recvfrom.o recvmsg.o select.o sendmsg.o sendto.o setsockopt.o \
2634366Sjb	shutdown.o sigaction.o sigaltstack.o signanosleep.o socket.o \
2734366Sjb	socketpair.o wait4.o write.o writev.o
2834366Sjb
2925402Sjb.include "${.CURDIR}/../libc/Makefile.inc"
3017706Sjulian.include "${.CURDIR}/man/Makefile.inc"
3125402Sjb.include "${.CURDIR}/uthread/Makefile.inc"
3213546Sjulian.include "${.CURDIR}/sys/Makefile.inc"
3313546Sjulian
3413546Sjulian.include <bsd.lib.mk>
35