From e3dc0f048ab677493f0341f9faefa2241d0590e7 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 24 Aug 2010 16:35:00 +0000 Subject: [PATCH] Generates the .d prerequisite file for dylib as well. llvm-svn: 111920 --- lldb/test/make/Makefile.rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules index 2f15ff927b69..992d266ec942 100644 --- a/lldb/test/make/Makefile.rules +++ b/lldb/test/make/Makefile.rules @@ -100,6 +100,9 @@ $(DYLIB_NAME) : $(DYLIB_OBJECTS) # files by replacing all .c files with .d. #---------------------------------------------------------------------- PREREQS := $(OBJECTS:.o=.d) +ifneq "$(DYLIB_NAME)" "" + DYLIB_PREREQS := $(DYLIB_OBJECTS:.o=.d) +endif #---------------------------------------------------------------------- # Rule for Generating Prerequisites Automatically using .d files and @@ -135,6 +138,9 @@ PREREQS := $(OBJECTS:.o=.d) # to manually track all of the prerequisites for each source file. #---------------------------------------------------------------------- sinclude $(PREREQS) +ifneq "$(DYLIB_NAME)" "" + sinclude $(DYLIB_PREREQS) +endif .PHONY: clean dsym: $(DSYM)