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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/Makefile between version 1.148 and 1.148.2.2

version 1.148, 2011/08/17 09:53:53 version 1.148.2.2, 2014/05/22 11:36:46
Line 19 
Line 19 
   
 .include "Makefile.inc"  .include "Makefile.inc"
   
   LIBC_MACHINE_ARCH?=     ${MACHINE_ARCH}         # for MKCOMPAT
   
 LIB=            c  LIB=            c
 CPPFLAGS+=      -I${.CURDIR}/include -I${.CURDIR}  CPPFLAGS+=      -I${.CURDIR}/include -I${.CURDIR}
   
Line 35  CLEANFILES+= assym.h assym.h.tmp
Line 37  CLEANFILES+= assym.h assym.h.tmp
   
 assym.h: ${ARCHDIR}/genassym.cf  assym.h: ${ARCHDIR}/genassym.cf
         ${_MKTARGET_CREATE}          ${_MKTARGET_CREATE}
         ${TOOL_GENASSYM} -- ${CC} ${CFLAGS} \          ${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} \
                 ${CPPFLAGS} ${CPPFLAGS.assym.h} ${PROF} \                  ${CPPFLAGS} ${CPPFLAGS.assym.h} ${PROF} \
                 < ${ARCHDIR}/genassym.cf > assym.h.tmp && \                  ${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
         mv -f assym.h.tmp assym.h          mv -f assym.h.tmp assym.h
 .endif  .endif
   
 # The following controls how to build compatibility code for old NetBSD  # The following controls how to build compatibility code for old NetBSD
 # binaries. If BUILDCOLD is yes, then we build a separate library; otherwise  # binaries. If BUILD_LEGACY is yes, then we build a separate library; otherwise
 # we include the code in libc.  # we include the code in libc.
 BUILDCOLD?= no  BUILD_LEGACY?= no
 .if "${BUILDCOLD}" == "yes"  .if "${BUILD_LEGACY}" == "yes"
 SUBDIR=compat  SUBDIR=compat
 .include <bsd.subdir.mk>  .include <bsd.subdir.mk>
 .else  .else
 COMPATDIR=${.CURDIR}/compat  COMPATDIR=${.CURDIR}/compat
 .include "${.CURDIR}/compat/Makefile.inc"  .include "${.CURDIR}/compat/Makefile.inc"
   # Marker for compat code that can't be easily isolated
   CPPFLAGS+=      -D__BUILD_LEGACY
 .endif  .endif
   
 .include "${.CURDIR}/../../common/lib/libc/Makefile.inc"  .include "${.CURDIR}/../../common/lib/libc/Makefile.inc"
 .include "${.CURDIR}/atomic/Makefile.inc"  .include "${.CURDIR}/atomic/Makefile.inc"
 .include "${.CURDIR}/cdb/Makefile.inc"  .include "${.CURDIR}/cdb/Makefile.inc"
 .include "${.CURDIR}/db/Makefile.inc"  .include "${.CURDIR}/db/Makefile.inc"
 .if (${CITRUS} == "yes")  
 .include "${.CURDIR}/citrus/Makefile.inc"  .include "${.CURDIR}/citrus/Makefile.inc"
 .endif  
 .include "${.CURDIR}/compat-43/Makefile.inc"  .include "${.CURDIR}/compat-43/Makefile.inc"
   .include "${.CURDIR}/compiler_rt/Makefile.inc"
 .include "${.CURDIR}/dlfcn/Makefile.inc"  .include "${.CURDIR}/dlfcn/Makefile.inc"
 .include "${.CURDIR}/gdtoa/Makefile.inc"  .include "${.CURDIR}/gdtoa/Makefile.inc"
 .include "${.CURDIR}/gen/Makefile.inc"  .include "${.CURDIR}/gen/Makefile.inc"
Line 75  COMPATDIR=${.CURDIR}/compat
Line 78  COMPATDIR=${.CURDIR}/compat
 .include "${.CURDIR}/net/Makefile.inc"  .include "${.CURDIR}/net/Makefile.inc"
 .include "${.CURDIR}/nameser/Makefile.inc"  .include "${.CURDIR}/nameser/Makefile.inc"
 .include "${.CURDIR}/nls/Makefile.inc"  .include "${.CURDIR}/nls/Makefile.inc"
 .if (${MACHINE_ARCH} != "alpha") && (${ARCHSUBDIR} != "sparc64")  
 .include "${.CURDIR}/quad/Makefile.inc"  
 .endif  
 .if (${USE_LIBTRE} == "yes")  .if (${USE_LIBTRE} == "yes")
 .include "${NETBSDSRCDIR}/external/bsd/tre/Makefile.inc"  .include "${NETBSDSRCDIR}/external/bsd/tre/Makefile.inc"
 .else  .else
Line 94  COMPATDIR=${.CURDIR}/compat
Line 94  COMPATDIR=${.CURDIR}/compat
 .include "${.CURDIR}/time/Makefile.inc"  .include "${.CURDIR}/time/Makefile.inc"
 .include "${.CURDIR}/tls/Makefile.inc"  .include "${.CURDIR}/tls/Makefile.inc"
 .include "${.CURDIR}/sys/Makefile.inc"  .include "${.CURDIR}/sys/Makefile.inc"
   .if ${HAVE_LIBGCC_EH} == "no"
   .include "${NETBSDSRCDIR}/sys/lib/libunwind/Makefile.inc"
   .endif
 .include "${.CURDIR}/uuid/Makefile.inc"  .include "${.CURDIR}/uuid/Makefile.inc"
 .if (${MKYP} != "no")  .if (${MKYP} != "no")
 .include "${.CURDIR}/yp/Makefile.inc"  .include "${.CURDIR}/yp/Makefile.inc"
Line 122  LSRCS := ${LSRCS} ${unwanted_file}
Line 125  LSRCS := ${LSRCS} ${unwanted_file}
 NLS=    C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \  NLS=    C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \
         no.msg pl.msg sk.msg sv.msg          no.msg pl.msg sk.msg sv.msg
   
   .if ${MKREPRO:Uno} == "yes"
   REGEX_SPECIALS=[][)(^$$.?*\\;]
   MKREPRO_SED=   -e 's;${NETBSDSRCDIR:C/${REGEX_SPECIALS}/\\\\&/g};/usr/src;'
   .endif
   
 realall: tags  realall: tags
 tags: ${SRCS}  tags: ${SRCS}
         ${_MKTARGET_CREATE}          ${_MKTARGET_CREATE}
         -${TOOL_CTAGS} -w ${.ALLSRC:M*.c}          -${TOOL_CTAGS} -f ${.TARGET}.tmp -w ${.ALLSRC:M*.c}
         -egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \          -egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
             sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \              sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
             >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}             >> ${.TARGET}.tmp
   .if ${MKREPRO:Uno} == "yes"
           sed ${MKREPRO_SED} <${.TARGET}.tmp | sort -o ${.TARGET}
   .else
           sort -o ${.TARGET} ${.TARGET}.tmp
   .endif
           rm -f ${.TARGET}.tmp
   
 FILES=          tags  FILES=          tags
 FILESNAME=      libc.tags  FILESNAME=      libc.tags
Line 138  FILESDIR= /var/db
Line 152  FILESDIR= /var/db
 # workaround for I18N stuffs: build singlebyte setlocale() for libc.a,  # workaround for I18N stuffs: build singlebyte setlocale() for libc.a,
 # multibyte for libc.so.  the quirk should be removed when we support  # multibyte for libc.so.  the quirk should be removed when we support
 # dlopen() from within statically linked binaries.  # dlopen() from within statically linked binaries.
 .if (${CITRUS} == "yes")  
 CSHLIBFLAGS+=   -D_I18N_DYNAMIC  CSHLIBFLAGS+=   -D_I18N_DYNAMIC
 .endif  
   
 .include <bsd.lib.mk>  .include <bsd.lib.mk>
   
 # force the dynamic linker to initialize libc first  # force the dynamic linker to initialize libc first
 SHLIB_SHFLAGS+= -Wl,-z,initfirst  SHLIB_SHFLAGS+= -Wl,-z,initfirst
   .if ${HAVE_LIBGCC} == "no"
   SHLIB_SHFLAGS+= -Wl,-z,defs
   .endif

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.148.2.2

CVSweb <webmaster@jp.NetBSD.org>