From 9bd850295e44aba5dc84579414f9fbf02901057e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 26 Aug 2019 13:09:57 -0600 Subject: [PATCH] arch/sim/src/Makefile: Fix dependency problem due to reorganization of some directories. --- arch/sim/src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 24fe40c8a6..911cc7af14 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -64,6 +64,7 @@ CSRCS += up_reprioritizertr.c up_exit.c up_schedulesigaction.c up_spiflash.c CSRCS += up_allocateheap.c up_devconsole.c up_qspiflash.c VPATH = sim +DEPPATH = $(patsubst %,--dep-path %,$(subst :, ,$(VPATH))) HOSTSRCS = up_hostusleep.c @@ -300,7 +301,7 @@ export_startup: board/libboard$(LIBEXT) up_head.o $(HOSTOBJS) # Dependencies .depend: Makefile $(SRCS) - $(Q) $(MKDEP) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep + $(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep $(Q) touch $@ depend: .depend