[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.159 and 1.185

version 1.159, 1999/09/14 01:31:11 version 1.185, 2001/09/21 15:25:49
Line 14  __initialized__:
Line 14  __initialized__:
   
 .PHONY:         checkver cleanlib libinstall  .PHONY:         checkver cleanlib libinstall
 realinstall:    checkver libinstall  realinstall:    checkver libinstall
 clean cleandir distclean: cleanlib  clean:          cleanlib
   
 .if 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
   
 # Check for higher installed library versions.  # Check for higher installed library versions.
 .if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \  .if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \
         exists(${BSDSRCDIR}/lib/checkver)          exists(${BSDSRCDIR}/lib/checkver)
 checkver:  checkver:
         @(cd ${.CURDIR} && \          @(cd ${.CURDIR} && \
                 ${BSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \                  sh ${BSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
                     -d ${DESTDIR}${LIBDIR} ${LIB})                      -d ${DESTDIR}${LIBDIR} ${LIB})
 .else  .endif
   .endif
   
   .if !target(checkver)
 checkver:  checkver:
 .endif  .endif
   
   print-shlib-major:
   .if defined(SHLIB_MAJOR) && ${MKPIC} != "no"
           @echo ${SHLIB_MAJOR}
 .else  .else
 checkver:          @false
   .endif
   
   print-shlib-minor:
   .if defined(SHLIB_MINOR) && ${MKPIC} != "no"
           @echo ${SHLIB_MINOR}
   .else
           @false
   .endif
   
   print-shlib-teeny:
   .if defined(SHLIB_TEENY) && ${MKPIC} != "no"
           @echo ${SHLIB_TEENY}
   .else
           @false
   .endif
   
   .if defined(SHLIB_MAJOR) && !empty(SHLIB_MAJOR)
   .if defined(SHLIB_MINOR) && !empty(SHLIB_MINOR)
   .if defined(SHLIB_TEENY) && !empty(SHLIB_TEENY)
   SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
   .else
   SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
   .endif
   .else
   SHLIB_FULLVERSION=${SHLIB_MAJOR}
   .endif
 .endif  .endif
   
 # add additional suffixes not exported.  # add additional suffixes not exported.
Line 44  checkver:
Line 78  checkver:
 # Set PICFLAGS to cc flags for producing position-independent code,  # Set PICFLAGS to cc flags for producing position-independent code,
 # if not already set.  Includes -DPIC, if required.  # 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.
 # OBJECT_FMT:           currently either "ELF" or "a.out", from <bsd.own.mk>  # OBJECT_FMT:           currently either "ELF" or "a.out", from <bsd.own.mk>
 # SHLIB_SOVERSION:      version number to be compiled into a shared library  # SHLIB_SOVERSION:      version number to be compiled into a shared library
 #                       via -soname. Usualy ${SHLIB_MAJOR} on ELF.  #                       via -soname. Usualy ${SHLIB_MAJOR} on ELF.
 #                       NetBSD/pmax used to use ${SHLIB_MAJOR}.{SHLIB-MINOR}.  #                       NetBSD/pmax used to use ${SHLIB_MAJOR}[.${SHLIB_MINOR}
 # SHLIB_SHFLAGS:        Flags to tell ${LD} to emit  shared library.  #                       [.${SHLIB_TEENY}]]
   # SHLIB_SHFLAGS:        Flags to tell ${LD} to emit shared library.
 #                       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
 # CPPICFLAGS:   flags for ${CPP} to preprocess  .[sS]  files for ${AS}  # FPICFLAGS:            flags for ${FC} to compile .[fF] files to .so objects.
 # CPICFLAGS:    flags for ${CC} to compile  .[cC] files to .so objects.  # CPPICFLAGS:           flags for ${CPP} to preprocess .[sS] files for ${AS}
 # CAPICFLAGS    flags for {$CC} to compiling .[Ss] files  # CPICFLAGS:            flags for ${CC} to compile .[cC] files to .so objects.
   # CAPICFLAGS            flags for {$CC} to compiling .[Ss] files
 #                       (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"
                 # Alpha-specific shared library flags                  # Alpha-specific shared library flags
 CPICFLAGS ?= -fpic -DPIC  FPICFLAGS ?= -fPIC
   CPICFLAGS ?= -fPIC -DPIC
 CPPPICFLAGS?= -DPIC  CPPPICFLAGS?= -DPIC
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS ?=  APICFLAGS ?=
 .elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"  .elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
                 # mips-specific shared library flags                  # mips-specific shared library flags
   
 # On mips, all libs need to be compiled with ABIcalls, not just sharedlibs.  # On mips, all libs are compiled with ABIcalls, not just sharedlibs.
 CPICFLAGS?=  MKPICLIB= no
 APICFLAGS?=  
 #CPICFLAGS?= -fpic -DPIC  # so turn shlib PIC flags on for ${AS}.
 #APICFLAGS?= -DPIC  AINC+=-DABICALLS
   
 # so turn shlib PIC flags on for ${CPP}, ${CC}, and ${AS} as follows:  
 AINC+=-DPIC -DABICALLS  
 COPTS+= -fPIC ${AINC}  
 AFLAGS+= -fPIC  AFLAGS+= -fPIC
 AS+=    -KPIC  AS+=    -KPIC
   
 .elif ${MACHINE_ARCH} == "sparc" && ${OBJECT_FMT} == "ELF"  .elif ${MACHINE_ARCH} == "vax" && ${OBJECT_FMT} == "ELF"
   # On the VAX, all object are PIC by default, not just sharedlibs.
   MKPICLIB= no
   
   .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \
          ${OBJECT_FMT} == "ELF"
   
 CPICFLAGS ?= -fpic -DPIC  FPICFLAGS ?= -fPIC
   CPICFLAGS ?= -fPIC -DPIC
 CPPPICFLAGS?= -DPIC  CPPPICFLAGS?= -DPIC
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS ?= -KPIC  APICFLAGS ?= -KPIC
Line 93  APICFLAGS ?= -KPIC
Line 132  APICFLAGS ?= -KPIC
 # Platform-independent flags for NetBSD a.out shared libraries (and PowerPC)  # Platform-independent flags for NetBSD a.out shared libraries (and PowerPC)
 SHLIB_LDSTARTFILE=  SHLIB_LDSTARTFILE=
 SHLIB_LDENDFILE=  SHLIB_LDENDFILE=
   SHLIB_SOVERSION=${SHLIB_FULLVERSION}
 SHLIB_SHFLAGS=  SHLIB_SHFLAGS=
 SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}  FPICFLAGS ?= -fPIC
 CPICFLAGS?= -fpic -DPIC  CPICFLAGS?= -fPIC -DPIC
 CPPPICFLAGS?= -DPIC  CPPPICFLAGS?= -DPIC
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS?= -k  APICFLAGS?= -k
   
 .endif  .endif
   
   MKPICLIB?= yes
   
 # Platform-independent linker flags for ELF shared libraries  # Platform-independent linker flags for ELF shared libraries
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
 SHLIB_SOVERSION=${SHLIB_MAJOR}  SHLIB_SOVERSION=        ${SHLIB_MAJOR}
 SHLIB_SHFLAGS=-soname lib${LIB}.so.${SHLIB_SOVERSION}  SHLIB_SHFLAGS=          -soname lib${LIB}.so.${SHLIB_SOVERSION}
 SHLIB_LDSTARTFILE= ${DESTDIR}/usr/lib/crtbeginS.o  SHLIB_LDSTARTFILE?=     ${DESTDIR}/usr/lib/crtbeginS.o
 SHLIB_LDENDFILE= ${DESTDIR}/usr/lib/crtendS.o  SHLIB_LDENDFILE?=       ${DESTDIR}/usr/lib/crtendS.o
 .endif  .endif
   
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
   FFLAGS+=        ${FOPTS}
   
 .c.o:  .c.o:
 .if defined(COPTS) && !empty(COPTS:M*-g*)  .if defined(COPTS) && !empty(COPTS:M*-g*)
Line 175  CFLAGS+= ${COPTS}
Line 218  CFLAGS+= ${COPTS}
         @rm -f ${.TARGET}.o          @rm -f ${.TARGET}.o
 .endif  .endif
   
   .f.o:
   .if defined(FOPTS) && !empty(FOPTS:M*-g*)
           ${COMPILE.f} ${.IMPSRC}
   .else
           @echo ${COMPILE.f:Q} ${.IMPSRC}
           @${COMPILE.f} ${.IMPSRC} -o ${.TARGET}.o
           @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
           @rm -f ${.TARGET}.o
   .endif
   
   .f.po:
   .if defined(FOPTS) && !empty(FOPTS:M*-g*)
           ${COMPILE.f} -pg ${.IMPSRC} -o ${.TARGET}
   .else
           @echo ${COMPILE.f:Q} -pg ${.IMPSRC} -o ${.TARGET}
           @${COMPILE.f} -pg ${.IMPSRC} -o ${.TARGET}.o
           @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
           @rm -f ${.TARGET}.o
   .endif
   
   .f.so:
   .if defined(FOPTS) && !empty(FOPTS:M*-g*)
           ${COMPILE.f} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}
   .else
           @echo ${COMPILE.f:Q} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}
           @${COMPILE.f} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o
           @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
           @rm -f ${.TARGET}.o
   .endif
   
   .f.ln:
           ${ECHO} Skipping lint for Fortran libraries.
   
 .m.o:  .m.o:
 .if defined(OBJCFLAGS) && !empty(OBJCFLAGS:M*-g*)  .if defined(OBJCFLAGS) && !empty(OBJCFLAGS:M*-g*)
         ${COMPILE.m} ${.IMPSRC}          ${COMPILE.m} ${.IMPSRC}
