Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk rework slightly so that when MKLINKLIB=no only the ...



details:   https://anonhg.NetBSD.org/src/rev/4689f3f463cb
branches:  trunk
changeset: 485673:4689f3f463cb
user:      matt <matt%NetBSD.org@localhost>
date:      Wed May 03 03:44:12 2000 +0000

description:
rework slightly so that when MKLINKLIB=no only the shared objects are built.
(building normal objects when they are never used really sucks on slow build
machines).

diffstat:

 share/mk/bsd.lib.mk |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 5e067212e267 -r 4689f3f463cb share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Wed May 03 03:26:12 2000 +0000
+++ b/share/mk/bsd.lib.mk       Wed May 03 03:44:12 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.165 2000/04/29 17:41:11 dmcmahill Exp $
+#      $NetBSD: bsd.lib.mk,v 1.166 2000/05/03 03:44:12 matt Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .if !target(__initialized__)
@@ -221,18 +221,20 @@
        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
        @rm -f ${.TARGET}.o
 
+_OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}
+
 .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
        || ${MKLINKLIB} != "no"
 _LIBS=lib${LIB}.a
+OBJS+=${_OBJS}
 .else
 _LIBS=
 .endif
 
-OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}
 
 .if ${MKPROFILE} != "no"
 _LIBS+=lib${LIB}_p.a
-POBJS+=${OBJS:.o=.po}
+POBJS+=${_OBJS:.o=.po}
 .endif
 
 .if ${MKPIC} != "no"
@@ -241,7 +243,7 @@
 .else
 SOLIB=lib${LIB}_pic.a
 _LIBS+=${SOLIB}
-SOBJS+=${OBJS:.o=.so}
+SOBJS+=${_OBJS:.o=.so}
 .endif
 .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
 _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}



Home | Main Index | Thread Index | Old Index