Makefile revision 1.27
11.8Smycroft#	from: @(#)Makefile	5.2 (Berkeley) 3/5/91
21.27Smycroft#	$Id: Makefile,v 1.27 1994/07/06 04:06:43 mycroft 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.9SderaadtCFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS
151.21ScgdAINC=	-I${.CURDIR}/arch/${MACHINE_ARCH}
161.27Smycroft.if defined(DESTDIR)
171.27SmycroftAINC+=	-nostdinc -idirafter ${DESTDIR}/usr/include
181.27Smycroft.endif
191.9Sderaadt
201.21Scgd.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
211.21Scgd.PATH:	${.CURDIR}/arch/${MACHINE_ARCH}
221.21Scgd.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
231.9Sderaadt.endif
241.1Scgd
251.7Scgd.include "${.CURDIR}/db/Makefile.inc"
261.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc"
271.1Scgd.include "${.CURDIR}/gen/Makefile.inc"
281.24Scgd.include "${.CURDIR}/gmon/Makefile.inc"
291.1Scgd.include "${.CURDIR}/locale/Makefile.inc"
301.1Scgd.include "${.CURDIR}/net/Makefile.inc"
311.25Sjtc.include "${.CURDIR}/nls/Makefile.inc"
321.24Scgd.include "${.CURDIR}/quad/Makefile.inc"
331.24Scgd.include "${.CURDIR}/regex/Makefile.inc"
341.24Scgd.include "${.CURDIR}/rpc/Makefile.inc"
351.1Scgd.include "${.CURDIR}/stdio/Makefile.inc"
361.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc"
371.1Scgd.include "${.CURDIR}/string/Makefile.inc"
381.1Scgd.include "${.CURDIR}/sys/Makefile.inc"
391.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc"
401.1Scgd
411.14SjtcLIBKERN=	/sys/lib/libkern
421.14Sjtc
431.18ScgdKSRCS=	bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \
441.18Scgd	strncpy.c htonl.c htons.c ntohl.c ntohl.c
451.22ScgdKSRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
461.22Scgd	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
471.22Scgd	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
481.22Scgd
491.22ScgdKINCLUDES+=	quad/quad.h
501.14Sjtc
511.15Sjtccopy-to-libkern:	copy-to-libkern-machind copy-to-libkern-machdep
521.15Sjtc
531.15Sjtccopy-to-libkern-machind: ${KSRCS}
541.14Sjtc	cp -p ${.ALLSRC} ${LIBKERN}
551.22Scgd	(cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN})
561.14Sjtc
571.15Sjtccopy-to-libkern-machdep: ${KMSRCS}
581.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS)
591.26Sderaadt	cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH}
601.18Scgd.endif
611.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES)
621.26Sderaadt	(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH})
631.15Sjtc.endif
641.15Sjtc
651.14Sjtcrm-from-libkern:
661.14Sjtc	for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done
671.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS)
681.26Sderaadt	for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done
691.15Sjtc.endif
701.14Sjtc	
711.1Scgd.include <bsd.lib.mk>
72