[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc

Annotation of src/lib/libc/Makefile, Revision 1.131

1.131   ! tls         1: #      $NetBSD: Makefile,v 1.130 2007/03/19 12:27:22 tnozaki Exp $
1.36      cgd         2: #      @(#)Makefile    8.2 (Berkeley) 2/3/94
1.1       cgd         3: #
                      4: # All library objects contain sccsid strings by default; they may be
                      5: # excluded as a space-saving measure.  To produce a library that does
                      6: # not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
1.71      lukem       7: # from CPPFLAGS below.  To remove these strings from just the system call
                      8: # stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
1.28      jtc         9: #
                     10: # The NLS (message catalog) functions are always in libc.  To choose that
                     11: # strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
1.71      lukem      12: # functions, put -DNLS on the CPPFLAGS line below.
1.4       deraadt    13: #
1.6       deraadt    14: # The YP functions are always in libc. To choose that getpwent() and friends
1.71      lukem      15: # actually call the YP functions, put -DYP on the CPPFLAGS line below.
1.79      lukem      16: #
                     17: # The Hesiod functions are always in libc. To choose that getpwent() and friends
                     18: # actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
1.4       deraadt    19:
1.127     christos   20: .include "Makefile.inc"
1.107     lukem      21:
1.82      tv         22: LIB=           c
1.117     christos   23: CPPFLAGS+=     -I${.CURDIR}/include -I${.CURDIR}
1.104     thorpej    24:
1.82      tv         25: .if exists (${ARCHDIR}/Makefile.inc)
                     26: .PATH: ${ARCHDIR}
                     27: .include "${ARCHDIR}/Makefile.inc"
1.9       deraadt    28: .endif
1.127     christos   29:
1.114     matt       30: .if exists (${ARCHDIR}/genassym.cf)
                     31: DPSRCS+=       assym.h
                     32: CLEANFILES+=   assym.h assym.h.tmp
                     33:
1.122     thorpej    34: assym.h: ${ARCHDIR}/genassym.cf
1.114     matt       35:        ${_MKTARGET_CREATE}
1.122     thorpej    36:        ${TOOL_GENASSYM} -- ${CC} ${CFLAGS} \
1.121     matt       37:                ${CPPFLAGS} ${CPPFLAGS.assym.h} ${PROF} \
1.114     matt       38:                < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
                     39:        mv -f assym.h.tmp assym.h
                     40: .endif
1.1       cgd        41:
1.127     christos   42: # The following controls how to build compatibility code for old NetBSD
                     43: # binaries. If BUILDCOLD is yes, then we build a separate library; otherwise
                     44: # we include the code in libc.
                     45: BUILDCOLD?= no
                     46: .if "${BUILDCOLD}" == "yes"
                     47: SUBDIR=compat
                     48: .include <bsd.subdir.mk>
                     49: .else
                     50: COMPATDIR=${.CURDIR}/compat
                     51: .include "${.CURDIR}/compat/Makefile.inc"
                     52: .endif
                     53:
1.125     christos   54: .include "${.CURDIR}/../../common/lib/libc/Makefile.inc"
1.7       cgd        55: .include "${.CURDIR}/db/Makefile.inc"
1.111     tshiozak   56: .include "${.CURDIR}/citrus/Makefile.inc"
1.1       cgd        57: .include "${.CURDIR}/compat-43/Makefile.inc"
1.88      minoura    58: .include "${.CURDIR}/dlfcn/Makefile.inc"
1.126     kleink     59: .include "${.CURDIR}/gdtoa/Makefile.inc"
1.1       cgd        60: .include "${.CURDIR}/gen/Makefile.inc"
1.24      cgd        61: .include "${.CURDIR}/gmon/Makefile.inc"
1.81      explorer   62: .include "${.CURDIR}/hash/Makefile.inc"
1.111     tshiozak   63: .include "${.CURDIR}/iconv/Makefile.inc"
1.117     christos   64: .include "${.CURDIR}/inet/Makefile.inc"
                     65: .include "${.CURDIR}/isc/Makefile.inc"
1.1       cgd        66: .include "${.CURDIR}/locale/Makefile.inc"
1.52      thorpej    67: .include "${.CURDIR}/md/Makefile.inc"
1.1       cgd        68: .include "${.CURDIR}/net/Makefile.inc"
1.117     christos   69: .include "${.CURDIR}/nameser/Makefile.inc"
1.25      jtc        70: .include "${.CURDIR}/nls/Makefile.inc"
1.78      eeh        71: .if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
1.24      cgd        72: .include "${.CURDIR}/quad/Makefile.inc"
1.34      cgd        73: .endif
1.24      cgd        74: .include "${.CURDIR}/regex/Makefile.inc"
1.117     christos   75: .include "${.CURDIR}/resolv/Makefile.inc"
1.24      cgd        76: .include "${.CURDIR}/rpc/Makefile.inc"
1.131   ! tls        77: .include "${.CURDIR}/ssp/Makefile.inc"
1.1       cgd        78: .include "${.CURDIR}/stdio/Makefile.inc"
                     79: .include "${.CURDIR}/stdlib/Makefile.inc"
                     80: .include "${.CURDIR}/string/Makefile.inc"
1.40      jtc        81: .include "${.CURDIR}/termios/Makefile.inc"
1.108     thorpej    82: .include "${.CURDIR}/thread-stub/Makefile.inc"
1.38      jtc        83: .include "${.CURDIR}/time/Makefile.inc"
1.1       cgd        84: .include "${.CURDIR}/sys/Makefile.inc"
1.119     thorpej    85: .include "${.CURDIR}/uuid/Makefile.inc"
1.104     thorpej    86: .if (${MKYP} != "no")
1.4       deraadt    87: .include "${.CURDIR}/yp/Makefile.inc"
1.104     thorpej    88: .endif
1.41      jtc        89:
1.109     jmmv       90: NLS=   C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \
1.110     salo       91:        no.msg pl.msg sk.msg sv.msg
1.1       cgd        92:
1.102     thorpej    93: realall: tags
                     94: tags: ${SRCS}
1.118     lukem      95:        ${_MKTARGET_CREATE}
1.115     ross       96:        -${TOOL_CTAGS} -w ${.ALLSRC:M*.c}
                     97:        -egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
1.36      cgd        98:            sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
1.64      christos   99:            >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}
1.65      christos  100:
1.102     thorpej   101: FILES=         tags
1.82      tv        102: FILESNAME=     libc.tags
                    103: FILESDIR=      /var/db
1.32      cgd       104:
1.97      itojun    105:
1.103     tshiozak  106: # workaround for I18N stuffs: build singlebyte setlocale() for libc.a,
1.97      itojun    107: # multibyte for libc.so.  the quirk should be removed when we support
                    108: # dlopen() from within statically linked binaries.
1.130     tnozaki   109: CSHLIBFLAGS+=  -D_I18N_DYNAMIC
1.105     yamt      110:
                    111: .include <bsd.lib.mk>

CVSweb <webmaster@jp.NetBSD.org>