1# @(#)Makefile 8.2 (Berkeley) 2/3/94 2# 3# All library objects contain sccsid strings by default; they may be 4# excluded as a space-saving measure. To produce a library that does 5# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS 6# from CFLAGS below. To remove these strings from just the system call 7# stubs, remove just -DSYSLIBC_SCCS from CFLAGS. 8LIB=c 9CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS 10AINC= -I${.CURDIR}/${MACHINE} 11CLEANFILES+=tags 12INSTALL_PIC_ARCHIVE= yes 13 14.include "${.CURDIR}/db/Makefile.inc" 15.include "${.CURDIR}/compat-43/Makefile.inc" 16.include "${.CURDIR}/gen/Makefile.inc" 17.include "${.CURDIR}/gmon/Makefile.inc" 18.include "${.CURDIR}/locale/Makefile.inc" 19.include "${.CURDIR}/net/Makefile.inc" 20.include "${.CURDIR}/quad/Makefile.inc" 21.include "${.CURDIR}/regex/Makefile.inc" 22.include "${.CURDIR}/stdio/Makefile.inc" 23.include "${.CURDIR}/stdlib/Makefile.inc" 24.include "${.CURDIR}/string/Makefile.inc" 25.include "${.CURDIR}/sys/Makefile.inc" 26.include "${.CURDIR}/rpc/Makefile.inc" 27.include "${.CURDIR}/xdr/Makefile.inc" 28.if !defined(NO_YP_LIBC) 29CFLAGS+= -DYP 30.include "${.CURDIR}/yp/Makefile.inc" 31.endif 32.include "${.CURDIR}/${MACHINE}/sys/Makefile.inc" 33 34KQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 35 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 36 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 37KSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ 38 strlen.c strncpy.c 39 40libkern: libkern.gen libkern.${MACHINE} 41 42libkern.gen: ${KQSRCS} ${KSRCS} 43 cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern 44 45libkern.${MACHINE}:: ${KMSRCS} 46.if defined(KMSRCS) && !empty(KMSRCS) 47 cp -p ${.ALLSRC} /sys/libkern/${MACHINE} 48.endif 49 50#beforeinstall: tags 51# install -c -o bin -g bin -m 444 tags /var/db/libc.tags 52 53tags: ${SRCS} 54 ctags ${.ALLSRC:M*.c} 55 egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \ 56 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 57 >> tags; sort -o tags tags 58 59.include <bsd.lib.mk> 60