Makefile revision 17706
113546Sjulian#	@(#)Makefile	8.2 (Berkeley) 2/3/94
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
1113546SjulianCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS
1213546SjulianCFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE -I${.CURDIR}/uthread
1313546SjulianAINC=	-I${.CURDIR}/../libc/${MACHINE} -I${.CURDIR}/uthread
1413546SjulianCLEANFILES+=tags
1513546SjulianINSTALL_PIC_ARCHIVE=	yes
1613546SjulianPRECIOUSLIB=	yes
1713546Sjulian
1813546Sjulian.include "${.CURDIR}/db/Makefile.inc"
1913546Sjulian.include "${.CURDIR}/compat-43/Makefile.inc"
2013546Sjulian.include "${.CURDIR}/gen/Makefile.inc"
2113546Sjulian.include "${.CURDIR}/gmon/Makefile.inc"
2213546Sjulian.include "${.CURDIR}/locale/Makefile.inc"
2317706Sjulian.include "${.CURDIR}/man/Makefile.inc"
2413546Sjulian.include "${.CURDIR}/net/Makefile.inc"
2513546Sjulian.include "${.CURDIR}/nls/Makefile.inc"
2613546Sjulian.include "${.CURDIR}/quad/Makefile.inc"
2713546Sjulian.include "${.CURDIR}/regex/Makefile.inc"
2813546Sjulian.include "${.CURDIR}/stdio/Makefile.inc"
2913546Sjulian.include "${.CURDIR}/stdlib/Makefile.inc"
3013546Sjulian.include "${.CURDIR}/stdtime/Makefile.inc"
3113546Sjulian.include "${.CURDIR}/string/Makefile.inc"
3213546Sjulian.include "${.CURDIR}/sys/Makefile.inc"
3313546Sjulian.include "${.CURDIR}/rpc/Makefile.inc"
3413546Sjulian.include "${.CURDIR}/uthread/Makefile.inc"
3513546Sjulian.include "${.CURDIR}/xdr/Makefile.inc"
3613546Sjulian.if !defined(NO_YP_LIBC)
3713546SjulianCFLAGS+= -DYP
3813546Sjulian.include "${.CURDIR}/yp/Makefile.inc"
3913546Sjulian.endif
4013546Sjulian.include "${.CURDIR}/${MACHINE}/sys/Makefile.inc"
4113546Sjulian
4217706Sjulianbeforeinstall: tags
4317706Sjulian	${INSTALL} ${COPY} -o bin -g bin -m 444 tags /var/db/libc_r.tags
4413546Sjulian
4513546Sjuliantags: ${SRCS}
4613546Sjulian	ctags ${.ALLSRC:M*.c}
4713546Sjulian	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \
4813546Sjulian	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
4913546Sjulian	    >> tags; sort -o tags tags
5013546Sjulian
5113546Sjulian.include <bsd.lib.mk>
52