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 100761cb29SGarrett WollmanSHLIB_MAJOR= 3 116629ddfcSNate WilliamsSHLIB_MINOR= 1 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# 19fdee84c9SJohn Birrell# Don't bother hiding any syscalls (like libc_r does). 20fdee84c9SJohn Birrell# 21fdee84c9SJohn BirrellHIDDEN_SYSCALLS= 22fdee84c9SJohn Birrell 23fdee84c9SJohn Birrell# 2487003932SJohn Birrell# Include make rules that are shared with libc_r. 2587003932SJohn Birrell# 2687003932SJohn Birrell.include "${.CURDIR}/Makefile.inc" 2758f0484fSRodney W. Grimes 2858f0484fSRodney W. GrimesKQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 2958f0484fSRodney W. Grimes lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 3058f0484fSRodney W. Grimes subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 3158f0484fSRodney W. GrimesKSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ 3258f0484fSRodney W. Grimes strlen.c strncpy.c 3358f0484fSRodney W. Grimes 34d22114bfSKATO Takenorilibkern: libkern.gen libkern.${MACHINE_ARCH} 3558f0484fSRodney W. Grimes 3658f0484fSRodney W. Grimeslibkern.gen: ${KQSRCS} ${KSRCS} 376ded366aSSatoshi Asami cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern 3858f0484fSRodney W. Grimes 39d22114bfSKATO Takenorilibkern.${MACHINE_ARCH}:: ${KMSRCS} 4058f0484fSRodney W. Grimes.if defined(KMSRCS) && !empty(KMSRCS) 41d22114bfSKATO Takenori cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH} 4258f0484fSRodney W. Grimes.endif 4358f0484fSRodney W. Grimes 4458f0484fSRodney W. Grimes.include <bsd.lib.mk> 45