Generates the .d prerequisite file for dylib as well.

llvm-svn: 111920
This commit is contained in:
Johnny Chen
2010-08-24 16:35:00 +00:00
parent e90dd00c3c
commit e3dc0f048a

View File

@@ -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)