Makefile revision 1.84
11.84Stv# $NetBSD: Makefile,v 1.84 1999/02/27 21:21:26 tv 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.82StvLIB= c 211.82StvCPPFLAGS+= -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS \ 221.82Stv -D_REENTRANT -I${.CURDIR}/include 231.82Stv 241.84StvARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/} 251.83SdrochnerARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR} 261.82StvAINC= -I${ARCHDIR} 271.27Smycroft.if defined(DESTDIR) 281.82StvAINC+= -nostdinc -idirafter ${DESTDIR}/usr/include 291.27Smycroft.endif 301.66SmikelCLEANFILES+= ${.CURDIR}/tags ${.OBJDIR}/tags 311.51Scgd 321.73Smikel# Don't try to lint the C library against itself when creating llib-lc.ln 331.51ScgdLLIBS= 341.9Sderaadt 351.82Stv.if exists (${ARCHDIR}/Makefile.inc) 361.82Stv.PATH: ${ARCHDIR} 371.82Stv.include "${ARCHDIR}/Makefile.inc" 381.9Sderaadt.endif 391.1Scgd 401.7Scgd.include "${.CURDIR}/db/Makefile.inc" 411.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc" 421.1Scgd.include "${.CURDIR}/gen/Makefile.inc" 431.24Scgd.include "${.CURDIR}/gmon/Makefile.inc" 441.81Sexplorer.include "${.CURDIR}/hash/Makefile.inc" 451.1Scgd.include "${.CURDIR}/locale/Makefile.inc" 461.52Sthorpej.include "${.CURDIR}/md/Makefile.inc" 471.1Scgd.include "${.CURDIR}/net/Makefile.inc" 481.25Sjtc.include "${.CURDIR}/nls/Makefile.inc" 491.78Seeh.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64") 501.24Scgd.include "${.CURDIR}/quad/Makefile.inc" 511.34Scgd.endif 521.24Scgd.include "${.CURDIR}/regex/Makefile.inc" 531.24Scgd.include "${.CURDIR}/rpc/Makefile.inc" 541.1Scgd.include "${.CURDIR}/stdio/Makefile.inc" 551.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc" 561.1Scgd.include "${.CURDIR}/string/Makefile.inc" 571.40Sjtc.include "${.CURDIR}/termios/Makefile.inc" 581.38Sjtc.include "${.CURDIR}/time/Makefile.inc" 591.1Scgd.include "${.CURDIR}/sys/Makefile.inc" 601.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc" 611.41Sjtc 621.62SraggeNLS= C.msg Pig.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg 631.1Scgd 641.30ScgdLIBKERN= ${.CURDIR}/../../sys/lib/libkern 651.14Sjtc 661.80SbouyerKSRCS= bcopy.c bcmp.c bswap16.c bswap32.c bswap64.c bzero.c ffs.c \ 671.76Sperry strcat.c strchr.c strcmp.c strcpy.c strlen.c \ 681.76Sperry strncmp.c strncpy.c strrchr.c \ 691.76Sperry htonl.c htons.c ntohl.c ntohs.c md5c.c \ 701.76Sperry memchr.c memcmp.c memcpy.c memmove.c memset.c \ 711.76Sperry index.c rindex.c 721.78Seeh.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64") 731.22ScgdKSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 741.22Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 751.22Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 761.22ScgdKINCLUDES+= quad/quad.h 771.35Scgd.endif 781.14Sjtc 791.15Sjtccopy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep 801.15Sjtc 811.15Sjtccopy-to-libkern-machind: ${KSRCS} 821.14Sjtc cp -p ${.ALLSRC} ${LIBKERN} 831.35Scgd.if defined(KINCLUDES) && !empty(KINCLUDES) 841.22Scgd (cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN}) 851.35Scgd.endif 861.14Sjtc 871.15Sjtccopy-to-libkern-machdep: ${KMSRCS} 881.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 891.83Sdrochner cp -p ${.ALLSRC} ${LIBKERN}/arch/${ARCHSUBDIR} 901.18Scgd.endif 911.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES) 921.83Sdrochner (cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${ARCHSUBDIR}) 931.15Sjtc.endif 941.15Sjtc 951.14Sjtcrm-from-libkern: 961.14Sjtc for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done 971.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 981.83Sdrochner for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${ARCHSUBDIR}/$$i; done 991.15Sjtc.endif 1001.36Scgd 1011.65Schristosall: ${.OBJDIR}/tags 1021.65Schristos${.OBJDIR}/tags: ${SRCS} 1031.36Scgd ctags ${.ALLSRC:M*.c} 1041.37Sjtc egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \ 1051.36Scgd sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 1061.64Schristos >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET} 1071.42Scgd 1081.65Schristostags: ${.CURDIR}/tags 1091.65Schristos${.CURDIR}/tags: 1101.65Schristos @rm -f ${.TARGET} 1111.65Schristos ln -s /var/db/libc.tags ${.TARGET} 1121.65Schristos 1131.82StvFILES= ${.OBJDIR}/tags 1141.82StvFILESNAME= libc.tags 1151.82StvFILESDIR= /var/db 1161.32Scgd 1171.1Scgd.include <bsd.lib.mk> 118