Line 238  POBJS+=${OBJS:.o=.po}
Line 314  POBJS+=${OBJS:.o=.po}
 .endif  .endif
   
 .if ${MKPIC} != "no"  .if ${MKPIC} != "no"
 _LIBS+=lib${LIB}_pic.a  .if ${MKPICLIB} == "no"
   SOLIB=lib${LIB}.a
   .else
   SOLIB=lib${LIB}_pic.a
   _LIBS+=${SOLIB}
 SOBJS+=${OBJS:.o=.so}  SOBJS+=${OBJS:.o=.so}
 .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)  .endif
 _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}  .if defined(SHLIB_FULLVERSION)
   _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION}
 .endif  .endif
 .endif  .endif
   
 .if ${MKLINT} != "no" && ${MKLINKLIB} != "no"  
 _LIBS+=llib-l${LIB}.ln  
 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)
   _LIBS+=llib-l${LIB}.ln
 .endif  .endif
   
 ALLOBJS=${OBJS} ${POBJS} ${SOBJS} ${LOBJS}  .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
           || ${MKLINKLIB} != "no"
   ALLOBJS=${OBJS} ${POBJS} ${SOBJS}
   .else
   ALLOBJS=${POBJS} ${SOBJS}
   .endif
   .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
   ALLOBJS+=${LOBJS}
   .endif
   .NOPATH: ${ALLOBJS} ${_LIBS}
   
 all: ${SRCS} ${ALLOBJS:O} ${_LIBS}  realall: ${SRCS} ${ALLOBJS:O} ${_LIBS}
   
 __archivebuild: .USE  __archivebuild: .USE
         @rm -f ${.TARGET}          @rm -f ${.TARGET}
