Add NOSHLIBS.

If one is using NOSHARED, why build the libs.
This commit is contained in:
obrien 2003-04-27 21:44:52 +00:00
parent 5edac8290a
commit 61ca7f9bcb

View File

@ -175,6 +175,7 @@ lib${LIB}_p.a: ${POBJS}
${RANLIB} ${.TARGET}
.endif
.if !defined(NOSHLIBS)
.if defined(SHLIB_NAME) || \
defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
SOBJS+= ${OBJS:.o=.So}
@ -182,6 +183,7 @@ SOBJS+= ${OBJS:.o=.So}
.if defined(SHLIB_NAME)
_LIBS+= ${SHLIB_NAME}
.endif
${SHLIB_NAME}: ${SOBJS}
@${ECHO} building shared library ${SHLIB_NAME}
@ -261,7 +263,7 @@ _libinstall:
${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR}
.endif
.if defined(SHLIB_NAME)
.if !defined(NOSHLIBS) && defined(SHLIB_NAME)
${INSTALL} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \
${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}