xref: /freebsd/lib/libc/Makefile (revision 91e1be28dc5fb82ea96453186c70cb58d9650d50)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.2 (Berkeley) 2/3/94
27f3dea24SPeter Wemm# $FreeBSD$
358f0484fSRodney W. Grimes#
4b3c361e2SDavid Greenman# All library objects contain rcsid strings by default; they may be
558f0484fSRodney W. Grimes# excluded as a space-saving measure.  To produce a library that does
6b3c361e2SDavid Greenman# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS
758f0484fSRodney W. Grimes# from CFLAGS below.  To remove these strings from just the system call
8b3c361e2SDavid Greenman# stubs, remove just -DSYSLIBC_RCS from CFLAGS.
958f0484fSRodney W. GrimesLIB=c
1091e1be28SWarner LoshSHLIB_MAJOR= 5
113cf3c5d9SMarcel MoolenaarSHLIB_MINOR= 0
12fdee84c9SJohn BirrellCFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/include
13d22114bfSKATO TakenoriAINC=	-I${.CURDIR}/${MACHINE_ARCH}
1458f0484fSRodney W. GrimesCLEANFILES+=tags
152ceb2ce9SGarrett WollmanINSTALL_PIC_ARCHIVE=	yes
16fa04bc24SGarrett WollmanPRECIOUSLIB=	yes
1758f0484fSRodney W. Grimes
1887003932SJohn Birrell#
1987003932SJohn Birrell# Include make rules that are shared with libc_r.
2087003932SJohn Birrell#
2187003932SJohn Birrell.include "${.CURDIR}/Makefile.inc"
2258f0484fSRodney W. Grimes
2358f0484fSRodney W. GrimesKQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
2458f0484fSRodney W. Grimes	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
2558f0484fSRodney W. Grimes	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
2658f0484fSRodney W. GrimesKSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
2758f0484fSRodney W. Grimes	strlen.c strncpy.c
2858f0484fSRodney W. Grimes
29d22114bfSKATO Takenorilibkern: libkern.gen libkern.${MACHINE_ARCH}
3058f0484fSRodney W. Grimes
3158f0484fSRodney W. Grimeslibkern.gen: ${KQSRCS} ${KSRCS}
326ded366aSSatoshi Asami	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern
3358f0484fSRodney W. Grimes
34d22114bfSKATO Takenorilibkern.${MACHINE_ARCH}:: ${KMSRCS}
3558f0484fSRodney W. Grimes.if defined(KMSRCS) && !empty(KMSRCS)
36d22114bfSKATO Takenori	cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH}
3758f0484fSRodney W. Grimes.endif
3858f0484fSRodney W. Grimes
3958f0484fSRodney W. Grimes.include <bsd.lib.mk>
40