[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.57 and 1.58

version 1.57, 1995/04/21 20:29:40 version 1.58, 1995/06/24 08:27:37
Line 14  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
Line 14  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
   
 .MAIN: all  .MAIN: all
   
 # prefer .S to a .c, add .po, remove stuff not used in the BSD libraries  # prefer .S to a .c, add .po, remove stuff not used in the BSD libraries.
 # .so used for PIC object files  # .so used for PIC object files.  .ln used for lint output files.
 .SUFFIXES:  .SUFFIXES:
 .SUFFIXES: .out .o .po .so .S .s .c .cc .C .f .y .l .m4  .SUFFIXES: .out .o .po .so .S .s .c .cc .C .f .y .l .ln .m4
   
 .c.o:  .c.o:
         ${COMPILE.c} ${.IMPSRC}          ${COMPILE.c} ${.IMPSRC}
Line 34  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
Line 34  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
         @${LD} -x -r ${.TARGET}          @${LD} -x -r ${.TARGET}
         @mv a.out ${.TARGET}          @mv a.out ${.TARGET}
   
   .c.ln:
           ${LINT} ${LINTFLAGS} ${CFLAGS:M-[IDU]*} -i ${.IMPSRC}
   
 .cc.o .C.o:  .cc.o .C.o:
         ${COMPILE.cc} ${.IMPSRC}          ${COMPILE.cc} ${.IMPSRC}
         @${LD} -x -r ${.TARGET}          @${LD} -x -r ${.TARGET}
Line 67  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
Line 70  SHLIB_MINOR != . ${.CURDIR}/shlib_versio
         @${LD} -x -r ${.TARGET}          @${LD} -x -r ${.TARGET}
         @mv a.out ${.TARGET}          @mv a.out ${.TARGET}
   
   .if !defined(PICFLAG)
   PICFLAG=-fpic
   .endif
   
 .if !defined(NOPROFILE)  .if !defined(NOPROFILE)
 _LIBS=lib${LIB}.a lib${LIB}_p.a  _LIBS=lib${LIB}.a lib${LIB}_p.a
 .else  .else
Line 80  _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHL
Line 87  _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHL
 .endif  .endif
 .endif  .endif
   
 .if !defined(PICFLAG)  .if !defined(NOLINT)
 PICFLAG=-fpic  _LIBS+=llib-l${LIB}.ln
 .endif  .endif
   
 all: ${_LIBS} _SUBDIRUSE # llib-l${LIB}.ln  all: ${_LIBS} _SUBDIRUSE
   
 OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}  OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
   
Line 114  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO
Line 121  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO
         $(LD) -x -Bshareable -Bforcearchive \          $(LD) -x -Bshareable -Bforcearchive \
             -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a ${LDADD}              -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a ${LDADD}
   
 llib-l${LIB}.ln: ${SRCS}  LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
         ${LINT} -C${LIB} ${CFLAGS} ${.ALLSRC:M*.c}  # the following looks XXX to me... -- cgd
   LLIBS?= -lc
   llib-l${LIB}.ln: ${LOBJS}
           @echo building llib-l${LIB}.ln
           @rm -f llib-l${LIB}.ln
           @${LINT} -C${LIB} ${LOBJS} ${LLIBS}
   
 .if !target(clean)  .if !target(clean)
 clean: _SUBDIRUSE  clean: _SUBDIRUSE
Line 123  clean: _SUBDIRUSE
Line 135  clean: _SUBDIRUSE
         rm -f ${OBJS}          rm -f ${OBJS}
         rm -f ${POBJS} profiled/*.o          rm -f ${POBJS} profiled/*.o
         rm -f ${SOBJS} shared/*.o          rm -f ${SOBJS} shared/*.o
           rm -f ${LOBJS}
         rm -f lib${LIB}.a lib${LIB}_p.a lib${LIB}_pic.a llib-l${LIB}.ln          rm -f lib${LIB}.a lib${LIB}_p.a lib${LIB}_pic.a llib-l${LIB}.ln
         rm -f lib${LIB}.so.*.*          rm -f lib${LIB}.so.*.*
 .endif  .endif
Line 132  cleandir: _SUBDIRUSE clean
Line 145  cleandir: _SUBDIRUSE clean
 .if defined(SRCS)  .if defined(SRCS)
 afterdepend:  afterdepend:
         @(TMP=/tmp/_depend$$$$; \          @(TMP=/tmp/_depend$$$$; \
             sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so:/' < .depend > $$TMP; \              sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so:/' \
                 < .depend > $$TMP; \
             mv $$TMP .depend)              mv $$TMP .depend)
 .endif  .endif
   
Line 165  realinstall:
Line 179  realinstall:
         install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \          install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
             lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${DESTDIR}${LIBDIR}              lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${DESTDIR}${LIBDIR}
 .endif  .endif
 #       install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \  .if !defined(NOLINT)
 #           llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR}          install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
               llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR}
   .endif
 .if defined(LINKS) && !empty(LINKS)  .if defined(LINKS) && !empty(LINKS)
         @set ${LINKS}; \          @set ${LINKS}; \
         while test $$# -ge 2; do \          while test $$# -ge 2; do \

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

CVSweb <webmaster@jp.NetBSD.org>