Makefile revision 2203
1331772Shselasky# @(#)Makefile 8.2 (Berkeley) 2/3/94 2331772Shselasky# 3331772Shselasky# All library objects contain sccsid strings by default; they may be 4319974Shselasky# excluded as a space-saving measure. To produce a library that does 5319974Shselasky# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS 6319974Shselasky# from CFLAGS below. To remove these strings from just the system call 7319974Shselasky# stubs, remove just -DSYSLIBC_SCCS from CFLAGS. 8319974ShselaskyLIB=c 9319974ShselaskyCFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS 10319974ShselaskyAINC= -I${.CURDIR}/${MACHINE} 11319974ShselaskyCLEANFILES+=tags 12319974ShselaskyINSTALL_PIC_ARCHIVE= yes 13319974Shselasky 14319974Shselasky.include "${.CURDIR}/db/Makefile.inc" 15319974Shselasky.include "${.CURDIR}/compat-43/Makefile.inc" 16319974Shselasky.include "${.CURDIR}/gen/Makefile.inc" 17319974Shselasky.include "${.CURDIR}/gmon/Makefile.inc" 18319974Shselasky.include "${.CURDIR}/locale/Makefile.inc" 19319974Shselasky.include "${.CURDIR}/net/Makefile.inc" 20319974Shselasky.include "${.CURDIR}/quad/Makefile.inc" 21319974Shselasky.include "${.CURDIR}/regex/Makefile.inc" 22319974Shselasky.include "${.CURDIR}/stdio/Makefile.inc" 23319974Shselasky.include "${.CURDIR}/stdlib/Makefile.inc" 24319974Shselasky.include "${.CURDIR}/string/Makefile.inc" 25319974Shselasky.include "${.CURDIR}/sys/Makefile.inc" 26319974Shselasky.include "${.CURDIR}/rpc/Makefile.inc" 27319974Shselasky.include "${.CURDIR}/xdr/Makefile.inc" 28319974Shselasky.if !defined(NO_YP_LIBC) 29319974ShselaskyCFLAGS+= -DYP 30319974Shselasky.include "${.CURDIR}/yp/Makefile.inc" 31319974Shselasky.endif 32319974Shselasky.include "${.CURDIR}/${MACHINE}/sys/Makefile.inc" 33319974Shselasky 34319974ShselaskyKQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 35319974Shselasky lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 36319974Shselasky subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 37319974ShselaskyKSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ 38319974Shselasky strlen.c strncpy.c 39319974Shselasky 40319974Shselaskylibkern: libkern.gen libkern.${MACHINE} 41337096Shselasky 42337096Shselaskylibkern.gen: ${KQSRCS} ${KSRCS} 43337096Shselasky cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern 44319974Shselasky 45319974Shselaskylibkern.${MACHINE}:: ${KMSRCS} 46319974Shselasky.if defined(KMSRCS) && !empty(KMSRCS) 47319974Shselasky cp -p ${.ALLSRC} /sys/libkern/${MACHINE} 48319974Shselasky.endif 49319974Shselasky 50319974Shselasky#beforeinstall: tags 51319974Shselasky# install -c -o bin -g bin -m 444 tags /var/db/libc.tags 52319974Shselasky 53319974Shselaskytags: ${SRCS} 54319974Shselasky ctags ${.ALLSRC:M*.c} 55319974Shselasky egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \ 56319974Shselasky sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 57319974Shselasky >> tags; sort -o tags tags 58319974Shselasky 59319974Shselasky.include <bsd.lib.mk> 60319974Shselasky