[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.205 and 1.216

version 1.205, 2002/07/20 08:50:10 version 1.216, 2003/04/22 12:55:26
Line 2 
Line 2 
 #       @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94  #       @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 .include <bsd.init.mk>  .include <bsd.init.mk>
   .include <bsd.shlib.mk>
 ##### Basic targets  ##### Basic targets
 .PHONY:         checkver cleanlib libinstall  .PHONY:         checkver cleanlib libinstall
 # APICFLAGS:            flags for ${AS} to assemble .[sS] to .so objects.  # APICFLAGS:            flags for ${AS} to assemble .[sS] to .so objects.
 .if ${MACHINE_ARCH} == "alpha"  .if ${MACHINE_ARCH} == "alpha"
                 # Alpha-specific shared library flags  
 .elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"  
                 # mips-specific shared library flags  
 # On mips, all libs are compiled with ABIcalls, not just sharedlibs.  
 # so turn shlib PIC flags on for ${AS}.  
 AS+=    -KPIC  
 .elif ${MACHINE_ARCH} == "vax" && ${OBJECT_FMT} == "ELF"  
 # On the VAX, all object are PIC by default, not just sharedlibs.  
 .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \  .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \
        ${OBJECT_FMT} == "ELF"         ${OBJECT_FMT} == "ELF"
 # If you use -fPIC you need to define BIGPIC to turn on 32-bit  # If you use -fPIC you need to define BIGPIC to turn on 32-bit
 # relocations in asm code  # relocations in asm code
Line 150  APICFLAGS?= -k
Line 138  APICFLAGS?= -k
 .endif  .endif
 MKPICLIB?= yes  
 .if ${MKPICLIB} != "no"  .if ${MKPICLIB} != "no"
 .endif  .endif
Line 166  MKSHLIBOBJS= no
Line 152  MKSHLIBOBJS= no
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
 SHLIB_SHFLAGS=          -soname lib${LIB}.so.${SHLIB_SOVERSION}  SHLIB_SHFLAGS=          -soname lib${LIB}.so.${SHLIB_SOVERSION}
 SHLIB_LDSTARTFILE?=     ${DESTDIR}/usr/lib/crtbeginS.o  SHLIB_LDSTARTFILE?=     ${DESTDIR}/usr/lib/crti.o ${DESTDIR}/usr/lib/crtbeginS.o
 SHLIB_LDENDFILE?=       ${DESTDIR}/usr/lib/crtendS.o  # Some platforms require additional endfile support.
   .if ${MACHINE_ARCH} == "powerpc" && defined(HAVE_GCC3)
   SHLIB_LDENDFILE?=       ${DESTDIR}/usr/lib/crtsavres.o \
                           ${DESTDIR}/usr/lib/crtendS.o ${DESTDIR}/usr/lib/crtn.o
   SHLIB_LDENDFILE?=       ${DESTDIR}/usr/lib/crtendS.o ${DESTDIR}/usr/lib/crtn.o
 .endif  .endif
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
Line 317  FFLAGS+= ${FOPTS}
Line 309  FFLAGS+= ${FOPTS}
         @${LD} -x -r ${.TARGET}.o -o ${.TARGET}          @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
         @rm -f ${.TARGET}.o          @rm -f ${.TARGET}.o
   .if defined(LIB)
 .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \  .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
         || ${MKLINKLIB} != "no"          || ${MKLINKLIB} != "no"
 _LIBS=lib${LIB}.a  _LIBS=lib${LIB}.a
Line 366  ALLOBJS=${POBJS} ${SOBJS} 
Line 359  ALLOBJS=${POBJS} ${SOBJS} 
 .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)  .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
 .endif  .endif
 .NOPATH: ${ALLOBJS} ${_LIBS} ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}  .NOPATH: ${ALLOBJS} ${_LIBS} ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}
Line 378  __archivebuild: .USE
Line 375  __archivebuild: .USE
 __archiveinstall: .USE  __archiveinstall: .USE
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             ${UPDATE:D:U-a "${RANLIB} -t"} ${.ALLSRC} ${.TARGET}              ${UPDATE:D:U-a "${RANLIB} -t"} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}
 __archivesymlinkpic: .USE  __archivesymlinkpic: .USE
 DPSRCS+=        ${SRCS:M*.[ly]:C/\..$/.c/}  DPSRCS+=        ${SRCS:M*.[ly]:C/\..$/.c/}
Line 428  LLIBS?=  -lc
Line 425  LLIBS?=  -lc
 llib-l${LIB}.ln: ${LOBJS}  llib-l${LIB}.ln: ${LOBJS}
         @echo building llib-l${LIB}.ln          @echo building llib-l${LIB}.ln
         @rm -f llib-l${LIB}.ln          @rm -f llib-l${LIB}.ln
   .if defined(DESTDIR)
           @${LINT} -C${LIB} ${.ALLSRC} -L${DESTDIR}/usr/libdata ${LLIBS}
         @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}          @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}
 .endif  .endif
 cleanlib:  cleanlib:
         rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}          rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}
Line 525  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SH
Line 526  ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SH
 .endif  .endif
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
                 ${.ALLSRC} ${.TARGET}                  ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
             ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}                  ${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
 .endif  .endif
 .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)  .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)
         /sbin/ldconfig -m ${_LIBSODIR} ${LIBDIR}          /sbin/ldconfig -m ${_LIBSODIR} ${LIBDIR}
 .endif  .endif
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
             ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_MAJOR}                  lib${LIB}.so.${SHLIB_FULLVERSION} \
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
             ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}                  ${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
 .endif  .endif
 .if ${MKLINKLIB} != "no"  .if ${MKLINKLIB} != "no"
             ${DESTDIR}${_LIBSODIR}/lib${LIB}.so                  lib${LIB}.so.${SHLIB_FULLVERSION} \
 .if ${_LIBSODIR} != ${LIBDIR}  .if ${_LIBSODIR} != ${LIBDIR}
             ${DESTDIR}${LIBDIR}/lib${LIB}.so                  ${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
 .endif  .endif
 .endif  .endif
 .endif  .endif
Line 567  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
Line 573  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln:
 ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln  ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln
 .endif  .endif
         ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
                 ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}                  ${SYSPKGTAG} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
 .endif  .endif
 .endif  .endif

Removed from v.1.205  
changed lines
  Added in v.1.216

CVSweb <webmaster@jp.NetBSD.org>