[BACK]Return to bsd.lib.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

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

Diff for /src/share/mk/bsd.lib.mk between version 1.318.2.4 and 1.319

version 1.318.2.4, 2014/05/22 11:37:53 version 1.319, 2012/01/28 21:32:14
Line 11  LIBISMODULE?= no
Line 11  LIBISMODULE?= no
 LIBISPRIVATE?=  no  LIBISPRIVATE?=  no
 LIBISCXX?=      no  LIBISCXX?=      no
   
   _LIB_PREFIX=    lib
   
 .if ${LIBISMODULE} != "no"  .if ${LIBISMODULE} != "no"
 _LIB_PREFIX?=   # empty  _LIB_PREFIX=    # empty
 MKDEBUGLIB:=    no  MKDEBUGLIB:=    no
 MKLINT:=        no  MKLINT:=        no
 MKPICINSTALL:=  no  MKPICINSTALL:=  no
 MKPROFILE:=     no  MKPROFILE:=     no
 MKSTATICLIB:=   no  MKSTATICLIB:=   no
 .else  
 _LIB_PREFIX?=   lib  
 .endif  .endif
   
 .if ${LIBISPRIVATE} != "no"  .if ${LIBISPRIVATE} != "no"
Line 54  AFLAGS+=        ${PIE_AFLAGS}
Line 54  AFLAGS+=        ${PIE_AFLAGS}
 LIBDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}  LIBDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}
 .MAKEOVERRIDES+=LIBDO.${_lib}  .MAKEOVERRIDES+=LIBDO.${_lib}
 .endif  .endif
 .if ${LIBDO.${_lib}} == "_external"  
 LDADD+=         -l${_lib}  
 .else  
 LDADD+=         -L${LIBDO.${_lib}} -l${_lib}  LDADD+=         -L${LIBDO.${_lib}} -l${_lib}
 DPADD+=         ${LIBDO.${_lib}}/lib${_lib}.so  # Don't use _LIB_PREFIX  DPADD+=         ${LIBDO.${_lib}}/lib${_lib}.so
 .endif  
 .endfor  .endfor
 .endif                                                                  # }  .endif                                                                  # }
   
