Makefile revision 1.18
11.8Smycroft#	from: @(#)Makefile	5.2 (Berkeley) 3/5/91
21.18Scgd#	$Id: Makefile,v 1.18 1993/11/05 22:43:47 cgd Exp $
31.1Scgd#
41.1Scgd# All library objects contain sccsid strings by default; they may be
51.1Scgd# excluded as a space-saving measure.  To produce a library that does
61.1Scgd# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
71.1Scgd# from CFLAGS below.  To remove these strings from just the system call
81.1Scgd# stubs, remove just -DSYSLIBC_SCCS from CFLAGS.
91.4Sderaadt#
101.6Sderaadt# The YP functions are always in libc. To choose that getpwent() and friends
111.6Sderaadt# actually call the YP functions, put -DYP on the CFLAGS line below.
121.4Sderaadt
131.1ScgdLIB=c
141.17SpkINSTALL_PIC_ARCHIVE= yes
151.9SderaadtCFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS
161.13ScgdAINC=	-I${.CURDIR}/arch/${MACHINE}
171.9Sderaadt
181.13Scgd.if exists (${.CURDIR}/arch/${MACHINE}/Makefile.inc)
191.13Scgd.PATH:	${.CURDIR}/arch/${MACHINE}
201.13Scgd.include "${.CURDIR}/arch/${MACHINE}/Makefile.inc"
211.9Sderaadt.endif
221.1Scgd
231.7Scgd.include "${.CURDIR}/db/Makefile.inc"
241.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc"
251.1Scgd.include "${.CURDIR}/gen/Makefile.inc"
261.1Scgd.include "${.CURDIR}/locale/Makefile.inc"
271.1Scgd.include "${.CURDIR}/net/Makefile.inc"
281.1Scgd.include "${.CURDIR}/stdio/Makefile.inc"
291.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc"
301.1Scgd.include "${.CURDIR}/string/Makefile.inc"
311.1Scgd.include "${.CURDIR}/sys/Makefile.inc"
321.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc"
331.4Sderaadt.include "${.CURDIR}/rpc/Makefile.inc"
341.10Smycroft.include "${.CURDIR}/quad/Makefile.inc"
351.16Spk.include "${.CURDIR}/dl/Makefile.inc"
361.1Scgd
371.14SjtcLIBKERN=	/sys/lib/libkern
381.14Sjtc
391.18ScgdKSRCS=	bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \
401.18Scgd	strncpy.c htonl.c htons.c ntohl.c ntohl.c
411.14Sjtc
421.15Sjtccopy-to-libkern:	copy-to-libkern-machind copy-to-libkern-machdep
431.15Sjtc
441.15Sjtccopy-to-libkern-machind: ${KSRCS}
451.14Sjtc	cp -p ${.ALLSRC} ${LIBKERN}
461.14Sjtc
471.15Sjtccopy-to-libkern-machdep: ${KMSRCS}
481.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS)
491.15Sjtc	cp -p ${.ALLSRC} ${LIBKERN}/${MACHINE}
501.18Scgd.endif
511.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES)
521.18Scgd	(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/${MACHINE})
531.15Sjtc.endif
541.15Sjtc
551.14Sjtcrm-from-libkern:
561.14Sjtc	for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done
571.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS)
581.15Sjtc	for i in ${KMSRCS}; do rm -f ${LIBKERN}/${MACHINE}/$$i; done
591.15Sjtc.endif
601.14Sjtc	
611.1Scgd.include <bsd.lib.mk>
62