You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/07/12 20:52:19 UTC

[incubator-nuttx-apps] branch master updated: Application.mk: correct depends file generated

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b72b4e4  Application.mk: correct depends file generated
b72b4e4 is described below

commit b72b4e4bad4896647986f9258a11bbeb8ae9e6b5
Author: ligd <li...@xiaomi.com>
AuthorDate: Tue Jul 6 14:49:46 2021 +0800

    Application.mk: correct depends file generated
    
    wrong: file.c => file.dir.o
    right: file.c => file.c.dir.o
    
    Change-Id: I5dff2c05c88d4c5d7678acdcce15e87caa23bdaf
    Signed-off-by: ligd <li...@xiaomi.com>
---
 Application.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Application.mk b/Application.mk
index cb0688b..d592d4d 100644
--- a/Application.mk
+++ b/Application.mk
@@ -215,8 +215,9 @@ register::
 endif
 
 .depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG)
-	$(Q) $(MKDEP) $(DEPPATH) --obj-suffix .c$(SUFFIX)$(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(filter-out %$(CXXEXT) Makefile $(DEPCONFIG),$^) >Make.dep
-	$(Q) $(MKDEP) $(DEPPATH) --obj-suffix $(CXXEXT)$(SUFFIX)$(OBJEXT) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out %.c Makefile $(DEPCONFIG),$^) >>Make.dep
+	$(Q) $(MKDEP) $(DEPPATH) --obj-suffix .c$(SUFFIX)$(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(filter %.c,$^) >Make.dep
+	$(Q) $(MKDEP) $(DEPPATH) --obj-suffix .S$(SUFFIX)$(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(filter %.S,$^) >>Make.dep
+	$(Q) $(MKDEP) $(DEPPATH) --obj-suffix $(CXXEXT)$(SUFFIX)$(OBJEXT) "$(CXX)" -- $(CXXFLAGS) -- $(filter %$(CXXEXT),$^) >>Make.dep
 	$(Q) touch $@
 
 depend:: .depend