xref: /freebsd/lib/libc/Makefile (revision 59eab4883608277730b3edc1e362d58fac256a1d)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.2 (Berkeley) 2/3/94
258f0484fSRodney W. Grimes#
3b3c361e2SDavid Greenman# All library objects contain rcsid strings by default; they may be
458f0484fSRodney W. Grimes# excluded as a space-saving measure.  To produce a library that does
5b3c361e2SDavid Greenman# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS
658f0484fSRodney W. Grimes# from CFLAGS below.  To remove these strings from just the system call
7b3c361e2SDavid Greenman# stubs, remove just -DSYSLIBC_RCS from CFLAGS.
858f0484fSRodney W. GrimesLIB=c
96fc818e6SNate WilliamsSHLIB_MAJOR= 2
106fc818e6SNate WilliamsSHLIB_MINOR= 1
11b3c361e2SDavid GreenmanCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS
1258f0484fSRodney W. GrimesAINC=	-I${.CURDIR}/${MACHINE}
1358f0484fSRodney W. GrimesCLEANFILES+=tags
142ceb2ce9SGarrett WollmanINSTALL_PIC_ARCHIVE=	yes
15fa04bc24SGarrett WollmanPRECIOUSLIB=	yes
1658f0484fSRodney W. Grimes
1758f0484fSRodney W. Grimes.include "${.CURDIR}/db/Makefile.inc"
1858f0484fSRodney W. Grimes.include "${.CURDIR}/compat-43/Makefile.inc"
1958f0484fSRodney W. Grimes.include "${.CURDIR}/gen/Makefile.inc"
2058f0484fSRodney W. Grimes.include "${.CURDIR}/gmon/Makefile.inc"
2158f0484fSRodney W. Grimes.include "${.CURDIR}/locale/Makefile.inc"
2258f0484fSRodney W. Grimes.include "${.CURDIR}/net/Makefile.inc"
23c7e61309SJordan K. Hubbard.include "${.CURDIR}/nls/Makefile.inc"
2458f0484fSRodney W. Grimes.include "${.CURDIR}/quad/Makefile.inc"
2558f0484fSRodney W. Grimes.include "${.CURDIR}/regex/Makefile.inc"
2658f0484fSRodney W. Grimes.include "${.CURDIR}/stdio/Makefile.inc"
2758f0484fSRodney W. Grimes.include "${.CURDIR}/stdlib/Makefile.inc"
28a040910fSGarrett Wollman.include "${.CURDIR}/stdtime/Makefile.inc"
2958f0484fSRodney W. Grimes.include "${.CURDIR}/string/Makefile.inc"
3058f0484fSRodney W. Grimes.include "${.CURDIR}/sys/Makefile.inc"
314415cd19SGarrett Wollman.include "${.CURDIR}/rpc/Makefile.inc"
324415cd19SGarrett Wollman.include "${.CURDIR}/xdr/Makefile.inc"
334415cd19SGarrett Wollman.if !defined(NO_YP_LIBC)
344415cd19SGarrett WollmanCFLAGS+= -DYP
354415cd19SGarrett Wollman.include "${.CURDIR}/yp/Makefile.inc"
364415cd19SGarrett Wollman.endif
3799f2ad0aSDavid Greenman.include "${.CURDIR}/${MACHINE}/sys/Makefile.inc"
3858f0484fSRodney W. Grimes
3958f0484fSRodney W. GrimesKQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
4058f0484fSRodney W. Grimes	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
4158f0484fSRodney W. Grimes	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
4258f0484fSRodney W. GrimesKSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
4358f0484fSRodney W. Grimes	strlen.c strncpy.c
4458f0484fSRodney W. Grimes
4558f0484fSRodney W. Grimeslibkern: libkern.gen libkern.${MACHINE}
4658f0484fSRodney W. Grimes
4758f0484fSRodney W. Grimeslibkern.gen: ${KQSRCS} ${KSRCS}
4858f0484fSRodney W. Grimes	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern
4958f0484fSRodney W. Grimes
5058f0484fSRodney W. Grimeslibkern.${MACHINE}:: ${KMSRCS}
5158f0484fSRodney W. Grimes.if defined(KMSRCS) && !empty(KMSRCS)
5258f0484fSRodney W. Grimes	cp -p ${.ALLSRC} /sys/libkern/${MACHINE}
5358f0484fSRodney W. Grimes.endif
5458f0484fSRodney W. Grimes
5546cc41a1SGarrett Wollman#beforeinstall: tags
5659eab488SBruce Evans#	${INSTALL} ${COPY} -o bin -g bin -m 444 tags /var/db/libc.tags
5758f0484fSRodney W. Grimes
5858f0484fSRodney W. Grimestags: ${SRCS}
5958f0484fSRodney W. Grimes	ctags ${.ALLSRC:M*.c}
6058f0484fSRodney W. Grimes	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \
6158f0484fSRodney W. Grimes	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
6258f0484fSRodney W. Grimes	    >> tags; sort -o tags tags
6358f0484fSRodney W. Grimes
6458f0484fSRodney W. Grimes.include <bsd.lib.mk>
65