xref: /freebsd/lib/libc/Makefile (revision 54a5fb6c949ca82d9b3e9060cc6d6a63ac051678)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.2 (Berkeley) 2/3/94
27f3dea24SPeter Wemm# $FreeBSD$
358f0484fSRodney W. Grimes#
4ecaaecd7SDavid E. O'Brien# All library objects contain FreeBSD revision strings by default; they may be
558f0484fSRodney W. Grimes# excluded as a space-saving measure.  To produce a library that does
654a5fb6cSDavid E. O'Brien# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
754a5fb6cSDavid E. O'Brien# below.
8ecaaecd7SDavid E. O'Brien# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
954a5fb6cSDavid E. O'Brien# (for system call stubs) to CFLAGS below.  -DSYSLIBC_SCCS affects just the
1054a5fb6cSDavid E. O'Brien# system call stubs.
1158f0484fSRodney W. GrimesLIB=c
1291e1be28SWarner LoshSHLIB_MAJOR= 5
133cf3c5d9SMarcel MoolenaarSHLIB_MINOR= 0
142b618987SPeter WemmCFLAGS+=-DLIBC_MAJOR=${SHLIB_MAJOR}
15ecaaecd7SDavid E. O'BrienCFLAGS+=-I${.CURDIR}/include -I${.CURDIR}/../../include
16d22114bfSKATO TakenoriAINC=	-I${.CURDIR}/${MACHINE_ARCH}
1758f0484fSRodney W. GrimesCLEANFILES+=tags
182ceb2ce9SGarrett WollmanINSTALL_PIC_ARCHIVE=	yes
19fa04bc24SGarrett WollmanPRECIOUSLIB=	yes
2058f0484fSRodney W. Grimes
2187003932SJohn Birrell#
2287003932SJohn Birrell# Include make rules that are shared with libc_r.
2387003932SJohn Birrell#
2487003932SJohn Birrell.include "${.CURDIR}/Makefile.inc"
2558f0484fSRodney W. Grimes
2658f0484fSRodney W. GrimesKQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
2758f0484fSRodney W. Grimes	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
2858f0484fSRodney W. Grimes	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
2958f0484fSRodney W. GrimesKSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
3058f0484fSRodney W. Grimes	strlen.c strncpy.c
3158f0484fSRodney W. Grimes
32d22114bfSKATO Takenorilibkern: libkern.gen libkern.${MACHINE_ARCH}
3358f0484fSRodney W. Grimes
3458f0484fSRodney W. Grimeslibkern.gen: ${KQSRCS} ${KSRCS}
356ded366aSSatoshi Asami	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern
3658f0484fSRodney W. Grimes
37d22114bfSKATO Takenorilibkern.${MACHINE_ARCH}:: ${KMSRCS}
3858f0484fSRodney W. Grimes.if defined(KMSRCS) && !empty(KMSRCS)
39d22114bfSKATO Takenori	cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH}
4058f0484fSRodney W. Grimes.endif
4158f0484fSRodney W. Grimes
4258f0484fSRodney W. Grimes.include <bsd.lib.mk>
43