xref: /freebsd/lib/libc/Makefile (revision 2ceb2ce9eed6efe8076988a9e81722d6a920245d)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.2 (Berkeley) 2/3/94
258f0484fSRodney W. Grimes#
358f0484fSRodney W. Grimes# All library objects contain sccsid strings by default; they may be
458f0484fSRodney W. Grimes# excluded as a space-saving measure.  To produce a library that does
558f0484fSRodney W. Grimes# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
658f0484fSRodney W. Grimes# from CFLAGS below.  To remove these strings from just the system call
758f0484fSRodney W. Grimes# stubs, remove just -DSYSLIBC_SCCS from CFLAGS.
858f0484fSRodney W. GrimesLIB=c
958f0484fSRodney W. GrimesCFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS
1058f0484fSRodney W. GrimesAINC=	-I${.CURDIR}/${MACHINE}
1158f0484fSRodney W. GrimesCLEANFILES+=tags
122ceb2ce9SGarrett WollmanINSTALL_PIC_ARCHIVE=	yes
1358f0484fSRodney W. Grimes
1458f0484fSRodney W. Grimes.include "${.CURDIR}/db/Makefile.inc"
1558f0484fSRodney W. Grimes.include "${.CURDIR}/compat-43/Makefile.inc"
1658f0484fSRodney W. Grimes.include "${.CURDIR}/gen/Makefile.inc"
1758f0484fSRodney W. Grimes.include "${.CURDIR}/gmon/Makefile.inc"
1858f0484fSRodney W. Grimes.include "${.CURDIR}/locale/Makefile.inc"
1958f0484fSRodney W. Grimes.include "${.CURDIR}/net/Makefile.inc"
2058f0484fSRodney W. Grimes.include "${.CURDIR}/quad/Makefile.inc"
2158f0484fSRodney W. Grimes.include "${.CURDIR}/regex/Makefile.inc"
2258f0484fSRodney W. Grimes.include "${.CURDIR}/stdio/Makefile.inc"
2358f0484fSRodney W. Grimes.include "${.CURDIR}/stdlib/Makefile.inc"
2458f0484fSRodney W. Grimes.include "${.CURDIR}/string/Makefile.inc"
2558f0484fSRodney W. Grimes.include "${.CURDIR}/sys/Makefile.inc"
2658f0484fSRodney W. Grimes
2758f0484fSRodney W. GrimesKQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
2858f0484fSRodney W. Grimes	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
2958f0484fSRodney W. Grimes	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
3058f0484fSRodney W. GrimesKSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
3158f0484fSRodney W. Grimes	strlen.c strncpy.c
3258f0484fSRodney W. Grimes
3358f0484fSRodney W. Grimeslibkern: libkern.gen libkern.${MACHINE}
3458f0484fSRodney W. Grimes
3558f0484fSRodney W. Grimeslibkern.gen: ${KQSRCS} ${KSRCS}
3658f0484fSRodney W. Grimes	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern
3758f0484fSRodney W. Grimes
3858f0484fSRodney W. Grimeslibkern.${MACHINE}:: ${KMSRCS}
3958f0484fSRodney W. Grimes.if defined(KMSRCS) && !empty(KMSRCS)
4058f0484fSRodney W. Grimes	cp -p ${.ALLSRC} /sys/libkern/${MACHINE}
4158f0484fSRodney W. Grimes.endif
4258f0484fSRodney W. Grimes
4358f0484fSRodney W. Grimesbeforeinstall: tags
4458f0484fSRodney W. Grimes	install -c -o bin -g bin -m 444 tags /var/db/libc.tags
4558f0484fSRodney W. Grimes
4658f0484fSRodney W. Grimestags: ${SRCS}
4758f0484fSRodney W. Grimes	ctags ${.ALLSRC:M*.c}
4858f0484fSRodney W. Grimes	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \
4958f0484fSRodney W. Grimes	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
5058f0484fSRodney W. Grimes	    >> tags; sort -o tags tags
5158f0484fSRodney W. Grimes
5258f0484fSRodney W. Grimes.include <bsd.lib.mk>
53