From 186f6ce828e260b2cfd3c8ad0e9a99a8dd539687 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 23 Jan 2014 07:41:00 -0600 Subject: [PATCH] arch/arm/src/Makefile: dependency directory list is now computed from the VPATH. From Richard Cochran --- arch/arm/src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index 2819474e063..c4fcb4c6ca0 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -150,7 +150,9 @@ endif LIBGCC = "${shell "$(CC)" $(ARCHCPUFLAGS) -print-libgcc-file-name}" GCC_LIBDIR := ${shell dirname $(LIBGCC)} -VPATH = chip:common:$(ARCH_SUBDIR) +VPATH += chip +VPATH += common +VPATH += $(ARCH_SUBDIR) all: $(HEAD_OBJ) $(BIN) @@ -202,7 +204,7 @@ endif ifeq ($(BOARDMAKE),y) $(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" depend endif - $(Q) $(MKDEP) --dep-path chip --dep-path common --dep-path $(ARCH_SUBDIR) \ + $(Q) $(MKDEP) $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) \ "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep $(Q) touch $@