Line 80  checkver:
Line 76  checkver:
         @(cd "${.CURDIR}" && \          @(cd "${.CURDIR}" && \
             HOST_SH=${HOST_SH:Q} AWK=${TOOL_AWK:Q} \              HOST_SH=${HOST_SH:Q} AWK=${TOOL_AWK:Q} \
             ${HOST_SH} ${NETBSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \              ${HOST_SH} ${NETBSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
                     -d ${_DEST.OBJ} ${LIB})                      -d ${DESTDIR}${_LIBSODIR} ${LIB})
 .endif  .endif
 .endif                                                                  # }  .endif                                                                  # }
   
Line 129  SHLIB_FULLVERSION=${SHLIB_MAJOR}
Line 125  SHLIB_FULLVERSION=${SHLIB_MAJOR}
   
   
 # Set PICFLAGS to cc flags for producing position-independent code,  # Set PICFLAGS to cc flags for producing position-independent code,
 # if not already set.  # if not already set.  Includes -DPIC, if required.
   
 # Data-driven table using make variables to control how shared libraries  # Data-driven table using make variables to control how shared libraries
 # are built for different platforms and object formats.  # are built for different platforms and object formats.
Line 143  SHLIB_FULLVERSION=${SHLIB_MAJOR}
Line 139  SHLIB_FULLVERSION=${SHLIB_MAJOR}
 #                       with ELF, also set shared-lib version for ld.so.  #                       with ELF, also set shared-lib version for ld.so.
 # SHLIB_LDSTARTFILE:    support .o file, call C++ file-level constructors  # SHLIB_LDSTARTFILE:    support .o file, call C++ file-level constructors
 # SHLIB_LDENDFILE:      support .o file, call C++ file-level destructors  # SHLIB_LDENDFILE:      support .o file, call C++ file-level destructors
   # FPICFLAGS:            flags for ${FC} to compile .[fF] files to .pico objects.
   # CPPPICFLAGS:          flags for ${CPP} to preprocess .[sS] files for ${AS}
   # CPICFLAGS:            flags for ${CC} to compile .[cC] files to pic objects.
   # CSHLIBFLAGS:          flags for ${CC} to compile .[cC] files to .pico objects.
   #                       (usually includes ${CPICFLAGS})
   # CAPICFLAGS:           flags for ${CC} to compiling .[Ss] files
   #                       (usually just ${CPPPICFLAGS} ${CPICFLAGS})
   # APICFLAGS:            flags for ${AS} to assemble .[sS] to .pico objects.
   
   .if ${MACHINE_ARCH} == "alpha"                                          # {
   
   FPICFLAGS ?= -fPIC
   CPICFLAGS ?= -fPIC -DPIC
   CPPPICFLAGS?= -DPIC
   CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
   APICFLAGS ?=
   
   .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")      # } {
   
   # If you use -fPIC you need to define BIGPIC to turn on 32-bit
   # relocations in asm code
   FPICFLAGS ?= -fPIC
   CPICFLAGS ?= -fPIC -DPIC
   CPPPICFLAGS?= -DPIC -DBIGPIC
   CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
   APICFLAGS ?= -KPIC
   
   .else                                                                   # } {
   
   # Platform-independent flags for NetBSD shared libraries
   SHLIB_SOVERSION=${SHLIB_FULLVERSION}
   SHLIB_SHFLAGS=
   FPICFLAGS ?= -fPIC
   CPICFLAGS?= -fPIC -DPIC
   CPPPICFLAGS?= -DPIC
   CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
   APICFLAGS?= -k
   
 PICFLAGS ?= -fPIC  .endif                                                                  # }
   
 .if ${MKPICLIB} != "no"  .if ${MKPICLIB} != "no"
 CSHLIBFLAGS+= ${PICFLAGS}  CSHLIBFLAGS+= ${CPICFLAGS}
 .endif  .endif
   
 .if defined(CSHLIBFLAGS) && !empty(CSHLIBFLAGS)  .if defined(CSHLIBFLAGS) && !empty(CSHLIBFLAGS)
Line 156  MKSHLIBOBJS= yes
Line 189  MKSHLIBOBJS= yes
 MKSHLIBOBJS= no  MKSHLIBOBJS= no
 .endif  .endif
   
 .if (defined(MKDEBUG) && (${MKDEBUG} != "no")) || \  
     (defined(CFLAGS) && !empty(CFLAGS:M*-g*))  
 # We only add -g to the shared library objects  
 # because we don't currently split .a archives.  
 CSHLIBFLAGS+=   -g  
 .if ${LIBISPRIVATE} == "yes"  
 CFLAGS+=        -g  
 .endif  
 .endif  
   
 # Platform-independent linker flags for ELF shared libraries  # Platform-independent linker flags for ELF shared libraries
 SHLIB_SOVERSION=        ${SHLIB_MAJOR}  SHLIB_SOVERSION=        ${SHLIB_MAJOR}
 SHLIB_SHFLAGS=          -Wl,-soname,${_LIB}.so.${SHLIB_SOVERSION}  SHLIB_SHFLAGS=          -Wl,-soname,${_LIB_PREFIX}${LIB}.so.${SHLIB_SOVERSION}
 .if !defined(SHLIB_WARNTEXTREL) || ${SHLIB_WARNTEXTREL} != "no"  
 SHLIB_SHFLAGS+=         -Wl,--warn-shared-textrel  SHLIB_SHFLAGS+=         -Wl,--warn-shared-textrel
 .endif  SHLIB_LDSTARTFILE?=     ${_GCC_CRTDIR}/crti.o ${_GCC_CRTBEGINS}
 .if !defined(SHLIB_MKMAP) || ${SHLIB_MKMAP} != "no"  SHLIB_LDENDFILE?=       ${_GCC_CRTENDS} ${_GCC_CRTDIR}/crtn.o
 SHLIB_SHFLAGS+=         -Wl,-Map=${_LIB}.so.${SHLIB_SOVERSION}.map  
 .endif  
 CLEANFILES+=            ${_LIB}.so.${SHLIB_SOVERSION}.map  
 SHLIB_LDSTARTFILE?=     ${_GCC_CRTI} ${_GCC_CRTBEGINS}  
 SHLIB_LDENDFILE?=       ${_GCC_CRTENDS} ${_GCC_CRTN}  
   
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
 OBJCFLAGS+=     ${OBJCOPTS}  OBJCFLAGS+=     ${OBJCOPTS}
Line 187  FFLAGS+= ${FOPTS}
Line 204  FFLAGS+= ${FOPTS}
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
 .if defined(CFLAGS) && !empty(CFLAGS:M*-g*)  .if defined(CFLAGS) && !empty(CFLAGS:M*-g*)
 CTFFLAGS+=      -g  CTFFLAGS+=      -g
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 48  
 #CFLAGS+=       -gdwarf-2  
 .endif  
 .endif  .endif
 .endif  .endif
   
 LIBSTRIPAOBJS=  yes  
 .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)  
 LIBSTRIPCOBJS=  yes  
 .endif  
 .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)  
 LIBSTRIPOBJCOBJS=       yes  
 .endif  
 .if !defined(FFLAGS) || empty(FFLAGS:M*-g*)  
 LIBSTRIPFOBJS=  yes  
 .endif  
 .if !defined(CSHLIBFLAGS) || empty(CSHLIBFLAGS:M*-g*)  
 LIBSTRIPSHLIBOBJS=      yes  
 .endif  
   
 .c.o:  .c.o:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPCOBJS)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .c.po:  .c.po:
Line 223  LIBSTRIPSHLIBOBJS= yes
Line 223  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPCOBJS)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .c.go:  .c.go:
Line 234  LIBSTRIPSHLIBOBJS= yes
Line 234  LIBSTRIPSHLIBOBJS= yes
 .c.pico:  .c.pico:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPSHLIBOBJS)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .cc.o .cpp.o .cxx.o .C.o:  .cc.o .cpp.o .cxx.o .C.o:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPCOBJS)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .cc.po .cpp.po .cxx.po .C.po:  .cc.po .cpp.po .cxx.po .C.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.cc} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}          ${COMPILE.cc} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPCOBJS)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .cc.go .cpp.go .cxx.go .C.go:  .cc.go .cpp.go .cxx.go .C.go:
