Makefile revision 9970
113546Sjulian#	@(#)Makefile	8.2 (Berkeley) 2/3/94
235509Sjb#
313546Sjulian# All library objects contain rcsid strings by default; they may be
413546Sjulian# excluded as a space-saving measure.  To produce a library that does
513546Sjulian# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS
613546Sjulian# from CFLAGS below.  To remove these strings from just the system call
713546Sjulian# stubs, remove just -DSYSLIBC_RCS from CFLAGS.
813546SjulianLIB=c
913546SjulianSHLIB_MAJOR= 2
1013546SjulianSHLIB_MINOR= 1
1113546SjulianCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS
1213546SjulianAINC=	-I${.CURDIR}/${MACHINE}
1313546SjulianCLEANFILES+=tags
1413546SjulianINSTALL_PIC_ARCHIVE=	yes
1513546SjulianPRECIOUSLIB=	yes
1613546Sjulian
1713546Sjulian.include "${.CURDIR}/db/Makefile.inc"
1813546Sjulian.include "${.CURDIR}/compat-43/Makefile.inc"
1913546Sjulian.include "${.CURDIR}/gen/Makefile.inc"
2013546Sjulian.include "${.CURDIR}/gmon/Makefile.inc"
2113546Sjulian.include "${.CURDIR}/locale/Makefile.inc"
2213546Sjulian.include "${.CURDIR}/net/Makefile.inc"
2349439Sdeischen.include "${.CURDIR}/nls/Makefile.inc"
2413546Sjulian.include "${.CURDIR}/quad/Makefile.inc"
2513546Sjulian.include "${.CURDIR}/regex/Makefile.inc"
2613546Sjulian.include "${.CURDIR}/stdio/Makefile.inc"
2713546Sjulian.include "${.CURDIR}/stdlib/Makefile.inc"
2813546Sjulian.include "${.CURDIR}/stdtime/Makefile.inc"
2913546Sjulian.include "${.CURDIR}/string/Makefile.inc"
3013546Sjulian.include "${.CURDIR}/sys/Makefile.inc"
3113546Sjulian.include "${.CURDIR}/rpc/Makefile.inc"
3250476Speter.include "${.CURDIR}/xdr/Makefile.inc"
3324518Sjb.if !defined(NO_YP_LIBC)
3413546SjulianCFLAGS+= -DYP
3513546Sjulian.include "${.CURDIR}/yp/Makefile.inc"
3613546Sjulian.endif
3713546Sjulian.include "${.CURDIR}/${MACHINE}/sys/Makefile.inc"
3813546Sjulian
3913546SjulianKQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
4013546Sjulian	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
4113546Sjulian	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
4213546SjulianKSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
4313546Sjulian	strlen.c strncpy.c
4413546Sjulian
4513546Sjulianlibkern: libkern.gen libkern.${MACHINE}
4613546Sjulian
4736382Sjblibkern.gen: ${KQSRCS} ${KSRCS}
4836877Sjb	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern
4936382Sjb
5036382Sjblibkern.${MACHINE}:: ${KMSRCS}
5136382Sjb.if defined(KMSRCS) && !empty(KMSRCS)
5222315Sjulian	cp -p ${.ALLSRC} /sys/libkern/${MACHINE}
5353812Salfred.endif
5436830Sjb
5553812Salfred#beforeinstall: tags
5653812Salfred#	${INSTALL} -c -o bin -g bin -m 444 tags /var/db/libc.tags
5736830Sjb
5853812Salfredtags: ${SRCS}
5936830Sjb	ctags ${.ALLSRC:M*.c}
6033292Sjulian	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \
6136830Sjb	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
6236877Sjb	    >> tags; sort -o tags tags
6336877Sjb
6436877Sjb.include <bsd.lib.mk>
6536877Sjb