Add guessed dependencies to OBJS after bsd.dep.mk in case of it adding to SRCS.
This was a regression in r295985. bsd.dep.mk adds to SRCS for dtrace probes, yacc grammars and some others. The code that is moving is planned to be removed once FAST_DEPEND is default (and the only option) though since FAST_DEPEND doesn't use this. Pointyhat to: bdrewery Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d6088afd9a
commit
b05c8d148a
@ -417,30 +417,35 @@ lint: ${SRCS:M*.c}
|
||||
|
||||
.if defined(LIB) && !empty(LIB)
|
||||
OBJS_DEPEND_GUESS+= ${SRCS:M*.h}
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${OBJS} ${STATICOBJS} ${POBJS}: ${OBJS_DEPEND_GUESS}
|
||||
.endif
|
||||
.for _S in ${SRCS:N*.[hly]}
|
||||
OBJS_DEPEND_GUESS.${_S:R}.po= ${_S}
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${_S:R}.po: ${OBJS_DEPEND_GUESS.${_S:R}.po}
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
.if defined(SHLIB_NAME) || \
|
||||
defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${SOBJS}: ${OBJS_DEPEND_GUESS}
|
||||
.endif
|
||||
.for _S in ${SRCS:N*.[hly]}
|
||||
OBJS_DEPEND_GUESS.${_S:R}.So= ${_S}
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${_S:R}.So: ${OBJS_DEPEND_GUESS.${_S:R}.So}
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
|
||||
.if defined(LIB) && !empty(LIB)
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${OBJS} ${STATICOBJS} ${POBJS}: ${OBJS_DEPEND_GUESS}
|
||||
.for _S in ${SRCS:N*.[hly]}
|
||||
${_S:R}.po: ${OBJS_DEPEND_GUESS.${_S:R}.po}
|
||||
.endfor
|
||||
.if defined(SHLIB_NAME) || \
|
||||
defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
|
||||
${SOBJS}: ${OBJS_DEPEND_GUESS}
|
||||
.for _S in ${SRCS:N*.[hly]}
|
||||
${_S:R}.So: ${OBJS_DEPEND_GUESS.${_S:R}.So}
|
||||
.endfor
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.clang-analyze.mk>
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.sys.mk>
|
||||
|
@ -277,12 +277,16 @@ lint: ${SRCS:M*.c}
|
||||
|
||||
.if defined(PROG)
|
||||
OBJS_DEPEND_GUESS+= ${SRCS:M*.h}
|
||||
.endif
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
|
||||
.if defined(PROG)
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${OBJS}: ${OBJS_DEPEND_GUESS}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
.include <bsd.clang-analyze.mk>
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.sys.mk>
|
||||
|
@ -456,11 +456,13 @@ cleanilinks:
|
||||
rm -f ${_ILINKS}
|
||||
|
||||
OBJS_DEPEND_GUESS+= ${SRCS:M*.h}
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
|
||||
.if ${MK_FAST_DEPEND} == "no" && !exists(${.OBJDIR}/${DEPENDFILE})
|
||||
${OBJS}: ${OBJS_DEPEND_GUESS}
|
||||
.endif
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
.include <bsd.clang-analyze.mk>
|
||||
.include <bsd.obj.mk>
|
||||
.include "kern.mk"
|
||||
|
Loading…
Reference in New Issue
Block a user