[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.95 and 1.100

version 1.95, 1997/05/06 21:29:38 version 1.100, 1997/05/09 05:43:42
Line 5 
Line 5 
 .include "${.CURDIR}/../Makefile.inc"  .include "${.CURDIR}/../Makefile.inc"
 .endif  .endif
   
 .MAIN:          all  .include <bsd.own.mk>
 .PHONY:         cleanlib afterdepend beforeinstall libinstall afterinstall  
   
 .include <bsd.own.mk>                           # for 'NOPIC' definition  .MAIN:          all
   .PHONY:         cleanlib libinstall
   install:        libinstall
   clean cleandir: cleanlib
   
 .if exists(${.CURDIR}/shlib_version)  .if exists(${.CURDIR}/shlib_version)
 SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major  SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major
Line 153  _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHL
Line 155  _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHL
 _LIBS+=llib-l${LIB}.ln  _LIBS+=llib-l${LIB}.ln
 .endif  .endif
   
 all: ${_LIBS} _SUBDIRUSE  all depend: ${SRCS}
   all: ${_LIBS}
   
 OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}  OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
   
Line 200  llib-l${LIB}.ln: ${LOBJS}
Line 203  llib-l${LIB}.ln: ${LOBJS}
         @rm -f llib-l${LIB}.ln          @rm -f llib-l${LIB}.ln
         @${LINT} -C${LIB} ${LOBJS} ${LLIBS}          @${LINT} -C${LIB} ${LOBJS} ${LLIBS}
   
 .if !target(clean)  
 cleanlib:  cleanlib:
         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 ${OBJS}
Line 208  cleanlib:
Line 210  cleanlib:
         rm -f lib${LIB}_pic.a lib${LIB}.so.*.* ${SOBJS}          rm -f lib${LIB}_pic.a lib${LIB}.so.*.* ${SOBJS}
         rm -f llib-l${LIB}.ln ${LOBJS}          rm -f llib-l${LIB}.ln ${LOBJS}
   
 clean: _SUBDIRUSE cleanlib  
 cleandir: _SUBDIRUSE cleanlib  
 .else  
 cleandir: _SUBDIRUSE clean  
 .endif  
   
 .if defined(SRCS)  .if defined(SRCS)
 afterdepend: .depend  afterdepend: .depend
         @(TMP=/tmp/_depend$$$$; \          @(TMP=/tmp/_depend$$$$; \
Line 222  afterdepend: .depend
Line 218  afterdepend: .depend
             mv $$TMP .depend)              mv $$TMP .depend)
 .endif  .endif
   
 .if !target(install)  .if !target(libinstall)
 .if !target(beforeinstall)  
 beforeinstall:  
 .endif  
   
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a  .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a
Line 301  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
Line 293  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
         ${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}
 .endif  .endif
   
 libinstall:: linksinstall  
 realinstall: libinstall filesinstall  
   
 install: ${MANINSTALL} _SUBDIRUSE  
 ${MANINSTALL}: afterinstall  
 afterinstall: realinstall  
 realinstall: beforeinstall  
 .endif  .endif
   
 .if !defined(NOMAN)  .if !defined(NOMAN)

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.100

CVSweb <webmaster@jp.NetBSD.org>