summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-03-02 09:04:13 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-03-02 09:04:13 +0000
commit7cff81825ffde01c2085cebca463fd837c0b4775 (patch)
tree440cdc64acac598f588467cda93687f1d332bb5a /llvm/tools/llvmc
parent37b419cdeec2b925da4a09608f64e41841cb3ea8 (diff)
downloadbcm5719-llvm-7cff81825ffde01c2085cebca463fd837c0b4775.tar.gz
bcm5719-llvm-7cff81825ffde01c2085cebca463fd837c0b4775.zip
Move the rules for building plugins to Makefile.rules.
llvm-svn: 65827
Diffstat (limited to 'llvm/tools/llvmc')
-rw-r--r--llvm/tools/llvmc/Makefile42
-rw-r--r--llvm/tools/llvmc/plugins/Base/Makefile4
-rw-r--r--llvm/tools/llvmc/plugins/Clang/Makefile4
-rw-r--r--llvm/tools/llvmc/plugins/Hello/Makefile4
-rw-r--r--llvm/tools/llvmc/plugins/Simple/Makefile4
5 files changed, 8 insertions, 50 deletions
diff --git a/llvm/tools/llvmc/Makefile b/llvm/tools/llvmc/Makefile
index f70c4b5e11c..60961769d19 100644
--- a/llvm/tools/llvmc/Makefile
+++ b/llvm/tools/llvmc/Makefile
@@ -9,8 +9,6 @@
LEVEL = ../..
-#ifndef LLVMC_PLUGIN
-
# The current plan is to make the user copy the skeleton project and change only
# this file (and plugins/UserPlugin, of course).
@@ -20,43 +18,3 @@ export LLVMC_BUILTIN_PLUGINS = Base Clang
DIRS = plugins driver
include $(LEVEL)/Makefile.common
-
-else # LLVMC_PLUGIN
-
-# We are included from plugins/PluginName/Makefile...
-# TODO: This part must be merged into Makefile.rules.
-
-LEVEL = ../../../..
-
-LIBRARYNAME := $(patsubst %,plugin_llvmc_%,$(LLVMC_PLUGIN))
-REQUIRES_EH := 1
-
-# Build a dynamic library if the user runs `make` from plugins/PluginName
-ifndef LLVMC_BUILTIN_PLUGIN
-LOADABLE_MODULE = 1
-endif
-
-# TableGen stuff...
-ifneq ($(BUILT_SOURCES),)
-BUILD_AUTOGENERATED_INC=1
-endif
-
-include $(LEVEL)/Makefile.common
-
-ifdef BUILD_AUTOGENERATED_INC
-
-TOOLS_SOURCE := $(strip $(wildcard $(PROJ_SRC_DIR)/*.td))
-
-TD_COMMON :=$(strip $(wildcard \
- $(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))
-
-$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir \
- $(TBLGEN) $(TD_COMMON)
- $(Echo) "Building LLVMC configuration library with tblgen"
- $(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
-
-AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
- $(Verb) $(CMP) -s $@ $< || $(CP) $< $@
-endif # BUILD_AUTOGENERATED_INC
-
-endif # LLVMC_PLUGIN
diff --git a/llvm/tools/llvmc/plugins/Base/Makefile b/llvm/tools/llvmc/plugins/Base/Makefile
index 017dcebc022..ebc43350542 100644
--- a/llvm/tools/llvmc/plugins/Base/Makefile
+++ b/llvm/tools/llvmc/plugins/Base/Makefile
@@ -7,9 +7,9 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
+LEVEL = ../../../..
LLVMC_PLUGIN = Base
BUILT_SOURCES = AutoGenerated.inc
-include $(LEVEL)/Makefile
+include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvmc/plugins/Clang/Makefile b/llvm/tools/llvmc/plugins/Clang/Makefile
index bf5429c16a3..5e5b88a44b2 100644
--- a/llvm/tools/llvmc/plugins/Clang/Makefile
+++ b/llvm/tools/llvmc/plugins/Clang/Makefile
@@ -7,9 +7,9 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
+LEVEL = ../../../..
LLVMC_PLUGIN = Clang
BUILT_SOURCES = AutoGenerated.inc
-include $(LEVEL)/Makefile
+include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvmc/plugins/Hello/Makefile b/llvm/tools/llvmc/plugins/Hello/Makefile
index b309bff6626..10325e6a6d5 100644
--- a/llvm/tools/llvmc/plugins/Hello/Makefile
+++ b/llvm/tools/llvmc/plugins/Hello/Makefile
@@ -7,8 +7,8 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
+LEVEL = ../../../..
LLVMC_PLUGIN = Hello
-include $(LEVEL)/Makefile
+include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvmc/plugins/Simple/Makefile b/llvm/tools/llvmc/plugins/Simple/Makefile
index b108e7018d5..d7adb5d851e 100644
--- a/llvm/tools/llvmc/plugins/Simple/Makefile
+++ b/llvm/tools/llvmc/plugins/Simple/Makefile
@@ -7,9 +7,9 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
+LEVEL = ../../../..
LLVMC_PLUGIN = Simple
BUILT_SOURCES = AutoGenerated.inc
-include $(LEVEL)/Makefile
+include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud