[llvm-commits] CVS: llvm/tools/llc/Makefile
Reid Spencer
reid at x10sys.com
Fri Apr 22 10:32:16 PDT 2005
Changes in directory llvm/tools/llc:
Makefile updated: 1.69 -> 1.70
---
Log message:
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.
---
Diffs of the changes: (+12 -2)
Makefile | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
Index: llvm/tools/llc/Makefile
diff -u llvm/tools/llc/Makefile:1.69 llvm/tools/llc/Makefile:1.70
--- llvm/tools/llc/Makefile:1.69 Fri Apr 22 12:20:11 2005
+++ llvm/tools/llc/Makefile Fri Apr 22 12:32:05 2005
@@ -15,8 +15,18 @@
# 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))),)
More information about the llvm-commits
mailing list