summaryrefslogtreecommitdiff
path: root/tools/llc/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-04-22 17:32:05 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-04-22 17:32:05 +0000
commitdadc96f07a66dc8b381d16c5906a42a6ecdca213 (patch)
tree013cc3b6d9cce030e26729bbcd85d7a8cfc8957f /tools/llc/Makefile
parent18969fbc9f19fbc62d25ff2e83098c3143d77a33 (diff)
downloadllvm-dadc96f07a66dc8b381d16c5906a42a6ecdca213.tar.gz
llvm-dadc96f07a66dc8b381d16c5906a42a6ecdca213.tar.bz2
llvm-dadc96f07a66dc8b381d16c5906a42a6ecdca213.tar.xz
Don't always build CBackend and Skeleton. Make use of the TARGETS_TO_BUILD
parameter instead which will correctly list the set of targets to be built. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc/Makefile')
-rw-r--r--tools/llc/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/llc/Makefile b/tools/llc/Makefile
index 8eff3c1612..c4af6d806a 100644
--- a/tools/llc/Makefile
+++ b/tools/llc/Makefile
@@ -15,8 +15,18 @@ TOOLNAME = llc
# early so we can set up USEDLIBS properly before includeing Makefile.rules
include $(LEVEL)/Makefile.config
-# We always build the C Backend and the Skeleton
-USEDLIBS := LLVMCBackend LLVMSkeleton
+# Initialize the USEDLIBS so we can add to it
+USEDLIBS :=
+
+# Check for LLVMCBackend target
+ifneq ($(strip $(filter CBackend,$(TARGETS_TO_BUILD))),)
+USEDLIB += LLVMCBackend
+endif
+
+# Check for Skeleton target
+ifneq ($(strip $(filter Skeleton,$(TARGETS_TO_BUILD))),)
+USEDLIB += LLVMSkeleton
+endif
# Check for Sparc target
ifneq ($(strip $(filter SparcV8,$(TARGETS_TO_BUILD))),)