1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Make LINK_COMPONENTS interact well with make clean

llvm-svn: 30086
This commit is contained in:
Chris Lattner 2006-09-04 04:50:10 +00:00
parent e49d06b5a1
commit 04697c6d6f

View File

@ -707,10 +707,12 @@ LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
endif
ifneq ($(strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS)))),)
ifdef LINK_COMPONENTS
ProjLibsOptions := $(shell $(LLVM_CONFIG) --libs $(LINK_COMPONENTS))
ProjLibsPaths := $(shell $(LLVM_CONFIG) --libfiles $(LINK_COMPONENTS))
endif
endif
###############################################################################
# Library Build Rules: Four ways to build a library
@ -1415,7 +1417,7 @@ CTAGS:
ifndef DISABLE_AUTO_DEPENDENCIES
# If its not one of the cleaning targets
ifneq ($strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS))),)
ifneq ($(strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS)))),)
# Get the list of dependency files
DependFiles := $(basename $(filter %.cpp %.c %.cc, $(Sources)))