Fix PR456:\
Tools and libraries will be built into $(BUILD_OBJ_ROOT)/$(BuildMode)/bin and \
$(BUILD_OBJ_ROOT)/$(BuildMode)/lib, respectively. Furthermore, the example \
programs will go in $(BUILD_OBJ_ROOT)/$(BuildMode)/examples to keep them \
separate from the tools and hopefully out of the PATH. Install targets \
have not changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17953 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/BFtoLLVM/Makefile b/examples/BFtoLLVM/Makefile
index e3074cc..0b4c429 100644
--- a/examples/BFtoLLVM/Makefile
+++ b/examples/BFtoLLVM/Makefile
@@ -9,4 +9,5 @@
LEVEL = ../..
TOOLNAME = BFtoLLVM
+EXAMPLE_TOOL = 1
include $(LEVEL)/Makefile.common
diff --git a/examples/Fibonacci/Makefile b/examples/Fibonacci/Makefile
index 2c9a531..a6d3785 100644
--- a/examples/Fibonacci/Makefile
+++ b/examples/Fibonacci/Makefile
@@ -9,6 +9,7 @@
LEVEL = ../..
TOOLNAME = Fibonacci
+EXAMPLE_TOOL = 1
# Enable JIT support
include $(LEVEL)/tools/Makefile.JIT
diff --git a/examples/HowToUseJIT/Makefile b/examples/HowToUseJIT/Makefile
index 3312eb8..0f5e26b 100644
--- a/examples/HowToUseJIT/Makefile
+++ b/examples/HowToUseJIT/Makefile
@@ -8,6 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = HowToUseJIT
+EXAMPLE_TOOL = 1
# Enable JIT support
include $(LEVEL)/tools/Makefile.JIT
diff --git a/examples/ModuleMaker/Makefile b/examples/ModuleMaker/Makefile
index 2bd8a38..91635d4 100644
--- a/examples/ModuleMaker/Makefile
+++ b/examples/ModuleMaker/Makefile
@@ -8,6 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL=../..
TOOLNAME=ModuleMaker
+EXAMPLE_TOOL = 1
USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common