minor cleanups. Add provisions for a new standard BLOCKINFO_BLOCK
[oota-llvm.git] / tools / llc / Makefile
index 8cd55c34bb1d585ef09231fe2b03162072346c87..847a175d25d7fb665f755dd4a32430609ce94a0b 100644 (file)
@@ -9,34 +9,14 @@
 
 LEVEL = ../..
 TOOLNAME = llc
-USEDLIBS = \
-       LLVMSparcV9ModuloSched \
-       LLVMCBackend \
-       LLVMPowerPC \
-       LLVMSparcV8 \
-       LLVMSparcV9 \
-       LLVMX86 \
-       LLVMAlpha \
-       LLVMSkeleton \
-       LLVMSparcV9RegAlloc \
-       LLVMSparcV9InstrSched \
-       LLVMSelectionDAG \
-       LLVMCodeGen \
-       LLVMTarget.a \
-       LLVMSparcV9LiveVar \
-       LLVMipa.a \
-       LLVMTransforms.a \
-       LLVMScalarOpts \
-       LLVMAnalysis.a \
-       LLVMTransformUtils.a \
-       LLVMBCReader \
-       LLVMBCWriter \
-       LLVMCore \
-       LLVMSupport.a \
-       LLVMbzip2 \
-       LLVMSystem.a
+REQUIRES_EH := 1
 
-TOOLLINKOPTS = $(PLATFORMLIBDL)
+# Include this here so we can get the configuration of the targets
+# that have been configured for construction. We have to do this 
+# early so we can set up LINK_COMPONENTS before including Makefile.rules
+include $(LEVEL)/Makefile.config
 
-include $(LEVEL)/Makefile.common
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader
+
+include $(LLVM_SRC_ROOT)/Makefile.rules