Makefile revision 1.62
11.62Sragge# $NetBSD: Makefile,v 1.62 1997/04/28 21:36:45 ragge 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.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.50SjtcCFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I${.CURDIR}/include 191.21ScgdAINC= -I${.CURDIR}/arch/${MACHINE_ARCH} 201.27Smycroft.if defined(DESTDIR) 211.27SmycroftAINC+= -nostdinc -idirafter ${DESTDIR}/usr/include 221.27Smycroft.endif 231.36ScgdCLEANFILES+=tags 241.51Scgd 251.51Scgd# Don't try to lint the C libarary against itself when creating llib-lc.ln 261.51ScgdLLIBS= 271.9Sderaadt 281.21Scgd.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 291.21Scgd.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 301.21Scgd.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 311.9Sderaadt.endif 321.1Scgd 331.7Scgd.include "${.CURDIR}/db/Makefile.inc" 341.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc" 351.1Scgd.include "${.CURDIR}/gen/Makefile.inc" 361.24Scgd.include "${.CURDIR}/gmon/Makefile.inc" 371.1Scgd.include "${.CURDIR}/locale/Makefile.inc" 381.52Sthorpej.include "${.CURDIR}/md/Makefile.inc" 391.1Scgd.include "${.CURDIR}/net/Makefile.inc" 401.25Sjtc.include "${.CURDIR}/nls/Makefile.inc" 411.58Sthorpej.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "powerpc") 421.24Scgd.include "${.CURDIR}/quad/Makefile.inc" 431.34Scgd.endif 441.24Scgd.include "${.CURDIR}/regex/Makefile.inc" 451.24Scgd.include "${.CURDIR}/rpc/Makefile.inc" 461.1Scgd.include "${.CURDIR}/stdio/Makefile.inc" 471.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc" 481.1Scgd.include "${.CURDIR}/string/Makefile.inc" 491.40Sjtc.include "${.CURDIR}/termios/Makefile.inc" 501.38Sjtc.include "${.CURDIR}/time/Makefile.inc" 511.1Scgd.include "${.CURDIR}/sys/Makefile.inc" 521.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc" 531.41Sjtc 541.62SraggeNLS= C.msg Pig.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg 551.1Scgd 561.30ScgdLIBKERN= ${.CURDIR}/../../sys/lib/libkern 571.14Sjtc 581.18ScgdKSRCS= bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \ 591.48Sjtc strncpy.c htonl.c htons.c ntohl.c ntohs.c memcmp.c memset.c 601.35Scgd.if (${MACHINE_ARCH} != "alpha") 611.22ScgdKSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 621.22Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 631.22Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 641.22ScgdKINCLUDES+= quad/quad.h 651.35Scgd.endif 661.14Sjtc 671.15Sjtccopy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep 681.15Sjtc 691.15Sjtccopy-to-libkern-machind: ${KSRCS} 701.14Sjtc cp -p ${.ALLSRC} ${LIBKERN} 711.35Scgd.if defined(KINCLUDES) && !empty(KINCLUDES) 721.22Scgd (cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN}) 731.35Scgd.endif 741.14Sjtc 751.15Sjtccopy-to-libkern-machdep: ${KMSRCS} 761.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 771.26Sderaadt cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH} 781.18Scgd.endif 791.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES) 801.26Sderaadt (cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH}) 811.15Sjtc.endif 821.15Sjtc 831.14Sjtcrm-from-libkern: 841.14Sjtc for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done 851.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 861.26Sderaadt for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done 871.15Sjtc.endif 881.36Scgd 891.42Scgdall: tags 901.36Scgdtags: ${SRCS} 911.36Scgd ctags ${.ALLSRC:M*.c} 921.37Sjtc egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \ 931.36Scgd sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 941.36Scgd >> tags; sort -o tags tags 951.42Scgd 961.56SchristosFILES=tags 971.56SchristosFILESNAME_tags=libc.tags 981.56SchristosFILESDIR=/var/db 991.32Scgd 1001.1Scgd.include <bsd.lib.mk> 101