Define a LIB*SRCDIR for all known _LIBRARIES.

This is a follow-up to r291327 which added a LIB*DIR for all known
_LIBRARIES.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2015-12-01 22:19:17 +00:00
parent 62f38e94ec
commit de52e5bdca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291619

View File

@ -152,3 +152,11 @@ LDADD:= ${LDADD:N-lpthread} -lpthread
LDADD:= ${LDADD:N-lc} -lc
.endif
.endif
# Only do this for src builds.
.if defined(SRCTOP)
# Derive LIB*SRCDIR from LIB*DIR
.for lib in ${_LIBRARIES}
LIB${lib:tu}SRCDIR?= ${SRCTOP}/${LIB${lib:tu}DIR:S,^${OBJTOP}/,,}
.endfor
.endif