mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Parallelize depend file generation
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
2df6547d50
commit
d5b6ec450f
@@ -200,6 +200,23 @@ else
|
||||
MKDEP ?= $(TOPDIR)$(DELIM)tools$(DELIM)mkdeps$(HOSTEXEEXT)
|
||||
endif
|
||||
|
||||
# Per-file dependency generation rules
|
||||
|
||||
%.dds: %.S
|
||||
$(Q) $(MKDEP) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $< > $@
|
||||
|
||||
%.ddc: %.c
|
||||
$(Q) $(MKDEP) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $< > $@
|
||||
|
||||
%.ddp: %.cpp
|
||||
$(Q) $(MKDEP) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $< > $@
|
||||
|
||||
%.ddx: %.cxx
|
||||
$(Q) $(MKDEP) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $< > $@
|
||||
|
||||
%.ddh: %.c
|
||||
$(Q) $(MKDEP) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(HOSTCFLAGS) -- $< > $@
|
||||
|
||||
# INCDIR - Convert a list of directory paths to a list of compiler include
|
||||
# directories
|
||||
# Example: CFFLAGS += ${shell $(INCDIR) [options] "compiler" "dir1" "dir2" "dir2" ...}
|
||||
|
||||
Reference in New Issue
Block a user