[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.238 and 1.273

version 1.238, 2003/10/21 10:01:21 version 1.273, 2008/01/09 11:26:14
Line 8 
Line 8 
 .include <bsd.sys.mk>  .include <bsd.sys.mk>
   
 ##### Basic targets  ##### Basic targets
 .PHONY:         checkver cleanlib libinstall  .PHONY:         checkver libinstall
 realinstall:    checkver libinstall  realinstall:    checkver libinstall
 clean:          cleanlib  clean:          cleanlib
   
 ##### LIB specific flags.  ##### LIB specific flags.
 COPTS+=    ${COPTS.lib${LIB}}  COPTS+=     ${COPTS.lib${LIB}}
 CPPFLAGS+=  ${CPPFLAGS.lib${LIB}}  CPPFLAGS+=  ${CPPFLAGS.lib${LIB}}
 CXXFLAGS+=  ${CXXFLAGS.lib${LIB}}  CXXFLAGS+=  ${CXXFLAGS.lib${LIB}}
   OBJCOPTS+=  ${OBJCOPTS.lib${LIB}}
 LDADD+=     ${LDADD.lib${LIB}}  LDADD+=     ${LDADD.lib${LIB}}
 LDFLAGS+=   ${LDFLAGS.lib${LIB}}  LDFLAGS+=   ${LDFLAGS.lib${LIB}}
 LDSTATIC+=  ${LDSTATIC.lib${LIB}}  LDSTATIC+=  ${LDSTATIC.lib${LIB}}
   
   ##### Libraries that this may depend upon.
   .if defined(LIBDPLIBS) && ${MKPIC} != "no"                              # {
   .for _lib _dir in ${LIBDPLIBS}
   .if !defined(LIBDO.${_lib})
   LIBDO.${_lib}!= cd ${_dir} && ${PRINTOBJDIR}
   .MAKEOVERRIDES+=LIBDO.${_lib}
   .endif
   LDADD+=         -L${LIBDO.${_lib}} -l${_lib}
   DPADD+=         ${LIBDO.${_lib}}/lib${_lib}.so
   .endfor
   .endif                                                                  # }
   
 ##### Build and install rules  ##### Build and install rules
   MKDEP_SUFFIXES?=        .o .po .so .ln
 CPPFLAGS+=      ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}  CPPFLAGS+=      ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}
 CXXFLAGS+=      ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++}  CXXFLAGS+=      ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++}
   
 .if !defined(SHLIB_MAJOR) && exists(${SHLIB_VERSION_FILE})  .if !defined(SHLIB_MAJOR) && exists(${SHLIB_VERSION_FILE})              # {
 SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major  SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major
 SHLIB_MINOR != . ${SHLIB_VERSION_FILE} ; echo $$minor  SHLIB_MINOR != . ${SHLIB_VERSION_FILE} ; echo $$minor
 SHLIB_TEENY != . ${SHLIB_VERSION_FILE} ; echo $$teeny  SHLIB_TEENY != . ${SHLIB_VERSION_FILE} ; echo $$teeny
