Use compiler to generate .d file wherever possible (ROOT-7041).
This makes use of the "advanced" version of the compiler generated dependency files which also works for missing / generated headers. It ignores dependencies on system headers. It simply comments the invocation of rmkdepend while still building it for other users (for instance TMVA's stand-alone Makefile expects to find rmkdepend).
This commit is contained in:
parent
4f217d95b3
commit
d6c812a25a
@ -128,12 +128,12 @@ etc/cling/%.h: $(CLINGDIR)/include/cling/%.h
|
||||
|
||||
$(CLINGDIR)/%.o: $(CLINGDIR)/%.cpp $(LLVMDEP)
|
||||
$(MAKEDEP) -R -f$(@:.o=.d) -Y -w 1000 -- $(CXXFLAGS) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) -D__cplusplus -- $<
|
||||
$(CXX) $(OPT) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) $(CXXOUT)$@ -c $<
|
||||
$(CXX) $(OPT) $(CXXMKDEPFLAGS) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) $(CXXOUT)$@ -c $<
|
||||
|
||||
$(call stripsrc,$(CLINGDIR)/%.o): $(CLINGDIR)/%.cpp $(LLVMDEP)
|
||||
$(MAKEDIR)
|
||||
$(MAKEDEP) -R -f$(@:.o=.d) -Y -w 1000 -- $(CXXFLAGS) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) -D__cplusplus -- $<
|
||||
$(CXX) $(OPT) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) $(CXXOUT)$@ -c $<
|
||||
$(CXX) $(OPT) $(CXXMKDEPFLAGS) $(subst -fno-exceptions,$(CLINGEXCCXXFLAGS),$(CLINGCXXFLAGS)) $(CXXOUT)$@ -c $<
|
||||
|
||||
$(CLINGCOMPDH): FORCE $(LLVMDEP)
|
||||
@mkdir -p $(dir $@)
|
||||
|
Loading…
Reference in New Issue
Block a user