mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Application.mk: Fix minor bugs
- Add .config to depend to update Make.dep by config changed - Fix mkdep error in some Makefiles Originally, ROOTDEPPATH should be used, but DEPPATH has been already written in some Makefiles such as littlevgl and pdcur34. This commit allows the description of DEPPATH instead of ROOTDEPPATH.
This commit is contained in:
parent
cb9eb7cfd7
commit
bc4b6a8894
1 changed files with 4 additions and 3 deletions
|
|
@ -88,6 +88,7 @@ ifneq ($(BUILD_MODULE),y)
|
|||
endif
|
||||
|
||||
ROOTDEPPATH += --dep-path .
|
||||
ROOTDEPPATH += $(DEPPATH)
|
||||
ROOTDEPPATH += --obj-path .
|
||||
ROOTDEPPATH += --obj-suffix $(SUFFIX)$(OBJEXT)
|
||||
|
||||
|
|
@ -223,11 +224,11 @@ else
|
|||
context::
|
||||
endif
|
||||
|
||||
.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH)))))
|
||||
.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG)
|
||||
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
|
||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >Make.dep
|
||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(filter-out $(DEPCONFIG),$^)) >Make.dep
|
||||
else
|
||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >Make.dep
|
||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$(filter-out $(DEPCONFIG),$^)) >Make.dep
|
||||
endif
|
||||
$(Q) touch $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue