[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.107 and 1.108

version 1.107, 1997/05/24 01:42:38 version 1.108, 1997/05/26 03:58:18
Line 43  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
Line 43  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
 .if (${MACHINE_ARCH} == "alpha")  .if (${MACHINE_ARCH} == "alpha")
   
 SHLIB_TYPE=ELF  SHLIB_TYPE=ELF
 SHLIB_LDSTARTFILE= ${DESTDIR}/usr/lib/crtbeginS.o  SHLIB_LDSTARTFILE= ${BUILDDIR}${LIBDIR}/crtbeginS.o
 SHLIB_LDENDFILE= ${DESTDIR}/usr/lib/crtendS.o  SHLIB_LDENDFILE= ${BUILDDIR}${LIBDIR}/crtendS.o
 SHLIB_SOVERSION=${SHLIB_MAJOR}  SHLIB_SOVERSION=${SHLIB_MAJOR}
 CPICFLAGS ?= -fpic -DPIC  CPICFLAGS ?= -fpic -DPIC
 CPPPICFLAGS?= -DPIC  CPPPICFLAGS?= -DPIC
Line 181  CLEANFILES+= ${DPSRCS}
Line 181  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)
           @echo install -d ${BUILDDIR}${LIBDIR}
           @install -d ${BUILDDIR}${LIBDIR}
           @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
           @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
           @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
   .endif
   
 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)
           @echo install -d ${BUILDDIR}${LIBDIR}
           @install -d ${BUILDDIR}${LIBDIR}
           @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
           @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
           @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
   .endif
   
 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)
           @echo install -d ${BUILDDIR}${LIBDIR}
           @install -d ${BUILDDIR}${LIBDIR}
           @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
           @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
           @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
   .endif
   
 lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD} \  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD} \
     ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}      ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
Line 203  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO
Line 224  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO
             --whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \              --whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \
             ${SHLIB_LDENDFILE}              ${SHLIB_LDENDFILE}
 .endif  .endif
   .if defined(OBJDIR)
           @echo install -d ${BUILDDIR}${LIBDIR}
           @install -d ${BUILDDIR}${LIBDIR}
           @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
           @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
           @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
   .if (${SHLIB_TYPE} == "ELF")
           rm -f ${BUILDDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
           ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
               ${BUILDDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
           rm -f ${BUILDDIR}${LIBDIR}/lib${LIB}.so
           ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
               ${BUILDDIR}${LIBDIR}/lib${LIB}.so
   .endif  # SHLIB_TYPE == ELF
   .endif  # defined(OBJDIR)
   
 LOBJS+=         ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}  LOBJS+=         ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
 LLIBS?=         -lc  LLIBS?=         -lc
Line 312  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
Line 348  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
 .endif  .endif
   
 .include <bsd.obj.mk>  .include <bsd.obj.mk>
   .include <bsd.links.mk>
 .include <bsd.files.mk>  .include <bsd.files.mk>
 .include <bsd.inc.mk>  .include <bsd.inc.mk>
 .include <bsd.links.mk>  
 .include <bsd.dep.mk>  .include <bsd.dep.mk>
 .include <bsd.subdir.mk>  .include <bsd.subdir.mk>
 .include <bsd.sys.mk>  .include <bsd.sys.mk>

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108

CVSweb <webmaster@jp.NetBSD.org>