Line 259  LIBSTRIPSHLIBOBJS= yes
Line 259  LIBSTRIPSHLIBOBJS= yes
 .cc.pico .cpp.pico .cxx.pico .C.pico:  .cc.pico .cpp.pico .cxx.pico .C.pico:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPSHLIBOBJS)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .f.o:  .f.o:
Line 269  LIBSTRIPSHLIBOBJS= yes
Line 269  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPFOBJS)  .if !defined(FOPTS) || empty(FOPTS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .f.po:  .f.po:
Line 279  LIBSTRIPSHLIBOBJS= yes
Line 279  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPFOBJS)  .if !defined(FOPTS) || empty(FOPTS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .f.go:  .f.go:
Line 289  LIBSTRIPSHLIBOBJS= yes
Line 289  LIBSTRIPSHLIBOBJS= yes
   
 .f.pico:  .f.pico:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.f} ${PICFLAGS} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.f} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPFOBJS)  .if !defined(FOPTS) || empty(FOPTS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .f.ln:  .f.ln:
Line 304  LIBSTRIPSHLIBOBJS= yes
Line 304  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPOBJCOBJS)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .m.po:  .m.po:
Line 314  LIBSTRIPSHLIBOBJS= yes
Line 314  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPOBJCOBJS)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .m.go:  .m.go:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.m} ${DEBUGFLAGS} -g ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.m} ${DEBUGFLAGS} -g ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPOBJCOBJS)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .m.pico:  .m.pico:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.m} ${CSHLIBFLAGS} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.m} ${CSHLIBFLAGS} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPOBJCOBJS)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
 .endif  .endif
   
 .s.o:  .s.o:
Line 338  LIBSTRIPSHLIBOBJS= yes
Line 338  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPAOBJS)          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 .S.o:  .S.o:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
Line 348  LIBSTRIPSHLIBOBJS= yes
Line 346  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPAOBJS)          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 .s.po:  .s.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
Line 358  LIBSTRIPSHLIBOBJS= yes
Line 354  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPAOBJS)          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 .S.po:  .S.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
Line 368  LIBSTRIPSHLIBOBJS= yes
Line 362  LIBSTRIPSHLIBOBJS= yes
 .if defined(CTFCONVERT)  .if defined(CTFCONVERT)
         ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}          ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .endif  .endif
 .if defined(LIBSTRIPAOBJS)          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 .s.go:  .s.go:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
Line 382  LIBSTRIPSHLIBOBJS= yes
Line 374  LIBSTRIPSHLIBOBJS= yes
   
 .s.pico:  .s.pico:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.s} ${PICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.s} ${CAPICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPAOBJS)          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 .S.pico:  .S.pico:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.S} ${PICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}          ${COMPILE.S} ${CAPICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(LIBSTRIPAOBJS)          ${OBJCOPY} ${OBJCOPYFLAGS} ${.TARGET}
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 # Declare a few variables to make our life easier later.  
 _LIB:=${_LIB_PREFIX}${LIB}  
 _LIB.a:=${_LIB}.a  
 _LIB_p.a:=${_LIB}_p.a  
 _LIB_g.a:=${_LIB}_g.a  
 _LIB_pic.a:=${_LIB}_pic.a  
 _LIB.ln:=llib-l${LIB}.ln  
   
 .if ${MKPIC} != "no" && defined(SHLIB_FULLVERSION)  
 _LIB.so:=${_LIB}.so  
 _LIB.so.major:=${_LIB}.so.${SHLIB_MAJOR}  
 _LIB.so.full:=${_LIB}.so.${SHLIB_FULLVERSION}  
 .if ${MKDEBUG} != "no"  
 _LIB.so.debug:=${_LIB.so.full}.debug  
 .endif  
 .endif  
   
 _DEST.LIB:=${DESTDIR}${LIBDIR}  
 _DEST.OBJ:=${DESTDIR}${_LIBSODIR}  
 _DEST.LINT:=${DESTDIR}${LINTLIBDIR}  
 _DEST.DEBUG:=${DESTDIR}${DEBUGDIR}${LIBDIR}  
 _DEST.ODEBUG:=${DESTDIR}${DEBUGDIR}${_LIBSODIR}  
   
 .if defined(LIB)                                                        # {  .if defined(LIB)                                                        # {
 .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \  .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
         || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"          || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"
 _LIBS=${_LIB.a}  _LIBS=lib${LIB}.a
 .else  .else
 _LIBS=  _LIBS=
 .endif  .endif
   
 .if ${LIBISPRIVATE} != "no" \  
    && (defined(USE_COMBINE) && ${USE_COMBINE} == "yes" \  
    && !defined(NOCOMBINE))                                              # {  
 .for f in ${SRCS:N*.h:N*.sh:C/\.[yl]$/.c/g}  
 COMBINEFLAGS.${LIB}.$f := ${CPPFLAGS.$f:D1} ${CPUFLAGS.$f:D2} ${COPTS.$f:D3} ${OBJCOPTS.$f:D4} ${CXXFLAGS.$f:D5}  
 .if empty(COMBINEFLAGS.${LIB}.${f}) && !defined(NOCOMBINE.$f)  
 COMBINESRCS+=   ${f}  
 NODPSRCS+=      ${f}  
 .else  
 OBJS+=          ${f:R:S/$/.o/}  
 .endif  
 .endfor  
   
 .if !empty(COMBINESRCS)  
 OBJS+=          ${_LIB}_combine.o  
 ${_LIB}_combine.o: ${COMBINESRCS}  
         ${_MKTARGET_COMPILE}  
         ${COMPILE.c} -MD --combine ${.ALLSRC} -o ${.TARGET}  
 .if defined(LIBSTRIPOBJS)  
         ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}  
 .endif  
   
 CLEANFILES+=    ${_LIB}_combine.d  
   
 .if exists("${_LIB}_combine.d")  
 .include "${_LIB}_combine.d"  
 .endif  
 .endif   # empty(XSRCS.${LIB})  
 .else                                                   # } {  
 OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}  OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}
 .endif                                                  # }  
   
 STOBJS+=${OBJS}  STOBJS+=${OBJS}
   
