1*65980Sbostic# @(#)Makefile 8.2 (Berkeley) 02/03/94 29417Smckusick# 341617Sbostic# All library objects contain sccsid strings by default; they may be 441617Sbostic# excluded as a space-saving measure. To produce a library that does 541617Sbostic# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS 641617Sbostic# from CFLAGS below. To remove these strings from just the system call 741617Sbostic# stubs, remove just -DSYSLIBC_SCCS from CFLAGS. 841617SbosticLIB=c 941617SbosticCFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS 1043021SbosticAINC= -I${.CURDIR}/${MACHINE} 1163407SbosticCLEANFILES+=tags 1240544Sbostic 1351654Sbostic.include "${.CURDIR}/db/Makefile.inc" 1446113Sbostic.include "${.CURDIR}/compat-43/Makefile.inc" 1543877Sbostic.include "${.CURDIR}/gen/Makefile.inc" 1654907Smckusick.include "${.CURDIR}/gmon/Makefile.inc" 1747018Sbostic.include "${.CURDIR}/locale/Makefile.inc" 1846113Sbostic.include "${.CURDIR}/net/Makefile.inc" 1953809Sbostic.include "${.CURDIR}/quad/Makefile.inc" 2055842Sbostic.include "${.CURDIR}/regex/Makefile.inc" 2143877Sbostic.include "${.CURDIR}/stdio/Makefile.inc" 2243877Sbostic.include "${.CURDIR}/stdlib/Makefile.inc" 2343877Sbostic.include "${.CURDIR}/string/Makefile.inc" 2446113Sbostic.include "${.CURDIR}/sys/Makefile.inc" 2540544Sbostic 2654415SbosticKQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 2754415Sbostic lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 2854415Sbostic subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 29*65980SbosticKSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ 3055039Storek strlen.c strncpy.c 3154415Sbostic 3255039Storeklibkern: libkern.gen libkern.${MACHINE} 3354907Smckusick 3455039Storeklibkern.gen: ${KQSRCS} ${KSRCS} 3554415Sbostic cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern 3655039Storek 3755039Storeklibkern.${MACHINE}:: ${KMSRCS} 3855039Storek.if defined(KMSRCS) && !empty(KMSRCS) 3955039Storek cp -p ${.ALLSRC} /sys/libkern/${MACHINE} 4055039Storek.endif 4155039Storek 4246113Sbosticbeforeinstall: tags 4354730Storek install -c -o bin -g bin -m 444 tags /var/db/libc.tags 4441617Sbostic 4547018Sbostictags: ${SRCS} 4654415Sbostic ctags ${.ALLSRC:M*.c} 4754415Sbostic egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \ 4847018Sbostic sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 4947018Sbostic >> tags; sort -o tags tags 5047018Sbostic 5141617Sbostic.include <bsd.lib.mk> 52