From cfa6c5deb8d37ce24fbe5dd842462569a0bb2f89 Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Mon, 8 Jul 2024 16:25:54 +0800 Subject: [PATCH] Make.dep:ensure that Make.dep in the .depend phase is always regenerated according to the dependency of the .depend target, Make.dep is always generated additionally when src is modified. this will cause the Make.dep file to gradually increase in size during each incremental compilation, causing the Makefile to take longer to load. Signed-off-by: xuxin19 --- Application.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Application.mk b/Application.mk index 9be5cf6b8..803fff642 100644 --- a/Application.mk +++ b/Application.mk @@ -329,6 +329,7 @@ register:: endif .depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG) + $(shell echo "# Gen Make.dep automatically" >Make.dep) $(call SPLITVARIABLE,ALL_DEP_OBJS,$^,100) $(foreach BATCH, $(ALL_DEP_OBJS_TOTAL), \ $(shell $(MKDEP) $(DEPPATH) --obj-suffix .c$(SUFFIX)$(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(filter %.c,$(ALL_DEP_OBJS_$(BATCH))) >>Make.dep) \