158f0484fSRodney W. Grimes# @(#)Makefile 8.2 (Berkeley) 2/3/94 258f0484fSRodney W. Grimes# 3b3c361e2SDavid Greenman# All library objects contain rcsid strings by default; they may be 458f0484fSRodney W. Grimes# excluded as a space-saving measure. To produce a library that does 5b3c361e2SDavid Greenman# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS 658f0484fSRodney W. Grimes# from CFLAGS below. To remove these strings from just the system call 7b3c361e2SDavid Greenman# stubs, remove just -DSYSLIBC_RCS from CFLAGS. 858f0484fSRodney W. GrimesLIB=c 9b3c361e2SDavid GreenmanCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS 1058f0484fSRodney W. GrimesAINC= -I${.CURDIR}/${MACHINE} 1158f0484fSRodney W. GrimesCLEANFILES+=tags 122ceb2ce9SGarrett WollmanINSTALL_PIC_ARCHIVE= yes 13fa04bc24SGarrett WollmanPRECIOUSLIB= yes 1458f0484fSRodney W. Grimes 1558f0484fSRodney W. Grimes.include "${.CURDIR}/db/Makefile.inc" 1658f0484fSRodney W. Grimes.include "${.CURDIR}/compat-43/Makefile.inc" 1758f0484fSRodney W. Grimes.include "${.CURDIR}/gen/Makefile.inc" 1858f0484fSRodney W. Grimes.include "${.CURDIR}/gmon/Makefile.inc" 1958f0484fSRodney W. Grimes.include "${.CURDIR}/locale/Makefile.inc" 2058f0484fSRodney W. Grimes.include "${.CURDIR}/net/Makefile.inc" 2158f0484fSRodney W. Grimes.include "${.CURDIR}/quad/Makefile.inc" 2258f0484fSRodney W. Grimes.include "${.CURDIR}/regex/Makefile.inc" 2358f0484fSRodney W. Grimes.include "${.CURDIR}/stdio/Makefile.inc" 2458f0484fSRodney W. Grimes.include "${.CURDIR}/stdlib/Makefile.inc" 25a040910fSGarrett Wollman.include "${.CURDIR}/stdtime/Makefile.inc" 2658f0484fSRodney W. Grimes.include "${.CURDIR}/string/Makefile.inc" 2758f0484fSRodney W. Grimes.include "${.CURDIR}/sys/Makefile.inc" 284415cd19SGarrett Wollman.include "${.CURDIR}/rpc/Makefile.inc" 294415cd19SGarrett Wollman.include "${.CURDIR}/xdr/Makefile.inc" 304415cd19SGarrett Wollman.if !defined(NO_YP_LIBC) 314415cd19SGarrett WollmanCFLAGS+= -DYP 324415cd19SGarrett Wollman.include "${.CURDIR}/yp/Makefile.inc" 334415cd19SGarrett Wollman.endif 3499f2ad0aSDavid Greenman.include "${.CURDIR}/${MACHINE}/sys/Makefile.inc" 3558f0484fSRodney W. Grimes 3658f0484fSRodney W. GrimesKQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 3758f0484fSRodney W. Grimes lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 3858f0484fSRodney W. Grimes subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 3958f0484fSRodney W. GrimesKSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ 4058f0484fSRodney W. Grimes strlen.c strncpy.c 4158f0484fSRodney W. Grimes 4258f0484fSRodney W. Grimeslibkern: libkern.gen libkern.${MACHINE} 4358f0484fSRodney W. Grimes 4458f0484fSRodney W. Grimeslibkern.gen: ${KQSRCS} ${KSRCS} 4558f0484fSRodney W. Grimes cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern 4658f0484fSRodney W. Grimes 4758f0484fSRodney W. Grimeslibkern.${MACHINE}:: ${KMSRCS} 4858f0484fSRodney W. Grimes.if defined(KMSRCS) && !empty(KMSRCS) 4958f0484fSRodney W. Grimes cp -p ${.ALLSRC} /sys/libkern/${MACHINE} 5058f0484fSRodney W. Grimes.endif 5158f0484fSRodney W. Grimes 5246cc41a1SGarrett Wollman#beforeinstall: tags 5346cc41a1SGarrett Wollman# install -c -o bin -g bin -m 444 tags /var/db/libc.tags 5458f0484fSRodney W. Grimes 5558f0484fSRodney W. Grimestags: ${SRCS} 5658f0484fSRodney W. Grimes ctags ${.ALLSRC:M*.c} 5758f0484fSRodney W. Grimes egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \ 5858f0484fSRodney W. Grimes sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 5958f0484fSRodney W. Grimes >> tags; sort -o tags tags 6058f0484fSRodney W. Grimes 6158f0484fSRodney W. Grimes.include <bsd.lib.mk> 62