Line 271  CLEANFILES+= ${DPSRCS}
Line 361  CLEANFILES+= ${DPSRCS}
 CLEANFILES+=    ${SRCS:M*.y:.y=.h}  CLEANFILES+=    ${SRCS:M*.y:.y=.h}
 .endif  .endif
   
 OBJS+=          ${SRCS:N*.h:N*.sh:R:S/$/.o/g}  
 lib${LIB}.a:: ${OBJS} __archivebuild  lib${LIB}.a:: ${OBJS} __archivebuild
         @echo building standard ${LIB} library          @echo building standard ${LIB} library
   
Line 281  lib${LIB}_p.a:: ${POBJS} __archivebuild
Line 370  lib${LIB}_p.a:: ${POBJS} __archivebuild
 lib${LIB}_pic.a:: ${SOBJS} __archivebuild  lib${LIB}_pic.a:: ${SOBJS} __archivebuild
         @echo building shared object ${LIB} library          @echo building shared object ${LIB} library
   
 lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD} \  lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOLIB} ${DPADD} \
     ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}      ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
         @echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\)          @echo building shared ${LIB} library \(version ${SHLIB_FULLVERSION}\)
         @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}          @rm -f lib${LIB}.so.${SHLIB_FULLVERSION}
 .if defined(DESTDIR)  .if defined(DESTDIR)
         $(LD) -nostdlib -x -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \          $(LD) -nostdlib -x -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \
             ${SHLIB_LDSTARTFILE} \              ${SHLIB_LDSTARTFILE} \
             --whole-archive lib${LIB}_pic.a \              --whole-archive ${SOLIB} \
             -L${DESTDIR}${LIBDIR} -R${LIBDIR} \  
             --no-whole-archive ${LDADD} \              --no-whole-archive ${LDADD} \
               -L${DESTDIR}${LIBDIR} -R${LIBDIR} \
             ${SHLIB_LDENDFILE}              ${SHLIB_LDENDFILE}
 .else  .else
         $(LD) -x -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \          $(LD) -x -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \
             ${SHLIB_LDSTARTFILE} \              ${SHLIB_LDSTARTFILE} \
             --whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \              --whole-archive ${SOLIB} --no-whole-archive ${LDADD} \
             ${SHLIB_LDENDFILE}              ${SHLIB_LDENDFILE}
 .endif  .endif
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
         rm -f lib${LIB}.so.${SHLIB_MAJOR}          ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp
         ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \          mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR}
             lib${LIB}.so.${SHLIB_MAJOR}          ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp
         rm -f lib${LIB}.so          mv -f lib${LIB}.so.tmp lib${LIB}.so
         ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \  
             lib${LIB}.so  
 .endif  .endif
   
   .if !empty(LOBJS)
 LLIBS?=         -lc  LLIBS?=         -lc
 llib-l${LIB}.ln: ${LOBJS}  llib-l${LIB}.ln: ${LOBJS}
         @echo building llib-l${LIB}.ln          @echo building llib-l${LIB}.ln
         @rm -f llib-l${LIB}.ln          @rm -f llib-l${LIB}.ln
         @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}          @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}
   .endif
   
 cleanlib:  cleanlib:
         rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}          rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}
