Parallelize depend file generation

This commit is contained in:
Matias N
2020-11-18 13:44:58 -03:00
committed by Alan Carvalho de Assis
parent 2df6547d50
commit d5b6ec450f
35 changed files with 194 additions and 54 deletions

View File

@@ -119,9 +119,13 @@ $(COBJS): %$(OBJEXT): %.c
$(BIN): $(OBJS)
$(call ARCHIVE, $@, $(OBJS))
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
$(call CATFILE, Make.dep, $^)
$(call DELFILE, $^)
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
$(Q) $(MAKE) makedepfile
$(Q) touch $@
depend: .depend