summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-10-03 10:26:37 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-10-03 10:26:37 +0000
commitbb63f929d595fc3505e4222362671ed56754188f (patch)
tree9ab4efa93de73d99f1594167469990fc19e65f12 /llvm/tools
parent657e1c5c9671bbefd544d0a77ef853f583b98087 (diff)
downloadbcm5719-llvm-bb63f929d595fc3505e4222362671ed56754188f.tar.gz
bcm5719-llvm-bb63f929d595fc3505e4222362671ed56754188f.zip
Fix build breakage when objdir!=srcdir (proper fix).
llvm-svn: 56999
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvmc2/Makefile3
-rw-r--r--llvm/tools/llvmc2/plugins/Base/Makefile2
-rw-r--r--llvm/tools/llvmc2/plugins/Clang/Makefile2
-rw-r--r--llvm/tools/llvmc2/plugins/Hello/Makefile2
-rw-r--r--llvm/tools/llvmc2/plugins/Makefile (renamed from llvm/tools/llvmc2/plugins/Makefile.plugins)21
5 files changed, 20 insertions, 10 deletions
diff --git a/llvm/tools/llvmc2/Makefile b/llvm/tools/llvmc2/Makefile
index 63f933deb2e..3f35de09178 100644
--- a/llvm/tools/llvmc2/Makefile
+++ b/llvm/tools/llvmc2/Makefile
@@ -11,10 +11,9 @@ LEVEL = ../..
BUILTIN_PLUGINS = Base
DRIVER_NAME = llvmc2
-DIRS = $(patsubst %,plugins/%,$(BUILTIN_PLUGINS)) src
+DIRS = plugins src
export BUILTIN_PLUGINS
export DRIVER_NAME
-export BUILTIN_LLVMC_PLUGIN=1
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvmc2/plugins/Base/Makefile b/llvm/tools/llvmc2/plugins/Base/Makefile
index d8f7610b07e..89cdaf4a9e8 100644
--- a/llvm/tools/llvmc2/plugins/Base/Makefile
+++ b/llvm/tools/llvmc2/plugins/Base/Makefile
@@ -9,4 +9,4 @@
LLVMC_PLUGIN = Base
-include ../Makefile.plugins
+include ../Makefile
diff --git a/llvm/tools/llvmc2/plugins/Clang/Makefile b/llvm/tools/llvmc2/plugins/Clang/Makefile
index da1043ed04c..e48824aa952 100644
--- a/llvm/tools/llvmc2/plugins/Clang/Makefile
+++ b/llvm/tools/llvmc2/plugins/Clang/Makefile
@@ -9,5 +9,5 @@
LLVMC_PLUGIN = Clang
-include ../Makefile.plugins
+include ../Makefile
diff --git a/llvm/tools/llvmc2/plugins/Hello/Makefile b/llvm/tools/llvmc2/plugins/Hello/Makefile
index 0fcaaa7dc5d..f0d51ddbfcb 100644
--- a/llvm/tools/llvmc2/plugins/Hello/Makefile
+++ b/llvm/tools/llvmc2/plugins/Hello/Makefile
@@ -9,4 +9,4 @@
LLVMC_PLUGIN = Hello
-include ../Makefile.plugins
+include ../Makefile
diff --git a/llvm/tools/llvmc2/plugins/Makefile.plugins b/llvm/tools/llvmc2/plugins/Makefile
index 51e297d3758..568752e5784 100644
--- a/llvm/tools/llvmc2/plugins/Makefile.plugins
+++ b/llvm/tools/llvmc2/plugins/Makefile
@@ -7,11 +7,20 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../../../..
-
ifndef LLVMC_PLUGIN
-$(error LLVMC_PLUGIN variable is not defined!)
-endif
+
+LEVEL = ../../..
+DIRS = $(BUILTIN_PLUGINS)
+
+# TOFIX: DSO versions of plugins are not built
+
+export BUILTIN_LLVMC_PLUGIN=1
+
+include $(LEVEL)/Makefile.common
+
+else # LLVMC_PLUGIN
+
+LEVEL = ../../../..
LIBRARYNAME = $(patsubst %,LLVMC%,$(LLVMC_PLUGIN))
TOOLS_SOURCE = $(wildcard $(PROJ_SRC_DIR)/*.td)
@@ -40,4 +49,6 @@ $(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir \
AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
$(Verb) $(CMP) -s $@ $< || $(CP) $< $@
-endif
+endif # BUILD_AUTOGENERATED_INC
+
+endif # LLVMC_PLUGIN
OpenPOWER on IntegriCloud