Line 467  libinstall::
Line 402  libinstall::
 .endif  .endif
   
 .if ${MKDEBUGLIB} != "no"  .if ${MKDEBUGLIB} != "no"
 _LIBS+=${_LIB_g.a}  _LIBS+=lib${LIB}_g.a
 GOBJS+=${OBJS:.o=.go}  GOBJS+=${OBJS:.o=.go}
 DEBUGFLAGS?=-DDEBUG  DEBUGFLAGS?=-DDEBUG
 .endif  .endif
   
 .if ${MKPROFILE} != "no"  .if ${MKPROFILE} != "no"
 _LIBS+=${_LIB_p.a}  _LIBS+=lib${LIB}_p.a
 POBJS+=${OBJS:.o=.po}  POBJS+=${OBJS:.o=.po}
 PROFFLAGS?=-DGPROF -DPROF  PROFFLAGS?=-DGPROF -DPROF
 .endif  .endif
Line 484  PROFFLAGS?=-DGPROF -DPROF
Line 419  PROFFLAGS?=-DGPROF -DPROF
 # make _pic.a, which isn't really pic,  # make _pic.a, which isn't really pic,
 # since it's needed for making shared lib.  # since it's needed for making shared lib.
 # but don't install it.  # but don't install it.
 SOLIB=${_LIB_pic.a}  SOLIB=lib${LIB}_pic.a
 SOBJS+=${OBJS:.o=.pico}  SOBJS+=${OBJS:.o=.pico}
 .else  .else
 SOLIB=${_LIB.a}  SOLIB=lib${LIB}.a
 .endif  .endif
 .else  .else
 SOLIB=${_LIB_pic.a}  SOLIB=lib${LIB}_pic.a
 _LIBS+=${SOLIB}  _LIBS+=${SOLIB}
 SOBJS+=${OBJS:.o=.pico}  SOBJS+=${OBJS:.o=.pico}
 .endif  .endif
 .if defined(SHLIB_FULLVERSION)  .if defined(SHLIB_FULLVERSION)
 _LIBS+=${_LIB.so.full}  _LIB.so:=lib${LIB}.so.${SHLIB_FULLVERSION}
   .if ${MKDEBUG} != "no"
   _LIB.debug:=${_LIB.so}.debug
   .endif
   _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION}
 .endif  .endif
 .endif                                                                  # }  .endif                                                                  # }
   
 .if ${MKLINT} != "no" && !empty(LOBJS)  .if ${MKLINT} != "no" && !empty(LOBJS)
 _LIBS+=${_LIB.ln}  _LIBS+=llib-l${LIB}.ln
 .endif  .endif
   
 ALLOBJS=  ALLOBJS=