Line 334  libinstall::
Line 423  libinstall::
   
 .if ${MKLINKLIB} != "no"  .if ${MKLINKLIB} != "no"
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
   .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a  .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a
 .endif  .endif
   
 .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
   
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a  
 ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall
 .endif  .endif
   
 .if ${MKPROFILE} != "no"  .if ${MKPROFILE} != "no"
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
   .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a  .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
 .endif  .endif
   
 .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
   
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a  
 ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.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
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a  .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
 .endif  .endif
   
 .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
   .if ${MKPICLIB} == "no"
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a:
           rm -f ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
           ln -s lib${LIB}.a ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
   .else
 ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}_pic.a __archiveinstall  ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}_pic.a __archiveinstall
 .endif  .endif
   .endif
   
 .if ${MKPIC} != "no" && defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)  .if ${MKPIC} != "no" && defined(SHLIB_FULLVERSION)
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
   .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}  .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
 .endif  
 .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR})  
 ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: .MADE  
 .endif  .endif
   
 .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}  .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
 ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}  ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: .MADE
   .endif
   ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_FULLVERSION}
         ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \          ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \
             -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${.TARGET}              -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${.TARGET}
 .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)  .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)
         /sbin/ldconfig -m ${LIBDIR}          /sbin/ldconfig -m ${LIBDIR}
 .endif  .endif
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
         rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}          ln -sf lib${LIB}.so.${SHLIB_FULLVERSION}\
         ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \              ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.tmp
           mv -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.tmp\
             ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}              ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
         rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so  
 .if ${MKLINKLIB} != "no"  .if ${MKLINKLIB} != "no"
         ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \          ln -sf lib${LIB}.so.${SHLIB_FULLVERSION}\
               ${DESTDIR}${LIBDIR}/lib${LIB}.so.tmp
           mv -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.tmp\
             ${DESTDIR}${LIBDIR}/lib${LIB}.so              ${DESTDIR}${LIBDIR}/lib${LIB}.so
 .endif  .endif
 .endif  .endif
 .endif  .endif
   
 .if ${MKLINT} != "no" && ${MKLINKLIB} != "no"  .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
 libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln  libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
   .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln  .PHONY: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
 .endif  .endif
   
 .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
   
 .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln  
 ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln
         ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \          ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \
             -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}              -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.185

CVSweb <webmaster@jp.NetBSD.org>