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