Add SHLIB as a shortcut for shared-only libraries.

Not objected to by: bde, ru
This commit is contained in:
Dag-Erling Smørgrav 2004-05-07 09:58:36 +00:00
parent 4c86725c82
commit 10717e2e95
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129024

View File

@ -12,8 +12,11 @@
.undef SHLIB_NAME
.undef INSTALL_PIC_ARCHIVE
.else
.if !defined(SHLIB_NAME) && defined(LIB) && defined(SHLIB_MAJOR)
SHLIB_NAME= lib${LIB}.so.${SHLIB_MAJOR}
.if !defined(SHLIB) && defined(LIB)
SHLIB= ${LIB}
.endif
.if !defined(SHLIB_NAME) && defined(SHLIB) && defined(SHLIB_MAJOR)
SHLIB_NAME= lib${SHLIB}.so.${SHLIB_MAJOR}
.endif
.if defined(SHLIB_NAME) && !empty(SHLIB_NAME:M*.so.*)
SHLIB_LINK?= ${SHLIB_NAME:R}