Use llvm-config to determine what to link in

llvm-svn: 30092
diff --git a/llvm/examples/Fibonacci/Makefile b/llvm/examples/Fibonacci/Makefile
index b63777e..5010cb4 100644
--- a/llvm/examples/Fibonacci/Makefile
+++ b/llvm/examples/Fibonacci/Makefile
@@ -11,7 +11,7 @@
 TOOLNAME = Fibonacci
 EXAMPLE_TOOL = 1
 
-# Enable JIT support
-LLVMLIBS := JIT
+# Link in JIT support
+LINK_COMPONENTS := jit interpreter native
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/examples/HowToUseJIT/Makefile b/llvm/examples/HowToUseJIT/Makefile
index 67fdd86..fbacc2d 100644
--- a/llvm/examples/HowToUseJIT/Makefile
+++ b/llvm/examples/HowToUseJIT/Makefile
@@ -10,7 +10,6 @@
 TOOLNAME = HowToUseJIT
 EXAMPLE_TOOL = 1
 
-# Enable JIT support
-LLVMLIBS := JIT
+LINK_COMPONENTS := jit interpreter native
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/examples/ModuleMaker/Makefile b/llvm/examples/ModuleMaker/Makefile
index e24e0df..f669bf2 100644
--- a/llvm/examples/ModuleMaker/Makefile
+++ b/llvm/examples/ModuleMaker/Makefile
@@ -9,6 +9,6 @@
 LEVEL=../..
 TOOLNAME=ModuleMaker
 EXAMPLE_TOOL = 1
-USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS := bcwriter
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/examples/ParallelJIT/Makefile b/llvm/examples/ParallelJIT/Makefile
index cb014a0..f183da2 100644
--- a/llvm/examples/ParallelJIT/Makefile
+++ b/llvm/examples/ParallelJIT/Makefile
@@ -10,8 +10,7 @@
 TOOLNAME = ParallelJIT
 EXAMPLE_TOOL = 1
 
-# Enable JIT support
-LLVMLIBS := JIT
+LINK_COMPONENTS := jit interpreter native
 
 include $(LEVEL)/Makefile.common