diff --git a/Application.mk b/Application.mk index 855434b69..153628a33 100644 --- a/Application.mk +++ b/Application.mk @@ -87,10 +87,9 @@ ifneq ($(BUILD_MODULE),y) OBJS += $(MAINOBJ) endif -ROOTDEPPATH += --dep-path . -ROOTDEPPATH += $(DEPPATH) -ROOTDEPPATH += --obj-path . -ROOTDEPPATH += --obj-suffix $(SUFFIX)$(OBJEXT) +DEPPATH += --dep-path . +DEPPATH += --obj-path . +DEPPATH += --obj-suffix $(SUFFIX)$(OBJEXT) VPATH += :. @@ -226,9 +225,9 @@ endif .depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG) ifeq ($(filter %$(CXXEXT),$(SRCS)),) - $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(filter-out $(DEPCONFIG),$^)) >Make.dep + $(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(filter-out $(DEPCONFIG),$^)) >Make.dep else - $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$(filter-out $(DEPCONFIG),$^)) >Make.dep + $(Q) $(MKDEP) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$(filter-out $(DEPCONFIG),$^)) >Make.dep endif $(Q) touch $@ diff --git a/examples/elf/Makefile b/examples/elf/Makefile index 6cedf906d..e6bf6c5b0 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -52,7 +52,7 @@ PRIORITY = SCHED_PRIORITY_DEFAULT STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) MODULE = $(CONFIG_EXAMPLES_ELF) -ROOTDEPPATH := --dep-path tests +DEPPATH := --dep-path tests # Build targets diff --git a/examples/module/Makefile b/examples/module/Makefile index 5267c9fd0..5dfc17311 100644 --- a/examples/module/Makefile +++ b/examples/module/Makefile @@ -54,7 +54,7 @@ CSRCS += mod_symtab.c MAINSRC = module_main.c VPATH += drivers -ROOTDEPPATH += --dep-path drivers +DEPPATH += --dep-path drivers # Build targets diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile index 3ecf3695c..68ae08647 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -47,7 +47,7 @@ PRIORITY = SCHED_PRIORITY_DEFAULT STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) MODULE = $(CONFIG_EXAMPLES_NXFLAT) -ROOTDEPPATH := --dep-path tests +DEPPATH := --dep-path tests VPATH += :tests diff --git a/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index eb767776a..8b84ee7b4 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -46,7 +46,7 @@ PRIORITY = SCHED_PRIORITY_DEFAULT STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) MODULE = $(CONFIG_EXAMPLES_POSIXSPAWN) -ROOTDEPPATH += --dep-path filesystem +DEPPATH += --dep-path filesystem # Build targets diff --git a/examples/sotest/Makefile b/examples/sotest/Makefile index 08802a869..edc82459f 100644 --- a/examples/sotest/Makefile +++ b/examples/sotest/Makefile @@ -50,7 +50,7 @@ endif CSRCS += sot_symtab.c MAINSRC = sotest_main.c -ROOTDEPPATH += --dep-path lib +DEPPATH += --dep-path lib # Build targets diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile index 61faf42f1..38d8945aa 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -54,7 +54,7 @@ STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) MODULE = $(CONFIG_EXAMPLES_THTTPD) VPATH += content -ROOTDEPPATH += --dep-path content +DEPPATH += --dep-path content content/romfs.c: build ifeq ($(CONFIG_THTTPD_NXFLAT),y) diff --git a/examples/thttpd/content/Makefile.binfs b/examples/thttpd/content/Makefile.binfs index 161751e7a..6df736e73 100644 --- a/examples/thttpd/content/Makefile.binfs +++ b/examples/thttpd/content/Makefile.binfs @@ -41,7 +41,7 @@ STACKSIZE = $(CONFIG_THTTPD_CGI_STACKSIZE) CSRCS = hello.c tasks.c -ROOTDEPPATH += --dep-path hello --dep-path tasks +DEPPATH += --dep-path hello --dep-path tasks VPATH += :hello:tasks include $(APPDIR)/Application.mk diff --git a/interpreters/ficl/Makefile b/interpreters/ficl/Makefile index 0dd1fe361..c3991af04 100644 --- a/interpreters/ficl/Makefile +++ b/interpreters/ficl/Makefile @@ -53,7 +53,7 @@ ASRCS += $(FICL_ASRCS) CXXSRCS += $(FICL_CXXSRCS) CSRCS += $(FICL_CSRCS) -ROOTDEPPATH += --dep-path src +DEPPATH += --dep-path src VPATH += :src:$(FICL_SUBDIR) diff --git a/platform/Makefile b/platform/Makefile index ee692f1a8..098bf420a 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -50,9 +50,9 @@ else endif VPATH += board -ROOTDEPPATH += --obj-path bin -ROOTDEPPATH += --obj-suffix $(OBJEXT) -ROOTDEPPATH += --dep-path $(PLATFORMDIR) +DEPPATH += --obj-path bin +DEPPATH += --obj-suffix $(OBJEXT) +DEPPATH += --dep-path $(PLATFORMDIR) # Binaries diff --git a/system/hexed/Makefile b/system/hexed/Makefile index 42cadc23e..cce85aa7d 100644 --- a/system/hexed/Makefile +++ b/system/hexed/Makefile @@ -49,6 +49,6 @@ MAINSRC = hexed.c CFLAGS += ${shell $(INCDIR) "$(CC)" include} VPATH += :src -ROOTDEPPATH += --dep-path src +DEPPATH += --dep-path src include $(APPDIR)/Application.mk