Line 521  _YLSRCS= ${SRCS:M*.[ly]:C/\..$/.c/} ${YH
Line 460  _YLSRCS= ${SRCS:M*.[ly]:C/\..$/.c/} ${YH
   
 .NOPATH: ${ALLOBJS} ${_LIBS} ${_YLSRCS}  .NOPATH: ${ALLOBJS} ${_LIBS} ${_YLSRCS}
   
 realall: ${SRCS} ${ALLOBJS:O} ${_LIBS} ${_LIB.so.debug}  realall: ${SRCS} ${ALLOBJS:O} ${_LIBS} ${_LIB.debug}
   
 MKARZERO?= ${MKREPRO:Uno}  MKARZERO?=no
   
 .if ${MKARZERO} == "yes"  .if ${MKARZERO} == "yes"
 _ARFL=crsD  _ARFL=crsD
Line 560  CLEANFILES+= ${_YLSRCS}
Line 499  CLEANFILES+= ${_YLSRCS}
   
 ${STOBJS} ${POBJS} ${GOBJS} ${SOBJS} ${LOBJS}: ${DPSRCS}  ${STOBJS} ${POBJS} ${GOBJS} ${SOBJS} ${LOBJS}: ${DPSRCS}
   
 ${_LIB.a}:: ${STOBJS} __archivebuild  lib${LIB}.a:: ${STOBJS} __archivebuild
   
 ${_LIB_p.a}:: ${POBJS} __archivebuild  lib${LIB}_p.a:: ${POBJS} __archivebuild
   
 ${_LIB_pic.a}:: ${SOBJS} __archivebuild  lib${LIB}_pic.a:: ${SOBJS} __archivebuild
   
 ${_LIB_g.a}:: ${GOBJS} __archivebuild  lib${LIB}_g.a:: ${GOBJS} __archivebuild
   
   
 _LIBLDOPTS=  _LIBLDOPTS=
Line 594  DPLIBC ?= ${DESTDIR}${LIBC_SO}
Line 533  DPLIBC ?= ${DESTDIR}${LIBC_SO}
 .endif  .endif
 .else  .else
 LDLIBC ?= -nodefaultlibs  LDLIBC ?= -nodefaultlibs
 .if ${HAVE_LIBGCC} == "yes" && ${LIB} == "c"  .if ${LIB} == "c"
 LDADD+= -lgcc  LDADD+= -lgcc
 .endif  .endif
 .endif  .endif
Line 602  LDADD+= -lgcc
Line 541  LDADD+= -lgcc
   
 .if ${LIBISCXX} != "no"  .if ${LIBISCXX} != "no"
 LIBCC:= ${CXX}  LIBCC:= ${CXX}
 . if ${MKLIBCXX} == "yes"  
 LIBDPLIBS+=     c++     ${.CURDIR}/../../../../../external/bsd/libc++/lib  
 . elif defined(HAVE_GCC) && ${HAVE_GCC} == 4  
 LIBDPLIBS+=     stdc++  ${.CURDIR}/../../../../../gnu/lib/libstdc++-v3_4  
 . else  
 LIBDPLIBS+=     stdc++  ${.CURDIR}/../../../../../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3  
 . endif  
 .else  .else
 LIBCC:= ${CC}  LIBCC:= ${CC}
 .endif  .endif
   
 _LDADD.${_LIB}= ${LDADD} ${LDADD.${_LIB}}  _LDADD.lib${LIB}=       ${LDADD} ${LDADD.lib${LIB}}
 _LDFLAGS.${_LIB}=       ${LDFLAGS} ${LDFLAGS.${_LIB}}  _LDFLAGS.lib${LIB}=     ${LDFLAGS} ${LDFLAGS.lib${LIB}}
   
 ${_LIB.so.full}: ${SOLIB} ${DPADD} ${DPLIBC} \  lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOLIB} ${DPADD} ${DPLIBC} \
     ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}      ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
         ${_MKTARGET_BUILD}          ${_MKTARGET_BUILD}
         rm -f ${.TARGET}          rm -f lib${LIB}.so.${SHLIB_FULLVERSION}
         ${LIBCC} ${LDLIBC} -Wl,-x -shared ${SHLIB_SHFLAGS} \          ${LIBCC} ${LDLIBC} -Wl,-x -shared ${SHLIB_SHFLAGS} ${_LDFLAGS.lib${LIB}} \
             ${_LDFLAGS.${_LIB}} -o ${.TARGET} ${_LIBLDOPTS} \              -o ${.TARGET} ${_LIBLDOPTS} \
             -Wl,--whole-archive ${SOLIB} \              -Wl,--whole-archive ${SOLIB} -Wl,--no-whole-archive ${_LDADD.lib${LIB}}
             -Wl,--no-whole-archive ${_LDADD.${_LIB}}  
 #  We don't use INSTALL_SYMLINK here because this is just  #  We don't use INSTALL_SYMLINK here because this is just
 #  happening inside the build directory/objdir. XXX Why does  #  happening inside the build directory/objdir. XXX Why does
 #  this spend so much effort on libraries that aren't live??? XXX  #  this spend so much effort on libraries that aren't live??? XXX
 .if defined(SHLIB_FULLVERSION) && defined(SHLIB_MAJOR) && \  .if defined(SHLIB_FULLVERSION) && defined(SHLIB_MAJOR) && \
     "${SHLIB_FULLVERSION}" != "${SHLIB_MAJOR}"      "${SHLIB_FULLVERSION}" != "${SHLIB_MAJOR}"
         ${HOST_LN} -sf ${_LIB.so.full} ${_LIB.so.major}.tmp          ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp
         mv -f ${_LIB.so.major}.tmp ${_LIB.so.major}          mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR}
 .endif  .endif
         ${HOST_LN} -sf ${_LIB.so.full} ${_LIB.so}.tmp          ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp
         mv -f ${_LIB.so}.tmp ${_LIB.so}          mv -f lib${LIB}.so.tmp lib${LIB}.so
 .if ${MKSTRIPIDENT} != "no"  .if ${MKSTRIPIDENT} != "no"
         ${OBJCOPY} -R .ident ${.TARGET}          ${OBJCOPY} -R .ident ${.TARGET}
 .endif  .endif
   
 .if defined(_LIB.so.debug)  .if defined(_LIB.debug)
 ${_LIB.so.debug}: ${_LIB.so.full}  ${_LIB.debug}: ${_LIB.so}
         ${_MKTARGET_CREATE}          ${_MKTARGET_CREATE}
         (  ${OBJCOPY} --only-keep-debug ${_LIB.so.full} ${_LIB.so.debug} \          (  ${OBJCOPY} --only-keep-debug ${_LIB.so} ${_LIB.debug} \
         && ${OBJCOPY} --strip-debug -p -R .gnu_debuglink \          && ${OBJCOPY} --strip-debug -p -R .gnu_debuglink \
                 --add-gnu-debuglink=${_LIB.so.debug} ${_LIB.so.full} \                  --add-gnu-debuglink=${_LIB.debug} ${_LIB.so} \
         ) || (rm -f ${.TARGET}; false)          ) || (rm -f ${_LIB.debug}; false)
 .endif  .endif
   
 .if !empty(LOBJS)                                                       # {  .if !empty(LOBJS)                                                       # {
 LLIBS?=         -lc  LLIBS?=         -lc
 ${_LIB.ln}: ${LOBJS}  llib-l${LIB}.ln: ${LOBJS}
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         rm -f ${.TARGET}          rm -f llib-l${LIB}.ln
 .if defined(DESTDIR)  .if defined(DESTDIR)
         ${LINT} -C${LIB} ${.ALLSRC} -L${DESTDIR}/usr/libdata ${LLIBS}          ${LINT} -C${LIB} ${.ALLSRC} -L${DESTDIR}/usr/libdata ${LLIBS}
 .else  .else
Line 664  lint: ${LOBJS}
Line 595  lint: ${LOBJS}
         ${LINT} ${LINTFLAGS} ${LOBJS}          ${LINT} ${LINTFLAGS} ${LOBJS}
 .endif  .endif
   
   
 # If the number of entries in CLEANFILES is too large, then the  # If the number of entries in CLEANFILES is too large, then the
 # commands in bsd.clean.mk encounter errors like "exec(/bin/sh)  # commands in bsd.clean.mk encounter errors like "exec(/bin/sh)
 # failed (Argument list too long)".  Avoid that by splitting the  # failed (Argument list too long)".  Avoid that by splitting the
Line 680  libclean3: .PHONY .MADE __cleanuse LIBCL
Line 610  libclean3: .PHONY .MADE __cleanuse LIBCL
 libclean4: .PHONY .MADE __cleanuse LIBCLEANFILES4  libclean4: .PHONY .MADE __cleanuse LIBCLEANFILES4
 libclean5: .PHONY .MADE __cleanuse LIBCLEANFILES5  libclean5: .PHONY .MADE __cleanuse LIBCLEANFILES5
 CLEANFILES+= a.out [Ee]rrs mklog core *.core  CLEANFILES+= a.out [Ee]rrs mklog core *.core
 LIBCLEANFILES1+= ${_LIB.a}   ${STOBJS} ${STOBJS:=.tmp}  LIBCLEANFILES1+= lib${LIB}.a   ${STOBJS} ${STOBJS:=.tmp}
 LIBCLEANFILES2+= ${_LIB_p.a} ${POBJS}  ${POBJS:=.tmp}  LIBCLEANFILES2+= lib${LIB}_p.a ${POBJS}  ${POBJS:=.tmp}
 LIBCLEANFILES3+= ${_LIB_g.a} ${GOBJS}  ${GOBJS:=.tmp}  LIBCLEANFILES3+= lib${LIB}_g.a ${GOBJS}  ${GOBJS:=.tmp}
 LIBCLEANFILES4+= ${_LIB_pic.a}  LIBCLEANFILES4+= lib${LIB}_pic.a lib${LIB}.so.* lib${LIB}.so ${_LIB.debug}
 .if ${MKPIC} != "no" && defined(SHLIB_FULLVERSION)  
 LIBCLEANFILES4+= ${_LIB.so}.* ${_LIB.so} ${_LIB.so.debug}  
 .endif  
 LIBCLEANFILES4+= ${SOBJS} ${SOBJS:=.tmp}  LIBCLEANFILES4+= ${SOBJS} ${SOBJS:=.tmp}
 LIBCLEANFILES5+= ${_LIB.ln} ${LOBJS}  LIBCLEANFILES5+= llib-l${LIB}.ln ${LOBJS}
   
 .if !target(libinstall)                                                 # {  .if !target(libinstall)                                                 # {
 # Make sure it gets defined, in case MKPIC==no && MKLINKLIB==no  # Make sure it gets defined, in case MKPIC==no && MKLINKLIB==no
 libinstall::  libinstall::
   
 .if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no"  .if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no"
 libinstall:: ${_DEST.LIB}/${_LIB.a}  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
 .PRECIOUS: ${_DEST.LIB}/${_LIB.a}  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a
   
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(${_LIB.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)
 ${_DEST.LIB}/${_LIB.a}! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}.a! .MADE
 .endif  .endif
 ${_DEST.LIB}/${_LIB.a}! ${_LIB.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}.a! lib${LIB}.a __archiveinstall
 .else  .else
 .if !defined(BUILD) && !make(all) && !make(${_LIB.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)
 ${_DEST.LIB}/${_LIB.a}: .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE
 .endif  .endif
 ${_DEST.LIB}/${_LIB.a}: ${_LIB.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall
 .endif  .endif
 .endif  .endif
   
 .if ${MKPROFILE} != "no"  .if ${MKPROFILE} != "no"
 libinstall:: ${_DEST.LIB}/${_LIB_p.a}  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
 .PRECIOUS: ${_DEST.LIB}/${_LIB_p.a}  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
   
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(${_LIB_p.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)
 ${_DEST.LIB}/${_LIB_p.a}! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a! .MADE
 .endif  .endif
 ${_DEST.LIB}/${_LIB_p.a}! ${_LIB_p.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a! lib${LIB}_p.a __archiveinstall
 .else  .else
 .if !defined(BUILD) && !make(all) && !make(${_LIB_p.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)
 ${_DEST.LIB}/${_LIB_p.a}: .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE
 .endif  .endif
 ${_DEST.LIB}/${_LIB_p.a}: ${_LIB_p.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall
 .endif  .endif
 .endif  .endif
   
 .if ${MKDEBUGLIB} != "no"  .if ${MKDEBUGLIB} != "no"
 libinstall:: ${_DEST.LIB}/${_LIB_g.a}  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a
 .PRECIOUS: ${_DEST.LIB}/${_LIB_g.a}  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a
   
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(${_LIB_g.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_g.a)
 ${_DEST.LIB}/${_LIB_g.a}! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_g.a! .MADE
 .endif  .endif
 ${_DEST.LIB}/${_LIB_g.a}! ${_LIB_g.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_g.a! lib${LIB}_g.a __archiveinstall
 .else  .else
 .if !defined(BUILD) && !make(all) && !make(${LIB_g.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_g.a)
 ${_DEST.LIB}/${_LIB_g.a}: .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_g.a: .MADE
 .endif  .endif
 ${_DEST.LIB}/${_LIB_g.a}: ${_LIB_g.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_g.a: lib${LIB}_g.a __archiveinstall
 .endif  .endif
 .endif  .endif
   
 .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"  .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"
 libinstall:: ${_DEST.LIB}/${_LIB_pic.a}  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
 .PRECIOUS: ${_DEST.LIB}/${_LIB_pic.a}  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
   
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(${_LIB_pic.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)
 ${_DEST.LIB}/${_LIB_pic.a}! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! .MADE
 .endif  .endif
 .if ${MKPICLIB} == "no"  .if ${MKPICLIB} == "no"
 ${_DEST.LIB}/${_LIB_pic.a}! ${_LIB.a} __archivesymlinkpic  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! lib${LIB}.a __archivesymlinkpic
 .else  .else
 ${_DEST.LIB}/${_LIB_pic.a}! ${_LIB_pic.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! lib${LIB}_pic.a __archiveinstall
 .endif  .endif
 .else  .else
 .if !defined(BUILD) && !make(all) && !make(${_LIB_pic.a})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)
 ${_DEST.LIB}/${_LIB_pic.a}: .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: .MADE
 .endif  .endif
 .if ${MKPICLIB} == "no"  .if ${MKPICLIB} == "no"
 ${_DEST.LIB}/${_LIB_pic.a}: ${_LIB.a} __archivesymlinkpic  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}.a __archivesymlinkpic
 .else  .else
 ${_DEST.LIB}/${_LIB_pic.a}: ${_LIB_pic.a} __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}_pic.a __archiveinstall
 .endif  .endif
 .endif  .endif
 .endif  .endif
   
 .if ${MKPIC} != "no" && defined(SHLIB_FULLVERSION)  .if ${MKPIC} != "no" && defined(SHLIB_FULLVERSION)
   _LIB_SO_TGT=            ${DESTDIR}${_LIBSODIR}/${_LIB_PREFIX}${LIB}.so
   _LIB_SO_TGTLIBDIR=         ${DESTDIR}${LIBDIR}/${_LIB_PREFIX}${LIB}.so
   
 libinstall:: ${_DEST.OBJ}/${_LIB.so.full}  libinstall:: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}
 .PRECIOUS: ${_DEST.OBJ}/${_LIB.so.full}  .PRECIOUS: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}
   
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(${_LIB.so.full})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
 ${_DEST.OBJ}/${_LIB.so.full}! .MADE  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}! .MADE
 .endif  .endif
 ${_DEST.OBJ}/${_LIB.so.full}! ${_LIB.so.full}  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}! lib${LIB}.so.${SHLIB_FULLVERSION}
 .else  .else
 .if !defined(BUILD) && !make(all) && !make(${_LIB.so.full})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
 ${_DEST.OBJ}/${_LIB.so.full}: .MADE  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}: .MADE
 .endif  .endif
 ${_DEST.OBJ}/${_LIB.so.full}: ${_LIB.so.full}  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_FULLVERSION}
 .endif  .endif
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             ${.ALLSRC} ${.TARGET}                  ${.ALLSRC} ${.TARGET}
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
         ${INSTALL_SYMLINK} -l r ${_DEST.OBJ}/${_LIB.so.full} \          ${INSTALL_SYMLINK} -l r \
             ${_DEST.LIB}/${_LIB.so.full}                  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION} \
                   ${_LIB_SO_TGTLIBDIR}.${SHLIB_FULLVERSION}
 .endif  .endif
 .if defined(SHLIB_FULLVERSION) && defined(SHLIB_MAJOR) && \  .if defined(SHLIB_FULLVERSION) && defined(SHLIB_MAJOR) && \
     "${SHLIB_FULLVERSION}" != "${SHLIB_MAJOR}"      "${SHLIB_FULLVERSION}" != "${SHLIB_MAJOR}"
         ${INSTALL_SYMLINK} ${_LIB.so.full} ${_DEST.OBJ}/${_LIB.so.major}          ${INSTALL_SYMLINK} \
                   ${_LIB_PREFIX}${LIB}.so.${SHLIB_FULLVERSION} \
                   ${_LIB_SO_TGT}.${SHLIB_MAJOR}
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
         ${INSTALL_SYMLINK} -l r ${_DEST.OBJ}/${_LIB.so.full} \          ${INSTALL_SYMLINK} -l r \
             ${_DEST.LIB}/${_LIB.so.major}                  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION} \
                   ${_LIB_SO_TGTLIBDIR}.${SHLIB_MAJOR}
 .endif  .endif
 .endif  .endif
 .if ${MKLINKLIB} != "no"  .if ${MKLINKLIB} != "no"
         ${INSTALL_SYMLINK}  ${_LIB.so.full} ${_DEST.OBJ}/${_LIB.so}          ${INSTALL_SYMLINK} \
                   ${_LIB_PREFIX}${LIB}.so.${SHLIB_FULLVERSION} \
                   ${_LIB_SO_TGT}
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
         ${INSTALL_SYMLINK} -l r ${_DEST.OBJ}/${_LIB.so.full} \          ${INSTALL_SYMLINK} -l r \
             ${_DEST.LIB}/${_LIB.so}                  ${_LIB_SO_TGT}.${SHLIB_FULLVERSION} \
                   ${_LIB_SO_TGTLIBDIR}
 .endif  .endif
 .endif  .endif
 .endif  .endif
   
 .if defined(_LIB.so.debug)  .if defined(_LIB.debug)
 libinstall:: ${_DEST.DEBUG}/${_LIB.so.debug}  libinstall:: ${DESTDIR}${DEBUGDIR}${LIBDIR}/${_LIB.debug}
 .PRECIOUS: ${_DEST.DEBUG}/${_LIB.so.debug}  .PRECIOUS: ${DESTDIR}${DEBUGDIR}${LIBDIR}/${_LIB.debug}
   
 ${_DEST.DEBUG}/${_LIB.so.debug}: ${_LIB.so.debug}  ${DESTDIR}${DEBUGDIR}${LIBDIR}/${_LIB.debug}: ${_LIB.debug}
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
         ${INSTALL_FILE} -o ${DEBUGOWN} -g ${DEBUGGRP} -m ${DEBUGMODE} \          ${INSTALL_FILE} -o ${DEBUGOWN} -g ${DEBUGGRP} -m ${DEBUGMODE} \
             ${.ALLSRC} ${.TARGET}                  ${.ALLSRC} ${.TARGET}
 .if ${_LIBSODIR} != ${LIBDIR}  
         ${INSTALL_SYMLINK} -l r ${_DEST.DEBUG}/${_LIB.so.debug} \  
             ${_DEST.ODEBUG}/${_LIB.so.debug}  
 .endif  
 .endif  .endif
   
 .if ${MKLINT} != "no" && !empty(LOBJS)  .if ${MKLINT} != "no" && !empty(LOBJS)
 libinstall:: ${_DEST.LINT}/${_LIB.ln}  libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
 .PRECIOUS: ${_DEST.LINT}/${_LIB.ln}  .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
   
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(${_LIB.ln})  .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)
 ${_DEST.LINT}/${_LIB.ln}! .MADE  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln! .MADE
 .endif  .endif
 ${_DEST.LINT}/${_LIB.ln}! ${_LIB.ln}  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln! llib-l${LIB}.ln
 .else  .else
 .if !defined(BUILD) && !make(all) && !make(${_LIB.ln})  .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)
 ${_DEST.LINT}/${_LIB.ln}: .MADE  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE
 .endif  .endif
 ${_DEST.LINT}/${_LIB.ln}: ${_LIB.ln}  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln
 .endif  .endif
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
                 ${.ALLSRC} ${_DEST.LINT}                  ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
 .endif  .endif
 .endif  # !target(libinstall)                                           # }  .endif  # !target(libinstall)                                           # }
   

Legend:
Removed from v.1.318.2.4  
changed lines
  Added in v.1.319

CVSweb <webmaster@jp.NetBSD.org>