[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.36 and 1.37

version 1.36, 1993/11/02 22:59:06 version 1.37, 1993/11/02 23:08:20
Line 6 
Line 6 
 .endif  .endif
   
 .if exists(${.CURDIR}/shlib_version)  .if exists(${.CURDIR}/shlib_version)
 MAJOR != . ${.CURDIR}/shlib_version ; echo $$major  SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major
 MINOR != . ${.CURDIR}/shlib_version ; echo $$minor  SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor
 .endif  .endif
   
 .MAIN: all  .MAIN: all
Line 67  _LIBS=lib${LIB}.a
Line 67  _LIBS=lib${LIB}.a
   
 .if !defined(NOPIC)  .if !defined(NOPIC)
 _LIBS+=lib${LIB}_pic.a  _LIBS+=lib${LIB}_pic.a
 .if defined(MAJOR) && defined(MINOR)  .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
 _LIBS+=lib${LIB}.so.${MAJOR}.${MINOR}  _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
 .endif  .endif
 .endif  .endif
   
Line 100  lib${LIB}_pic.a:: ${SOBJS}
Line 100  lib${LIB}_pic.a:: ${SOBJS}
         @${AR} cTq lib${LIB}_pic.a `lorder ${SOBJS} | tsort` ${LDADD}          @${AR} cTq lib${LIB}_pic.a `lorder ${SOBJS} | tsort` ${LDADD}
         ${RANLIB} lib${LIB}_pic.a          ${RANLIB} lib${LIB}_pic.a
   
 lib${LIB}.so.${MAJOR}.${MINOR}:  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}:
         @rm -f lib${LIB}.so.${MAJOR}.${MINOR}          @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
         $(LD) -Bshareable -Bforcearchive -o lib${LIB}.so.${MAJOR}.${MINOR} lib${LIB}_pic.a          $(LD) -Bshareable -Bforcearchive \
               -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a
   
 llib-l${LIB}.ln: ${SRCS}  llib-l${LIB}.ln: ${SRCS}
         ${LINT} -C${LIB} ${CFLAGS} ${.ALLSRC:M*.c}          ${LINT} -C${LIB} ${CFLAGS} ${.ALLSRC:M*.c}
Line 149  realinstall:
Line 150  realinstall:
             lib${LIB}_pic.a ${DESTDIR}${LIBDIR}              lib${LIB}_pic.a ${DESTDIR}${LIBDIR}
         ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a          ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
 .endif  .endif
 .if !defined(NOPIC) && defined(MAJOR) && defined(MINOR)  .if !defined(NOPIC) && defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
         install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             lib${LIB}.so.${MAJOR}.${MINOR} ${DESTDIR}${LIBDIR}              lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${DESTDIR}${LIBDIR}
 .endif  .endif
 #       install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \  #       install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
 #           llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR}  #           llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR}

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

CVSweb <webmaster@jp.NetBSD.org>