Line 34  SHLIB_TEENY != . ${SHLIB_VERSION_FILE} ;
Line 48  SHLIB_TEENY != . ${SHLIB_VERSION_FILE} ;
         exists(${NETBSDSRCDIR}/lib/checkver)          exists(${NETBSDSRCDIR}/lib/checkver)
 checkver:  checkver:
         @(cd ${.CURDIR} && \          @(cd ${.CURDIR} && \
                 sh ${NETBSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \              ${HOST_SH} ${NETBSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
                     -d ${DESTDIR}${_LIBSODIR} ${LIB})                      -d ${DESTDIR}${_LIBSODIR} ${LIB})
 .endif  .endif
 .endif  .endif                                                                  # }
   
 .if !target(checkver)  .if !target(checkver)
 checkver:  checkver:
Line 64  print-shlib-teeny:
Line 78  print-shlib-teeny:
         @false          @false
 .endif  .endif
   
 .if defined(SHLIB_MAJOR) && !empty(SHLIB_MAJOR)  .if defined(SHLIB_MAJOR) && !empty(SHLIB_MAJOR)                         # {
 .if defined(SHLIB_MINOR) && !empty(SHLIB_MINOR)  .if defined(SHLIB_MINOR) && !empty(SHLIB_MINOR)
 .if defined(SHLIB_TEENY) && !empty(SHLIB_TEENY)  .if defined(SHLIB_TEENY) && !empty(SHLIB_TEENY)
 SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}  SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
Line 74  SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB
Line 88  SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB
 .else  .else
 SHLIB_FULLVERSION=${SHLIB_MAJOR}  SHLIB_FULLVERSION=${SHLIB_MAJOR}
 .endif  .endif
 .endif  .endif                                                                  # }
   
 # add additional suffixes not exported.  # add additional suffixes not exported.
 # .po is used for profiling object files.  # .po is used for profiling object files.
 # .so is used for PIC object files.  # .so is used for PIC object files.
 .SUFFIXES: .out .a .ln .so .po .o .s .S .c .cc .cpp .cxx .C .m .F .f .r .y .l .cl .p .h  .SUFFIXES: .out .a .ln .so .po .go .o .s .S .c .cc .cpp .cxx .C .m .F .f .r .y .l .cl .p .h
 .SUFFIXES: .sh .m4 .m  .SUFFIXES: .sh .m4 .m
   
   
Line 98  SHLIB_FULLVERSION=${SHLIB_MAJOR}
Line 112  SHLIB_FULLVERSION=${SHLIB_MAJOR}
 # 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 .so objects.  # FPICFLAGS:            flags for ${FC} to compile .[fF] files to .so objects.
 # CPPICFLAGS:           flags for ${CPP} to preprocess .[sS] files for ${AS}  # CPPPICFLAGS:          flags for ${CPP} to preprocess .[sS] files for ${AS}
 # CPICFLAGS:            flags for ${CC} to compile .[cC] files to pic objects.  # CPICFLAGS:            flags for ${CC} to compile .[cC] files to pic objects.
 # CSHLIBFLAGS:          flags for ${CC} to compile .[cC] files to .so objects.  # CSHLIBFLAGS:          flags for ${CC} to compile .[cC] files to .so objects.
 #                       (usually includes ${CPICFLAGS})  #                       (usually includes ${CPICFLAGS})
Line 106  SHLIB_FULLVERSION=${SHLIB_MAJOR}
Line 120  SHLIB_FULLVERSION=${SHLIB_MAJOR}
 #                       (usually just ${CPPPICFLAGS} ${CPICFLAGS})  #                       (usually just ${CPPPICFLAGS} ${CPICFLAGS})
 # APICFLAGS:            flags for ${AS} to assemble .[sS] to .so objects.  # APICFLAGS:            flags for ${AS} to assemble .[sS] to .so objects.
   
 .if ${MACHINE_ARCH} == "alpha"  .if ${MACHINE_ARCH} == "alpha"                                          # {
   
 FPICFLAGS ?= -fPIC  FPICFLAGS ?= -fPIC
 CPICFLAGS ?= -fPIC -DPIC  CPICFLAGS ?= -fPIC -DPIC
Line 115  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
Line 129  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS ?=  APICFLAGS ?=
   
 .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \  .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \
        ${OBJECT_FMT} == "ELF"         ${OBJECT_FMT} == "ELF"                                           # } {
   
 # If you use -fPIC you need to define BIGPIC to turn on 32-bit  # If you use -fPIC you need to define BIGPIC to turn on 32-bit
 # relocations in asm code  # relocations in asm code
Line 125  CPPPICFLAGS?= -DPIC -DBIGPIC
Line 139  CPPPICFLAGS?= -DPIC -DBIGPIC
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS ?= -KPIC  APICFLAGS ?= -KPIC
   
 .elif ${MACHINE_ARCH} == "hppa"  .else                                                                   # } {
   
 FPICFLAGS ?= -fPIC  
 CPICFLAGS?= -fPIC -DPIC  
 CPPPICFLAGS?= -DPIC  
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  
 APICFLAGS?= -k  
 # XXX libraries often need the millicode functions in libgcc.a,  
 # so we have to work around the -nostdlib:  
 LDADD+= `${CC} -print-libgcc-file-name`  
   
 .else  # Platform-independent flags for NetBSD shared libraries
   
 # Platform-independent flags for NetBSD a.out shared libraries  
 SHLIB_SOVERSION=${SHLIB_FULLVERSION}  SHLIB_SOVERSION=${SHLIB_FULLVERSION}
 SHLIB_SHFLAGS=  SHLIB_SHFLAGS=
 FPICFLAGS ?= -fPIC  FPICFLAGS ?= -fPIC
Line 147  CPPPICFLAGS?= -DPIC
Line 150  CPPPICFLAGS?= -DPIC
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS?= -k  APICFLAGS?= -k
   
 .endif  .endif                                                                  # }
   
 .if ${MKPICLIB} != "no"  .if ${MKPICLIB} != "no"
 CSHLIBFLAGS+= ${CPICFLAGS}  CSHLIBFLAGS+= ${CPICFLAGS}
Line 163  MKSHLIBOBJS= no
Line 166  MKSHLIBOBJS= no
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
 SHLIB_SOVERSION=        ${SHLIB_MAJOR}  SHLIB_SOVERSION=        ${SHLIB_MAJOR}
 SHLIB_SHFLAGS=          -Wl,-soname,lib${LIB}.so.${SHLIB_SOVERSION}  SHLIB_SHFLAGS=          -Wl,-soname,lib${LIB}.so.${SHLIB_SOVERSION}
   SHLIB_SHFLAGS+=         -Wl,--warn-shared-textrel
 SHLIB_LDSTARTFILE?=     ${DESTDIR}/usr/lib/crti.o ${_GCC_CRTBEGINS}  SHLIB_LDSTARTFILE?=     ${DESTDIR}/usr/lib/crti.o ${_GCC_CRTBEGINS}
 SHLIB_LDENDFILE?=       ${_GCC_CRTENDS} ${DESTDIR}/usr/lib/crtn.o  SHLIB_LDENDFILE?=       ${_GCC_CRTENDS} ${DESTDIR}/usr/lib/crtn.o
 .endif  .endif
   
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
   OBJCFLAGS+=     ${OBJCOPTS}
   AFLAGS+=        ${COPTS}
 FFLAGS+=        ${FOPTS}  FFLAGS+=        ${FOPTS}
   
 .c.o:  .c.o:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(COPTS) && !empty(COPTS:M*-g*)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .c.po:  .c.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.c} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}
 .if defined(COPTS) && !empty(COPTS:M*-g*)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -X ${.TARGET}
 .else  
         ${LD} -X -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .c.so:  .c.go:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.c} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -g ${.IMPSRC} -o ${.TARGET}
 .if defined(COPTS) && !empty(COPTS:M*-g*)  
         mv ${.TARGET}.tmp ${.TARGET}  
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  
   
 .c.ln:  .c.so:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${LINT} ${LINTFLAGS} ${CPPFLAGS:M-[IDU]*} ${CPPFLAGS.${.IMPSRC:T}:M-[-IDU]*} -i ${.IMPSRC}          ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
   .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
           ${OBJCOPY} -x ${.TARGET}
   .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}.tmp          ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(COPTS) && !empty(COPTS:M*-g*)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .cc.po .cpp.po .cxx.o .C.po:  .cc.po .cpp.po .cxx.po .C.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.cc} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}
 .if defined(COPTS) && !empty(COPTS:M*-g*)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -X ${.TARGET}
 .else  
         ${LD} -X -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
   .cc.go .cpp.go .cxx.go .C.go:
           ${_MKTARGET_COMPILE}
           ${COMPILE.cc} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -g ${.IMPSRC} -o ${.TARGET}
   
 .cc.so .cpp.so .cxx.so .C.so:  .cc.so .cpp.so .cxx.so .C.so:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
 .if defined(COPTS) && !empty(COPTS:M*-g*)  .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .f.o:  .f.o:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.f} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.f} ${.IMPSRC} -o ${.TARGET}
 .if defined(FOPTS) && !empty(FOPTS:M*-g*)  .if !defined(FOPTS) || empty(FOPTS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .f.po:  .f.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.f} -pg ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.f} ${PROFFLAGS} -pg ${.IMPSRC} -o ${.TARGET}
 .if defined(FOPTS) && !empty(FOPTS:M*-g*)  .if !defined(FOPTS) || empty(FOPTS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -X ${.TARGET}
 .else  
         ${LD} -X -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
   .f.go:
           ${_MKTARGET_COMPILE}
           ${COMPILE.f} ${DEBUGFLAGS} -g ${.IMPSRC} -o ${.TARGET}
   
 .f.so:  .f.so:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.f} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.f} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}
 .if defined(FOPTS) && !empty(FOPTS:M*-g*)  .if !defined(FOPTS) || empty(FOPTS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .f.ln:  .f.ln:
Line 270  FFLAGS+= ${FOPTS}
Line 257  FFLAGS+= ${FOPTS}
   
 .m.o:  .m.o:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.m} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.m} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(OBJCFLAGS) && !empty(OBJCFLAGS:M*-g*)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .m.po:  .m.po:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.m} -pg ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.m} ${PROFFLAGS} -pg ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(OBJCFLAGS) && !empty(OBJCFLAGS:M*-g*)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -X ${.TARGET}
 .else  .endif
         ${LD} -X -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  .m.go:
           ${_MKTARGET_COMPILE}
           ${COMPILE.m} ${DEBUGFLAGS} -g ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
   .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
           ${OBJCOPY} -X ${.TARGET}
 .endif  .endif
   
 .m.so:  .m.so:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.m} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.m} ${CSHLIBFLAGS} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
 .if defined(OBJCFLAGS) && !empty(OBJCFLAGS:M*-g*)  .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
         mv ${.TARGET}.tmp ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
 .else  
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
 .endif  .endif
   
 .S.o .s.o:  .s.o:
           ${_MKTARGET_COMPILE}
           ${COMPILE.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
           ${OBJCOPY} -x ${.TARGET}
   
   .S.o:
           ${_MKTARGET_COMPILE}
           ${COMPILE.S} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
           ${OBJCOPY} -x ${.TARGET}
   
   .s.po:
           ${_MKTARGET_COMPILE}
           ${COMPILE.s} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
           ${OBJCOPY} -X ${.TARGET}
   
   .S.po:
           ${_MKTARGET_COMPILE}
           ${COMPILE.S} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
           ${OBJCOPY} -X ${.TARGET}
   
   .s.go:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.S} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.s} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
   
 .S.po .s.po:  .S.go:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.S} -DGPROF -DPROF ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.S} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
         ${LD} -X -r ${.TARGET}.tmp -o ${.TARGET}  
         rm -f ${.TARGET}.tmp  
   
 .S.so .s.so:  .s.so:
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
         ${COMPILE.S} ${CAPICFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.tmp          ${COMPILE.s} ${CAPICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
         ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}          ${OBJCOPY} -x ${.TARGET}
         rm -f ${.TARGET}.tmp  
   
 .if defined(LIB)  .S.so:
           ${_MKTARGET_COMPILE}
           ${COMPILE.S} ${CAPICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
           ${OBJCOPY} -x ${.TARGET}
   
   .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${LIB}.a  _LIBS=lib${LIB}.a
Line 326  _LIBS=
Line 331  _LIBS=
   
 OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}  OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}
   
   STOBJS+=${OBJS}
   
   .if ${MKPRIVATELIB} != "no"
   # No installation is required
   libinstall::
   .else   # ${MKPRIVATELIB} == "no"                                       # {
   
   .if ${MKDEBUGLIB} != "no"
   _LIBS+=lib${LIB}_g.a
   GOBJS+=${OBJS:.o=.go}
   DEBUGFLAGS?=-DDEBUG
   .endif
   
 .if ${MKPROFILE} != "no"  .if ${MKPROFILE} != "no"
 _LIBS+=lib${LIB}_p.a  _LIBS+=lib${LIB}_p.a
 POBJS+=${OBJS:.o=.po}  POBJS+=${OBJS:.o=.po}
   PROFFLAGS?=-DGPROF -DPROF
 .endif  .endif
   
 .if ${MKPIC} != "no"  .if ${MKPIC} != "no"                                                    # {
 .if ${MKPICLIB} == "no"  .if ${MKPICLIB} == "no"
 .if ${MKSHLIBOBJS} != "no"  .if ${MKSHLIBOBJS} != "no"
 # make _pic.a, which isn't really pic,  # make _pic.a, which isn't really pic,
