Makefile revision 1.77
11.77Skleink# $NetBSD: Makefile,v 1.77 1998/10/14 19:19:32 kleink Exp $ 21.36Scgd# @(#)Makefile 8.2 (Berkeley) 2/3/94 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.71Slukem# from CPPFLAGS below. To remove these strings from just the system call 81.71Slukem# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS. 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.71Slukem# functions, put -DNLS on the CPPFLAGS line below. 131.4Sderaadt# 141.6Sderaadt# The YP functions are always in libc. To choose that getpwent() and friends 151.71Slukem# actually call the YP functions, put -DYP on the CPPFLAGS line below. 161.4Sderaadt 171.1ScgdLIB=c 181.77SkleinkCPPFLAGS+=-D_LIBC -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT 191.71SlukemCPPFLAGS+=-I${.CURDIR}/include 201.21ScgdAINC= -I${.CURDIR}/arch/${MACHINE_ARCH} 211.27Smycroft.if defined(DESTDIR) 221.27SmycroftAINC+= -nostdinc -idirafter ${DESTDIR}/usr/include 231.27Smycroft.endif 241.66SmikelCLEANFILES+= ${.CURDIR}/tags ${.OBJDIR}/tags 251.51Scgd 261.73Smikel# Don't try to lint the C library against itself when creating llib-lc.ln 271.51ScgdLLIBS= 281.9Sderaadt 291.21Scgd.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 301.21Scgd.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 311.21Scgd.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 321.9Sderaadt.endif 331.1Scgd 341.7Scgd.include "${.CURDIR}/db/Makefile.inc" 351.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc" 361.1Scgd.include "${.CURDIR}/gen/Makefile.inc" 371.24Scgd.include "${.CURDIR}/gmon/Makefile.inc" 381.1Scgd.include "${.CURDIR}/locale/Makefile.inc" 391.52Sthorpej.include "${.CURDIR}/md/Makefile.inc" 401.1Scgd.include "${.CURDIR}/net/Makefile.inc" 411.25Sjtc.include "${.CURDIR}/nls/Makefile.inc" 421.75Smycroft.if (${MACHINE_ARCH} != "alpha") 431.24Scgd.include "${.CURDIR}/quad/Makefile.inc" 441.34Scgd.endif 451.24Scgd.include "${.CURDIR}/regex/Makefile.inc" 461.24Scgd.include "${.CURDIR}/rpc/Makefile.inc" 471.1Scgd.include "${.CURDIR}/stdio/Makefile.inc" 481.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc" 491.1Scgd.include "${.CURDIR}/string/Makefile.inc" 501.40Sjtc.include "${.CURDIR}/termios/Makefile.inc" 511.38Sjtc.include "${.CURDIR}/time/Makefile.inc" 521.1Scgd.include "${.CURDIR}/sys/Makefile.inc" 531.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc" 541.41Sjtc 551.62SraggeNLS= C.msg Pig.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg 561.1Scgd 571.30ScgdLIBKERN= ${.CURDIR}/../../sys/lib/libkern 581.14Sjtc 591.76SperryKSRCS= bcopy.c bcmp.c bzero.c ffs.c \ 601.76Sperry strcat.c strchr.c strcmp.c strcpy.c strlen.c \ 611.76Sperry strncmp.c strncpy.c strrchr.c \ 621.76Sperry htonl.c htons.c ntohl.c ntohs.c md5c.c \ 631.76Sperry memchr.c memcmp.c memcpy.c memmove.c memset.c \ 641.76Sperry index.c rindex.c 651.35Scgd.if (${MACHINE_ARCH} != "alpha") 661.22ScgdKSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 671.22Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 681.22Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 691.22ScgdKINCLUDES+= quad/quad.h 701.35Scgd.endif 711.14Sjtc 721.15Sjtccopy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep 731.15Sjtc 741.15Sjtccopy-to-libkern-machind: ${KSRCS} 751.14Sjtc cp -p ${.ALLSRC} ${LIBKERN} 761.35Scgd.if defined(KINCLUDES) && !empty(KINCLUDES) 771.22Scgd (cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN}) 781.35Scgd.endif 791.14Sjtc 801.15Sjtccopy-to-libkern-machdep: ${KMSRCS} 811.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 821.26Sderaadt cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH} 831.18Scgd.endif 841.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES) 851.26Sderaadt (cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH}) 861.15Sjtc.endif 871.15Sjtc 881.14Sjtcrm-from-libkern: 891.14Sjtc for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done 901.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 911.26Sderaadt for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done 921.15Sjtc.endif 931.36Scgd 941.65Schristosall: ${.OBJDIR}/tags 951.65Schristos${.OBJDIR}/tags: ${SRCS} 961.36Scgd ctags ${.ALLSRC:M*.c} 971.37Sjtc egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \ 981.36Scgd sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 991.64Schristos >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET} 1001.42Scgd 1011.65Schristostags: ${.CURDIR}/tags 1021.65Schristos${.CURDIR}/tags: 1031.65Schristos @rm -f ${.TARGET} 1041.65Schristos ln -s /var/db/libc.tags ${.TARGET} 1051.65Schristos 1061.65SchristosFILES=${.OBJDIR}/tags 1071.65SchristosFILESNAME=libc.tags 1081.56SchristosFILESDIR=/var/db 1091.32Scgd 1101.1Scgd.include <bsd.lib.mk> 111