Makefile revision 1.28
11.8Smycroft# from: @(#)Makefile 5.2 (Berkeley) 3/5/91 21.28Sjtc# $Id: Makefile,v 1.28 1994/09/03 04:53:16 jtc 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.28Sjtc# 101.28Sjtc# The NLS (message catalog) functions are always in libc. To choose that 111.28Sjtc# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS 121.28Sjtc# functions, put -DNLS on the CFLAGS line below. 131.4Sderaadt# 141.6Sderaadt# The YP functions are always in libc. To choose that getpwent() and friends 151.6Sderaadt# actually call the YP functions, put -DYP on the CFLAGS line below. 161.4Sderaadt 171.1ScgdLIB=c 181.9SderaadtCFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS 191.21ScgdAINC= -I${.CURDIR}/arch/${MACHINE_ARCH} 201.27Smycroft.if defined(DESTDIR) 211.27SmycroftAINC+= -nostdinc -idirafter ${DESTDIR}/usr/include 221.27Smycroft.endif 231.9Sderaadt 241.21Scgd.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 251.21Scgd.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 261.21Scgd.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 271.9Sderaadt.endif 281.1Scgd 291.7Scgd.include "${.CURDIR}/db/Makefile.inc" 301.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc" 311.1Scgd.include "${.CURDIR}/gen/Makefile.inc" 321.24Scgd.include "${.CURDIR}/gmon/Makefile.inc" 331.1Scgd.include "${.CURDIR}/locale/Makefile.inc" 341.1Scgd.include "${.CURDIR}/net/Makefile.inc" 351.25Sjtc.include "${.CURDIR}/nls/Makefile.inc" 361.24Scgd.include "${.CURDIR}/quad/Makefile.inc" 371.24Scgd.include "${.CURDIR}/regex/Makefile.inc" 381.24Scgd.include "${.CURDIR}/rpc/Makefile.inc" 391.1Scgd.include "${.CURDIR}/stdio/Makefile.inc" 401.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc" 411.1Scgd.include "${.CURDIR}/string/Makefile.inc" 421.1Scgd.include "${.CURDIR}/sys/Makefile.inc" 431.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc" 441.1Scgd 451.14SjtcLIBKERN= /sys/lib/libkern 461.14Sjtc 471.18ScgdKSRCS= bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \ 481.18Scgd strncpy.c htonl.c htons.c ntohl.c ntohl.c 491.22ScgdKSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 501.22Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 511.22Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 521.22Scgd 531.22ScgdKINCLUDES+= quad/quad.h 541.14Sjtc 551.15Sjtccopy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep 561.15Sjtc 571.15Sjtccopy-to-libkern-machind: ${KSRCS} 581.14Sjtc cp -p ${.ALLSRC} ${LIBKERN} 591.22Scgd (cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN}) 601.14Sjtc 611.15Sjtccopy-to-libkern-machdep: ${KMSRCS} 621.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 631.26Sderaadt cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH} 641.18Scgd.endif 651.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES) 661.26Sderaadt (cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH}) 671.15Sjtc.endif 681.15Sjtc 691.14Sjtcrm-from-libkern: 701.14Sjtc for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done 711.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 721.26Sderaadt for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done 731.15Sjtc.endif 741.14Sjtc 751.1Scgd.include <bsd.lib.mk> 76