Use LLVMLIBS=JIT to get JIT libraries


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18333 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/Fibonacci/Makefile b/examples/Fibonacci/Makefile
index a6d3785..b63777e 100644
--- a/examples/Fibonacci/Makefile
+++ b/examples/Fibonacci/Makefile
@@ -12,6 +12,6 @@
 EXAMPLE_TOOL = 1
 
 # Enable JIT support
-include $(LEVEL)/tools/Makefile.JIT
+LLVMLIBS := JIT
 
 include $(LEVEL)/Makefile.common
diff --git a/examples/HowToUseJIT/Makefile b/examples/HowToUseJIT/Makefile
index 0f5e26b..67fdd86 100644
--- a/examples/HowToUseJIT/Makefile
+++ b/examples/HowToUseJIT/Makefile
@@ -11,6 +11,6 @@
 EXAMPLE_TOOL = 1
 
 # Enable JIT support
-include $(LEVEL)/tools/Makefile.JIT
+LLVMLIBS := JIT
 
 include $(LEVEL)/Makefile.common
diff --git a/tools/lli/Makefile b/tools/lli/Makefile
index 394fec6..0e537f9 100644
--- a/tools/lli/Makefile
+++ b/tools/lli/Makefile
@@ -6,15 +6,9 @@
 # the University of Illinois Open Source License. See LICENSE.TXT for details.
 # 
 ##===----------------------------------------------------------------------===##
-LEVEL = ../..
-TOOLNAME = lli
+LEVEL    := ../..
+TOOLNAME := lli
+LLVMLIBS := JIT
 
 # Enable JIT support
-include ../Makefile.JIT
-
-# Have gcc tell the linker to export symbols from the program so that
-# dynamically loaded modules can be linked against them.
-#
-TOOLLINKOPTS = $(PLATFORMLIBDL)
-
 include $(LEVEL)/Makefile.common
diff --git a/tools/llvm-db/Makefile b/tools/llvm-db/Makefile
index e1f1f2d..fe31e3c 100644
--- a/tools/llvm-db/Makefile
+++ b/tools/llvm-db/Makefile
@@ -12,12 +12,6 @@
 USEDLIBS = LLVMDebugger
 
 # Enable JIT support
-include ../Makefile.JIT
-
-# Have gcc tell the linker to export symbols from the program so that
-# dynamically loaded modules can be linked against them.
-#
-TOOLLINKOPTS = $(PLATFORMLIBDL)
+LLVMLIBS = JIT
 
 include $(LEVEL)/Makefile.common
-