Makefile revision 1.48
11.48Sjtc# $NetBSD: Makefile,v 1.48 1996/08/15 22:36:59 jtc 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.33SjtcCFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -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.9Sderaadt 251.21Scgd.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 261.21Scgd.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 271.21Scgd.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 281.9Sderaadt.endif 291.1Scgd 301.7Scgd.include "${.CURDIR}/db/Makefile.inc" 311.1Scgd.include "${.CURDIR}/compat-43/Makefile.inc" 321.1Scgd.include "${.CURDIR}/gen/Makefile.inc" 331.24Scgd.include "${.CURDIR}/gmon/Makefile.inc" 341.1Scgd.include "${.CURDIR}/locale/Makefile.inc" 351.1Scgd.include "${.CURDIR}/net/Makefile.inc" 361.25Sjtc.include "${.CURDIR}/nls/Makefile.inc" 371.34Scgd.if (${MACHINE_ARCH} != "alpha") 381.24Scgd.include "${.CURDIR}/quad/Makefile.inc" 391.34Scgd.endif 401.24Scgd.include "${.CURDIR}/regex/Makefile.inc" 411.24Scgd.include "${.CURDIR}/rpc/Makefile.inc" 421.1Scgd.include "${.CURDIR}/stdio/Makefile.inc" 431.1Scgd.include "${.CURDIR}/stdlib/Makefile.inc" 441.1Scgd.include "${.CURDIR}/string/Makefile.inc" 451.40Sjtc.include "${.CURDIR}/termios/Makefile.inc" 461.38Sjtc.include "${.CURDIR}/time/Makefile.inc" 471.1Scgd.include "${.CURDIR}/sys/Makefile.inc" 481.4Sderaadt.include "${.CURDIR}/yp/Makefile.inc" 491.41Sjtc 501.47SjtcNLS= C.msg Pig.msg de.msg es.msg fr.msg 511.1Scgd 521.30ScgdLIBKERN= ${.CURDIR}/../../sys/lib/libkern 531.14Sjtc 541.18ScgdKSRCS= bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \ 551.48Sjtc strncpy.c htonl.c htons.c ntohl.c ntohs.c memcmp.c memset.c 561.35Scgd.if (${MACHINE_ARCH} != "alpha") 571.22ScgdKSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 581.22Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 591.22Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 601.22ScgdKINCLUDES+= quad/quad.h 611.35Scgd.endif 621.14Sjtc 631.15Sjtccopy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep 641.15Sjtc 651.15Sjtccopy-to-libkern-machind: ${KSRCS} 661.14Sjtc cp -p ${.ALLSRC} ${LIBKERN} 671.35Scgd.if defined(KINCLUDES) && !empty(KINCLUDES) 681.22Scgd (cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN}) 691.35Scgd.endif 701.14Sjtc 711.15Sjtccopy-to-libkern-machdep: ${KMSRCS} 721.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 731.26Sderaadt cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH} 741.18Scgd.endif 751.18Scgd.if defined(KMINCLUDES) && !empty(KMINCLUDES) 761.26Sderaadt (cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH}) 771.15Sjtc.endif 781.15Sjtc 791.14Sjtcrm-from-libkern: 801.14Sjtc for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done 811.15Sjtc.if defined(KMSRCS) && !empty(KMSRCS) 821.26Sderaadt for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done 831.15Sjtc.endif 841.36Scgd 851.42Scgdall: tags 861.36Scgdtags: ${SRCS} 871.36Scgd ctags ${.ALLSRC:M*.c} 881.37Sjtc egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \ 891.36Scgd sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 901.36Scgd >> tags; sort -o tags tags 911.42Scgd 921.42Scgdbeforeinstall: 931.43Sjtc install -c -o ${BINOWN} -g ${BINGRP} -m 444 tags \ 941.43Sjtc ${DESTDIR}/var/db/libc.tags 951.32Scgd 961.1Scgd.include <bsd.lib.mk> 97