Makefile revision 1.81
11.81Sexplorer# $NetBSD: Makefile,v 1.81 1999/02/04 05:09:19 explorer 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.79Slukem# 171.79Slukem# The Hesiod functions are always in libc. To choose that getpwent() and friends 181.79Slukem# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below. 191.4Sderaadt 201.1ScgdLIB=c 211.79SlukemCPPFLAGS+=-D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT 221.71SlukemCPPFLAGS+=-I${.CURDIR}/include 231.21ScgdAINC= -I${.CURDIR}/arch/${MACHINE_ARCH} 241.27Smycroft.if defined(DESTDIR) 251.27SmycroftAINC+= -nostdinc -idirafter ${DESTDIR}/usr/include 261.27Smycroft.endif 271.66SmikelCLEANFILES+= ${.CURDIR}/tags ${.OBJDIR}/tags 281.51Scgd 291.73Smikel# Don't try to lint the C library against itself when creating llib-lc.ln 301.51ScgdLLIBS= 311.9Sderaadt 321.21Scgd.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 331.21Scgd.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 341.21Scgd.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 351.9Sderaadt.endif 361.1Scgd 371.7Scgd.include "${.CURDIR}/db/Makefile.inc" 381.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc" 391.1Scgd.include "${.CURDIR}/gen/Makefile.inc" 401.24Scgd.include "${.CURDIR}/gmon/Makefile.inc" 411.81Sexplorer.include "${.CURDIR}/hash/Makefile.inc" 421.1Scgd.include "${.CURDIR}/locale/Makefile.inc" 431.52Sthorpej.include "${.CURDIR}/md/Makefile.inc" 441.1Scgd.include "${.CURDIR}/net/Makefile.inc" 451.25Sjtc.include "${.CURDIR}/nls/Makefile.inc" 461.78Seeh.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64") 471.24Scgd.include "${.CURDIR}/quad/Makefile.inc" 481.34Scgd.endif 491.24Scgd.include "${.CURDIR}/regex/Makefile.inc" 501.24Scgd.include "${.CURDIR}/rpc/Makefile.inc" 511.1Scgd.include "${.CURDIR}/stdio/Makefile.inc" 521.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc" 531.1Scgd.include "${.CURDIR}/string/Makefile.inc" 541.40Sjtc.include "${.CURDIR}/termios/Makefile.inc" 551.38Sjtc.include "${.CURDIR}/time/Makefile.inc" 561.1Scgd.include "${.CURDIR}/sys/Makefile.inc" 571.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc" 581.41Sjtc 591.62SraggeNLS= C.msg Pig.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg 601.1Scgd 611.30ScgdLIBKERN= ${.CURDIR}/../../sys/lib/libkern 621.14Sjtc 631.80SbouyerKSRCS= bcopy.c bcmp.c bswap16.c bswap32.c bswap64.c bzero.c ffs.c \ 641.76Sperry strcat.c strchr.c strcmp.c strcpy.c strlen.c \ 651.76Sperry strncmp.c strncpy.c strrchr.c \ 661.76Sperry htonl.c htons.c ntohl.c ntohs.c md5c.c \ 671.76Sperry memchr.c memcmp.c memcpy.c memmove.c memset.c \ 681.76Sperry index.c rindex.c 691.78Seeh.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64") 701.22ScgdKSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 711.22Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 721.22Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 731.22ScgdKINCLUDES+= quad/quad.h 741.35Scgd.endif 751.14Sjtc 761.15Sjtccopy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep 771.15Sjtc 781.15Sjtccopy-to-libkern-machind: ${KSRCS} 791.14Sjtc cp -p ${.ALLSRC} ${LIBKERN} 801.35Scgd.if defined(KINCLUDES) && !empty(KINCLUDES) 811.22Scgd (cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN}) 821.35Scgd.endif 831.14Sjtc 841.15Sjtccopy-to-libkern-machdep: ${KMSRCS} 851.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 861.26Sderaadt cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH} 871.18Scgd.endif 881.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES) 891.26Sderaadt (cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH}) 901.15Sjtc.endif 911.15Sjtc 921.14Sjtcrm-from-libkern: 931.14Sjtc for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done 941.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 951.26Sderaadt for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done 961.15Sjtc.endif 971.36Scgd 981.65Schristosall: ${.OBJDIR}/tags 991.65Schristos${.OBJDIR}/tags: ${SRCS} 1001.36Scgd ctags ${.ALLSRC:M*.c} 1011.37Sjtc egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \ 1021.36Scgd sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 1031.64Schristos >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET} 1041.42Scgd 1051.65Schristostags: ${.CURDIR}/tags 1061.65Schristos${.CURDIR}/tags: 1071.65Schristos @rm -f ${.TARGET} 1081.65Schristos ln -s /var/db/libc.tags ${.TARGET} 1091.65Schristos 1101.65SchristosFILES=${.OBJDIR}/tags 1111.65SchristosFILESNAME=libc.tags 1121.56SchristosFILESDIR=/var/db 1131.32Scgd 1141.1Scgd.include <bsd.lib.mk> 115