[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.187 and 1.188

version 1.187, 2001/10/25 19:32:15 version 1.188, 2001/11/02 05:21:50
Line 1 
Line 1 
 #       $NetBSD$  #       $NetBSD$
 #       @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94  #       @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
   
 .if !target(__initialized__)  .include <bsd.init.mk>
 __initialized__:  
 .if exists(${.CURDIR}/../Makefile.inc)  
 .include "${.CURDIR}/../Makefile.inc"  
 .endif  
 .include <bsd.own.mk>  
 .include <bsd.obj.mk>  
 .include <bsd.depall.mk>  
 .MAIN:          all  
 .endif  
   
   ##### Basic targets
 .PHONY:         checkver cleanlib libinstall  .PHONY:         checkver cleanlib libinstall
 realinstall:    checkver libinstall  realinstall:    checkver libinstall
 clean:          cleanlib  clean:          cleanlib
   
   ##### Build and install rules
 .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
Line 349  __archivebuild: .USE
Line 342  __archivebuild: .USE
         ${RANLIB} ${.TARGET}          ${RANLIB} ${.TARGET}
   
 __archiveinstall: .USE  __archiveinstall: .USE
         ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m 600 ${.ALLSRC} ${.TARGET}
             -g ${LIBGRP} -m 600 ${.ALLSRC} ${.TARGET}  
         ${RANLIB} -t ${.TARGET}          ${RANLIB} -t ${.TARGET}
   .if !defined(UNPRIVILEGED)
         chmod ${LIBMODE} ${.TARGET}          chmod ${LIBMODE} ${.TARGET}
   .endif
   
 DPSRCS+=        ${SRCS:M*.[ly]:C/..$/.c/}  DPSRCS+=        ${SRCS:M*.[ly]:C/..$/.c/}
 CLEANFILES+=    ${DPSRCS} ${YHEADER:D${SRCS:M*.y:.y=.h}}  CLEANFILES+=    ${DPSRCS} ${YHEADER:D${SRCS:M*.y:.y=.h}}
Line 473  libinstall:: ${DESTDIR}${LIBDIR}/lib${LI
Line 467  libinstall:: ${DESTDIR}${LIBDIR}/lib${LI
 ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: .MADE  ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: .MADE
 .endif  .endif
 ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_FULLVERSION}  ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_FULLVERSION}
         ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${.TARGET}                  ${.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
Line 503  libinstall:: ${DESTDIR}${LINTLIBDIR}/lli
Line 497  libinstall:: ${DESTDIR}${LINTLIBDIR}/lli
 ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE
 .endif  .endif
 ${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_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}                  ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
 .endif  .endif
 .endif  .endif
   
   ##### Pull in related .mk logic
 .include <bsd.man.mk>  .include <bsd.man.mk>
 .include <bsd.nls.mk>  .include <bsd.nls.mk>
 .include <bsd.files.mk>  .include <bsd.files.mk>
Line 516  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
Line 511  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
 .include <bsd.dep.mk>  .include <bsd.dep.mk>
 .include <bsd.sys.mk>  .include <bsd.sys.mk>
   
 # Make sure all of the standard targets are defined, even if they do nothing.  ${TARGETS}:     # ensure existence
 lint regress:  

Legend:
Removed from v.1.187  
changed lines
  Added in v.1.188

CVSweb <webmaster@jp.NetBSD.org>