mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Use OBJS_DEPEND_GUESS for forced opt_global.h dependency.
MFC after: 2 weeks Sponsored by: Dell EMC
This commit is contained in:
parent
de68a3200a
commit
817f7baa74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335922
@ -205,7 +205,8 @@ assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o
|
||||
genassym.o: $S/$M/$M/genassym.c offset.inc
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/$M/$M/genassym.c
|
||||
|
||||
${SYSTEM_OBJS} genoffset.o genassym.o vers.o: opt_global.h
|
||||
OBJS_DEPEND_GUESS+= opt_global.h
|
||||
genoffset.o genassym.o vers.o: opt_global.h
|
||||
|
||||
.if !empty(.MAKE.MODE:Unormal:Mmeta) && empty(.MAKE.MODE:Unormal:Mnofilemon)
|
||||
_meta_filemon= 1
|
||||
|
@ -476,9 +476,6 @@ DEPENDOBJS+= genoffset.o
|
||||
.endif
|
||||
assym.inc: genassym.o
|
||||
offset.inc: genoffset.o
|
||||
.if defined(KERNBUILDDIR)
|
||||
genassym.o: opt_global.h
|
||||
.endif
|
||||
assym.inc: ${SYSDIR}/kern/genassym.sh
|
||||
sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET}
|
||||
genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c offset.inc
|
||||
@ -492,16 +489,15 @@ genoffset.o: ${SRCS:Mopt_*.h}
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} \
|
||||
${SYSDIR}/kern/genoffset.c
|
||||
|
||||
.if defined(KERNBUILDDIR)
|
||||
${OBJS}: opt_global.h
|
||||
.endif
|
||||
|
||||
CLEANDEPENDFILES+= ${_ILINKS}
|
||||
# .depend needs include links so we remove them only together.
|
||||
cleanilinks:
|
||||
rm -f ${_ILINKS}
|
||||
|
||||
OBJS_DEPEND_GUESS+= ${SRCS:M*.h}
|
||||
.if defined(KERNBUILDDIR)
|
||||
OBJS_DEPEND_GUESS+= opt_global.h
|
||||
.endif
|
||||
|
||||
.include <bsd.dep.mk>
|
||||
.include <bsd.clang-analyze.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user