[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.34 and 1.35

version 1.34, 1993/10/27 00:58:31 version 1.35, 1993/11/02 22:02:12
Line 5 
Line 5 
 .include "${.CURDIR}/../Makefile.inc"  .include "${.CURDIR}/../Makefile.inc"
 .endif  .endif
   
   .if exists(${.CURDIR}/shlib_version)
   MAJOR != . ${.CURDIR}/shlib_version ; echo $$major
   MINOR != . ${.CURDIR}/shlib_version ; echo $$minor
   .endif
   
 .MAIN: all  .MAIN: all
   
 # prefer .s to a .c, add .po, remove stuff not used in the BSD libraries  # prefer .s to a .c, add .po, remove stuff not used in the BSD libraries
Line 62  _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)
   _LIBS+=lib${LIB}.so.${MAJOR}.${MINOR}
   .endif
 .endif  .endif
   
 .if !defined(PICFLAG)  .if !defined(PICFLAG)
Line 92  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}:
           @rm -f lib${LIB}.so.${MAJOR}.${MINOR}
           $(LD) -Bforcearchive -o lib${LIB}.so.${MAJOR}.${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 137  realinstall:
Line 149  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) && exists (${.CURDIR}/shlib_version)  .if !defined(NOPIC) && defined(MAJOR) && defined(MINOR)
         . ${.CURDIR}/shlib_version; \  
         $(LD) -Bshareable -Bforcearchive -o lib${LIB}.so.$$major.$$minor lib${LIB}_pic.a  
         . ${.CURDIR}/shlib_version; \  
         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.${MAJOR}.${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.34  
changed lines
  Added in v.1.35

CVSweb <webmaster@jp.NetBSD.org>