summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-04 06:04:03 +0000
committerChris Lattner <sabre@nondot.org>2006-09-04 06:04:03 +0000
commit885e3cb7f3465ad6db3bcb0c43f208208befeba1 (patch)
treef755fb24767b5a09a2275beab5ef5f5ad7ed1e6b /examples
parenta5632088982b6c5443c376a3ef57f9f32c0ee52e (diff)
downloadllvm-885e3cb7f3465ad6db3bcb0c43f208208befeba1.tar.gz
llvm-885e3cb7f3465ad6db3bcb0c43f208208befeba1.tar.bz2
llvm-885e3cb7f3465ad6db3bcb0c43f208208befeba1.tar.xz
Use llvm-config to determine what to link in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/Fibonacci/Makefile4
-rw-r--r--examples/HowToUseJIT/Makefile3
-rw-r--r--examples/ModuleMaker/Makefile2
-rw-r--r--examples/ParallelJIT/Makefile3
4 files changed, 5 insertions, 7 deletions
diff --git a/examples/Fibonacci/Makefile b/examples/Fibonacci/Makefile
index b63777eb29..5010cb4b97 100644
--- a/examples/Fibonacci/Makefile
+++ b/examples/Fibonacci/Makefile
@@ -11,7 +11,7 @@ LEVEL = ../..
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/examples/HowToUseJIT/Makefile b/examples/HowToUseJIT/Makefile
index 67fdd86111..fbacc2d5ca 100644
--- a/examples/HowToUseJIT/Makefile
+++ b/examples/HowToUseJIT/Makefile
@@ -10,7 +10,6 @@ LEVEL = ../..
TOOLNAME = HowToUseJIT
EXAMPLE_TOOL = 1
-# Enable JIT support
-LLVMLIBS := JIT
+LINK_COMPONENTS := jit interpreter native
include $(LEVEL)/Makefile.common
diff --git a/examples/ModuleMaker/Makefile b/examples/ModuleMaker/Makefile
index e24e0df49d..f669bf2593 100644
--- a/examples/ModuleMaker/Makefile
+++ b/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/examples/ParallelJIT/Makefile b/examples/ParallelJIT/Makefile
index cb014a0082..f183da246e 100644
--- a/examples/ParallelJIT/Makefile
+++ b/examples/ParallelJIT/Makefile
@@ -10,8 +10,7 @@ LEVEL = ../..
TOOLNAME = ParallelJIT
EXAMPLE_TOOL = 1
-# Enable JIT support
-LLVMLIBS := JIT
+LINK_COMPONENTS := jit interpreter native
include $(LEVEL)/Makefile.common