[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.111 and 1.114.2.1

version 1.111, 1997/05/27 18:51:12 version 1.114.2.1, 1997/10/12 22:11:24
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__)
   __initialized__:
 .if exists(${.CURDIR}/../Makefile.inc)  .if exists(${.CURDIR}/../Makefile.inc)
 .include "${.CURDIR}/../Makefile.inc"  .include "${.CURDIR}/../Makefile.inc"
 .endif  .endif
   
 .include <bsd.own.mk>  .include <bsd.own.mk>
   .include <bsd.obj.mk>
 .MAIN:          all  .MAIN:          all
   .endif
   
 .PHONY:         cleanlib libinstall  .PHONY:         cleanlib libinstall
 realinstall:    libinstall  realinstall:    libinstall
 clean cleandir: cleanlib  clean cleandir: cleanlib
Line 77  SHLIB_TYPE=a.out
Line 80  SHLIB_TYPE=a.out
 SHLIB_LDSTARTFILE=  SHLIB_LDSTARTFILE=
 SHLIB_LDENDFILE=  SHLIB_LDENDFILE=
 SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}  SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
 CPICFLAGS?= -fpic  CPICFLAGS?= -fpic -DPIC
 CPPPICFLAGS?= -DPIC  CPPPICFLAGS?= -DPIC
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}  CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS?= -k  APICFLAGS?= -k
Line 181  CLEANFILES+= ${DPSRCS}
Line 184  CLEANFILES+= ${DPSRCS}
 OBJS+=          ${SRCS:N*.h:N*.sh:R:S/$/.o/g}  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
 .if defined(OBJDIR)  .if defined(OBJDIR) && !defined(NOINSTALL)
         @echo install -d ${BUILDDIR}${LIBDIR}          @echo install -d ${BUILDDIR}${LIBDIR}
         @install -d ${BUILDDIR}${LIBDIR}          @install -d ${BUILDDIR}${LIBDIR}
         @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};          @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
Line 192  lib${LIB}.a:: ${OBJS} __archivebuild
Line 195  lib${LIB}.a:: ${OBJS} __archivebuild
 POBJS+=         ${OBJS:.o=.po}  POBJS+=         ${OBJS:.o=.po}
 lib${LIB}_p.a:: ${POBJS} __archivebuild  lib${LIB}_p.a:: ${POBJS} __archivebuild
         @echo building profiled ${LIB} library          @echo building profiled ${LIB} library
 .if defined(OBJDIR)  .if defined(OBJDIR) && !defined(NOINSTALL)
         @echo install -d ${BUILDDIR}${LIBDIR}          @echo install -d ${BUILDDIR}${LIBDIR}
         @install -d ${BUILDDIR}${LIBDIR}          @install -d ${BUILDDIR}${LIBDIR}
         @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};          @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
Line 203  lib${LIB}_p.a:: ${POBJS} __archivebuild
Line 206  lib${LIB}_p.a:: ${POBJS} __archivebuild
 SOBJS+=         ${OBJS:.o=.so}  SOBJS+=         ${OBJS:.o=.so}
 lib${LIB}_pic.a:: ${SOBJS} __archivebuild  lib${LIB}_pic.a:: ${SOBJS} __archivebuild
         @echo building shared object ${LIB} library          @echo building shared object ${LIB} library
 .if defined(OBJDIR)  .if defined(OBJDIR) && !defined(NOINSTALL)
         @echo install -d ${BUILDDIR}${LIBDIR}          @echo install -d ${BUILDDIR}${LIBDIR}
         @install -d ${BUILDDIR}${LIBDIR}          @install -d ${BUILDDIR}${LIBDIR}
         @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};          @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
Line 217  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO
Line 220  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO
         @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}          @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
 .if (${SHLIB_TYPE} == "a.out")  .if (${SHLIB_TYPE} == "a.out")
         $(LD) -x -Bshareable -Bforcearchive \          $(LD) -x -Bshareable -Bforcearchive \
             -o ${.TARGET} lib${LIB}_pic.a ${LDADD}              -o ${.TARGET} lib${LIB}_pic.a -nostdlib -L${BUILDDIR}/usr/lib ${LDADD}
 .elif (${SHLIB_TYPE} == "ELF")  .elif (${SHLIB_TYPE} == "ELF")
         $(LD) -x -shared -o ${.TARGET} \          $(LD) -x -shared -o ${.TARGET} \
             -soname lib${LIB}.so.${SHLIB_SOVERSION}  ${SHLIB_LDSTARTFILE} \              -soname lib${LIB}.so.${SHLIB_SOVERSION}  ${SHLIB_LDSTARTFILE} \
             --whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \              --whole-archive lib${LIB}_pic.a --no-whole-archive \
             ${SHLIB_LDENDFILE}              -L${BUILDDIR}/usr/lib ${LDADD} ${SHLIB_LDENDFILE}
 .endif  .endif
 .if defined(OBJDIR)  .if defined(OBJDIR) && !defined(NOINSTALL)
         @echo install -d ${BUILDDIR}${LIBDIR}          @echo install -d ${BUILDDIR}${LIBDIR}
         @install -d ${BUILDDIR}${LIBDIR}          @install -d ${BUILDDIR}${LIBDIR}
         @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};          @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
Line 262  afterdepend: .depend
Line 265  afterdepend: .depend
             mv $$TMP .depend)              mv $$TMP .depend)
 .endif  .endif
   
   # Define NOINSTALL if this is a library that is used during the build
   # only, and should not be installed into DESTDIR.
   .if defined(NOINSTALL)
   libinstall::
   .endif
   
 .if !target(libinstall)  .if !target(libinstall)
 libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a  libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
 .if !defined(UPDATE)  .if !defined(UPDATE)
Line 339  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
Line 348  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
 .endif  .endif
 .endif  .endif
   
 .if !defined(NOMAN)  
 .include <bsd.man.mk>  .include <bsd.man.mk>
 .endif  
   
 .if !defined(NONLS)  
 .include <bsd.nls.mk>  .include <bsd.nls.mk>
 .endif  
   
 .include <bsd.obj.mk>  
 .include <bsd.files.mk>  .include <bsd.files.mk>
 .include <bsd.inc.mk>  .include <bsd.inc.mk>
 .include <bsd.links.mk>  .include <bsd.links.mk>
 .include <bsd.dep.mk>  .include <bsd.dep.mk>
 .include <bsd.subdir.mk>  
 .include <bsd.sys.mk>  .include <bsd.sys.mk>
   
   # Make sure all of the standard targets are defined, even if they do nothing.
   lint regress:

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.114.2.1

CVSweb <webmaster@jp.NetBSD.org>