diff options
author | Devang Patel <dpatel@apple.com> | 2006-08-03 17:18:45 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-08-03 17:18:45 +0000 |
commit | f5a156deeebac16fd0e5adcdfe850f13db2676b3 (patch) | |
tree | 747fee1494c428340eb192c3c1b49c86964777f6 /tools/lto | |
parent | f4fda804038e8f98b597e82a8df607321369db2b (diff) | |
download | external_llvm-f5a156deeebac16fd0e5adcdfe850f13db2676b3.zip external_llvm-f5a156deeebac16fd0e5adcdfe850f13db2676b3.tar.gz external_llvm-f5a156deeebac16fd0e5adcdfe850f13db2676b3.tar.bz2 |
Simplify. Use addprefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/Makefile | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/tools/lto/Makefile b/tools/lto/Makefile index a731f2b..40ed6b1 100644 --- a/tools/lto/Makefile +++ b/tools/lto/Makefile @@ -20,43 +20,11 @@ DONT_BUILD_RELINKED = 1 # early so we can set up USEDLIBS properly before includeing Makefile.rules include $(LEVEL)/Makefile.config -# Initialize the USEDLIBS so we can add to it -USEDLIBS := - -# Check for LLVMCBackend target -ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),) -USEDLIBS += LLVMCBackend -endif - -ifneq ($(strip $(filter Sparc,$(TARGETS_TO_BUILD))),) -USEDLIBS += LLVMSparc -endif - - -#Check for X86 Target -ifneq ($(strip $(filter X86,$(TARGETS_TO_BUILD))),) -USEDLIBS += LLVMX86 -endif - -#Check for PowerPC Target -ifneq ($(strip $(filter PowerPC,$(TARGETS_TO_BUILD))),) -USEDLIBS += LLVMPowerPC -endif - -#Check for Alpha Target -ifneq ($(strip $(filter Alpha,$(TARGETS_TO_BUILD))),) -USEDLIBS += LLVMAlpha -endif - -#Check for IA64 Target -ifneq ($(strip $(filter IA64,$(TARGETS_TO_BUILD))),) -USEDLIBS += LLVMIA64 -endif - -USEDLIBS += LLVMSelectionDAG.a LLVMCodeGen.a LLVMipo.a \ -LLVMTransforms.a LLVMScalarOpts.a LLVMipa.a LLVMTransformUtils.a LLVMAnalysis.a \ -LLVMTarget.a LLVMBCReader.a LLVMBCWriter.a LLVMSystem.a LLVMLinker.a LLVMCore.a \ -LLVMSupport.a LLVMbzip2.a +USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \ + LLVMSelectionDAG.a LLVMCodeGen.a LLVMipo.a LLVMTransforms.a \ + LLVMScalarOpts.a LLVMipa.a LLVMTransformUtils.a LLVMAnalysis.a \ + LLVMTarget.a LLVMBCReader.a LLVMBCWriter.a LLVMSystem.a LLVMLinker.a \ + LLVMCore.a LLVMSupport.a LLVMbzip2.a include $(LEVEL)/Makefile.common |