Line 350  SOBJS+=${OBJS:.o=.so}
Line 369  SOBJS+=${OBJS:.o=.so}
 .if defined(SHLIB_FULLVERSION)  .if defined(SHLIB_FULLVERSION)
 _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION}  _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION}
 .endif  .endif
 .endif  .endif                                                                  # }
   
 LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}  LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
 .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)  .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
 _LIBS+=llib-l${LIB}.ln  _LIBS+=llib-l${LIB}.ln
 .endif  .endif
   
   .endif  # ${MKPRIVATELIB} == "no"                                       # }
   
 ALLOBJS=  ALLOBJS=
 .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \  .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
         || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"          || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"
 ALLOBJS+=${OBJS}  ALLOBJS+=${STOBJS}
 .endif  .endif
 ALLOBJS+=${POBJS} ${SOBJS}  ALLOBJS+=${POBJS} ${SOBJS}
 .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)  .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
 ALLOBJS+=${LOBJS}  ALLOBJS+=${LOBJS}
 .endif  .endif
 .else  .else   # !defined(LIB)                                                 # } {
 LOBJS=  LOBJS=
 SOBJS=  SOBJS=
 .endif  .endif  # !defined(LIB)                                                 # }
   
 .NOPATH: ${ALLOBJS} ${_LIBS} ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}  _YLSRCS=        ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}
   
   .NOPATH: ${ALLOBJS} ${_LIBS} ${_YLSRCS}
   
 realall: ${SRCS} ${ALLOBJS:O} ${_LIBS}  realall: ${SRCS} ${ALLOBJS:O} ${_LIBS}
   
   .if !target(__archivebuild)
 __archivebuild: .USE  __archivebuild: .USE
         ${_MKTARGET_BUILD}          ${_MKTARGET_BUILD}
         rm -f ${.TARGET}          rm -f ${.TARGET}
         ${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`          ${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
         ${RANLIB} ${.TARGET}          ${RANLIB} ${.TARGET}
   .endif
   
   .if !target(__archiveinstall)
 __archiveinstall: .USE  __archiveinstall: .USE
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             ${UPDATE:D:U-a "${RANLIB} -t"} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}              ${empty(PRESERVE):?-a "${RANLIB} -t":} ${.ALLSRC} ${.TARGET}
   .endif
   
 __archivesymlinkpic: .USE  __archivesymlinkpic: .USE
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
         ${INSTALL_SYMLINK} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}          ${INSTALL_SYMLINK} ${.ALLSRC} ${.TARGET}
   
 DPSRCS+=        ${SRCS:M*.l:.l=.c} ${SRCS:M*.y:.y=.c}  DPSRCS+=        ${_YLSRCS}
 CLEANFILES+=    ${SRCS:M*.l:.l=.c} ${SRCS:M*.y:.y=.c}  CLEANFILES+=    ${_YLSRCS}
 CLEANFILES+=    ${YHEADER:D${SRCS:M*.y:.y=.h}}  
   
 ${OBJS} ${POBJS} ${SOBJS} ${LOBJS}: ${DPSRCS}  ${STOBJS} ${POBJS} ${GOBJS} ${SOBJS} ${LOBJS}: ${DPSRCS}
   
 lib${LIB}.a:: ${OBJS} __archivebuild  lib${LIB}.a:: ${STOBJS} __archivebuild
   
 lib${LIB}_p.a:: ${POBJS} __archivebuild  lib${LIB}_p.a:: ${POBJS} __archivebuild
   
 lib${LIB}_pic.a:: ${SOBJS} __archivebuild  lib${LIB}_pic.a:: ${SOBJS} __archivebuild
   
   lib${LIB}_g.a:: ${GOBJS} __archivebuild
   
   
 _LIBLDOPTS=  _LIBLDOPTS=
 .if ${SHLIBDIR} != "/usr/lib"  .if ${SHLIBDIR} != "/usr/lib"
Line 433  lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOL
Line 461  lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOL
 #  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
         ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp          ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp
         mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR}          mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR}
         ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp          ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp
         mv -f lib${LIB}.so.tmp lib${LIB}.so          mv -f lib${LIB}.so.tmp lib${LIB}.so
 .endif  .endif
   
 .if !empty(LOBJS)  .if !empty(LOBJS)                                                       # {
 LLIBS?=         -lc  LLIBS?=         -lc
 llib-l${LIB}.ln: ${LOBJS}  llib-l${LIB}.ln: ${LOBJS}
         ${_MKTARGET_COMPILE}          ${_MKTARGET_COMPILE}
Line 449  llib-l${LIB}.ln: ${LOBJS}
Line 477  llib-l${LIB}.ln: ${LOBJS}
 .else  .else
         ${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}          ${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}
 .endif  .endif
 .endif  .endif                                                                  # }
   
 cleanlib:  cleanlib: .PHONY
         rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}          rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}
         rm -f lib${LIB}.a ${OBJS}          rm -f lib${LIB}.a ${STOBJS}
         rm -f lib${LIB}_p.a ${POBJS}          rm -f lib${LIB}_p.a ${POBJS}
           rm -f lib${LIB}_g.a ${GOBJS}
         rm -f lib${LIB}_pic.a lib${LIB}.so.* lib${LIB}.so ${SOBJS}          rm -f lib${LIB}_pic.a lib${LIB}.so.* lib${LIB}.so ${SOBJS}
         rm -f ${OBJS:=.tmp} ${POBJS:=.tmp} ${SOBJS:=.tmp}          rm -f ${STOBJS:=.tmp} ${POBJS:=.tmp} ${SOBJS:=.tmp} ${GOBJS:=.tmp}
         rm -f llib-l${LIB}.ln ${LOBJS}          rm -f llib-l${LIB}.ln ${LOBJS}
   
 .if defined(SRCS)  
 afterdepend: .depend  
         @(TMP=/tmp/_depend$$$$; trap 'rm -f $$TMP ; exit 1' 1 2 3 13 15; \  
             sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so \1.ln:/' \  
               < .depend > $$TMP && \  
             mv $$TMP .depend)  
 .endif  
   
 .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::
   
Line 475  libinstall::
Line 497  libinstall::
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a
   
 .if !defined(UPDATE)  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)
 ${DESTDIR}${LIBDIR}/lib${LIB}.a! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}.a! .MADE
 .endif  .endif
Line 492  ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LI
Line 514  ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LI
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
   
 .if !defined(UPDATE)  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)
 ${DESTDIR}${LIBDIR}/lib${LIB}_p.a! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a! .MADE
 .endif  .endif
Line 505  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${
Line 527  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${
 .endif  .endif
 .endif  .endif
   
   .if ${MKDEBUGLIB} != "no"
   libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a
   .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a
   
   .if ${MKUPDATE} == "no"
   .if !defined(BUILD) && !make(all) && !make(lib${LIB}_g.a)
   ${DESTDIR}${LIBDIR}/lib${LIB}_g.a! .MADE
   .endif
   ${DESTDIR}${LIBDIR}/lib${LIB}_g.a! lib${LIB}_g.a __archiveinstall
   .else
   .if !defined(BUILD) && !make(all) && !make(lib${LIB}_g.a)
   ${DESTDIR}${LIBDIR}/lib${LIB}_g.a: .MADE
   .endif
   ${DESTDIR}${LIBDIR}/lib${LIB}_g.a: lib${LIB}_g.a __archiveinstall
   .endif
   .endif
   
 .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"  .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a  .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
   
 .if !defined(UPDATE)  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)  .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)
 ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! .MADE
 .endif  .endif
Line 534  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib
Line 573  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib
 libinstall:: ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}  libinstall:: ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
 .PRECIOUS: ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}  .PRECIOUS: ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
   
 .if !defined(UPDATE)  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
 ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}! .MADE  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}! .MADE
 .endif  .endif
Line 547  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SH
Line 586  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SH
 .endif  .endif
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
                 ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}                  ${.ALLSRC} ${.TARGET}
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
         ${INSTALL_SYMLINK} ${SYSPKGTAG} \          ${INSTALL_SYMLINK} \
                 ${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \                  -l r ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
                 ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}                  ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
 .endif  .endif
 .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)  .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)
         /sbin/ldconfig -m ${_LIBSODIR} ${LIBDIR}          /sbin/ldconfig -m ${_LIBSODIR} ${LIBDIR}
 .endif  .endif
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
         ${INSTALL_SYMLINK} ${SYSPKGTAG} \          ${INSTALL_SYMLINK} \
                 lib${LIB}.so.${SHLIB_FULLVERSION} \                  lib${LIB}.so.${SHLIB_FULLVERSION} \
                 ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_MAJOR}                  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_MAJOR}
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
         ${INSTALL_SYMLINK} ${SYSPKGTAG} \          ${INSTALL_SYMLINK} \
                 ${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \                  -l r ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
                 ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}                  ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
 .endif  .endif
 .if ${MKLINKLIB} != "no"  .if ${MKLINKLIB} != "no"
         ${INSTALL_SYMLINK} ${SYSPKGTAG} \          ${INSTALL_SYMLINK} \
                 lib${LIB}.so.${SHLIB_FULLVERSION} \                  lib${LIB}.so.${SHLIB_FULLVERSION} \
                 ${DESTDIR}${_LIBSODIR}/lib${LIB}.so                  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
         ${INSTALL_SYMLINK} ${SYSPKGTAG} \          ${INSTALL_SYMLINK} \
                 ${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \                  -l r ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
                 ${DESTDIR}${LIBDIR}/lib${LIB}.so                  ${DESTDIR}${LIBDIR}/lib${LIB}.so
 .endif  .endif
 .endif  .endif
Line 582  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SH
Line 621  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SH
 libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln  libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
 .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln  .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
   
 .if !defined(UPDATE)  .if ${MKUPDATE} == "no"
 .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)  .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)
 ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln! .MADE  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln! .MADE
 .endif  .endif
Line 595  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
Line 634  ${DESTDIR}${LINTLIBDIR}/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} \
                 ${SYSPKGTAG} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}                  ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
 .endif  
 .endif  .endif
   .endif  # !target(libinstall)                                           # }
   
 ##### Pull in related .mk logic  ##### Pull in related .mk logic
 .include <bsd.man.mk>  .include <bsd.man.mk>

Legend:
Removed from v.1.238  
changed lines
  Added in v.1.273

CVSweb <webmaster@jp.NetBSD.org>