summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/driver/Makefile
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-03-02 09:01:14 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-03-02 09:01:14 +0000
commit931d4521c33df446cf4f5a8ae168a8001556693f (patch)
tree21923e5f5c09631cbaf3159c5b790a96e6c8871b /llvm/tools/llvmc/driver/Makefile
parent57359cad176d71f47203d5d486e2563e70dc58e0 (diff)
downloadbcm5719-llvm-931d4521c33df446cf4f5a8ae168a8001556693f.tar.gz
bcm5719-llvm-931d4521c33df446cf4f5a8ae168a8001556693f.zip
Reorganize llvmc code.
Move the code from 'llvmc/driver' into a new CompilerDriver library, and change the build system accordingly. Makes it easier for projects using LLVM to build their own llvmc-based drivers. Tested with objdir != srcdir. llvm-svn: 65821
Diffstat (limited to 'llvm/tools/llvmc/driver/Makefile')
-rw-r--r--llvm/tools/llvmc/driver/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/tools/llvmc/driver/Makefile b/llvm/tools/llvmc/driver/Makefile
index 107f0dea385..0e32726fec2 100644
--- a/llvm/tools/llvmc/driver/Makefile
+++ b/llvm/tools/llvmc/driver/Makefile
@@ -8,12 +8,15 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-TOOLNAME = $(DRIVER_NAME)
-LINK_COMPONENTS = support system
-REQUIRES_EH := 1
-ifneq ($(BUILTIN_PLUGINS),)
-USEDLIBS = $(patsubst %,plugin_llvmc_%,$(BUILTIN_PLUGINS))
+TOOLNAME = $(LLVMC_BASED_DRIVER_NAME)
+USEDLIBS = CompilerDriver
+
+ifneq ($(LLVMC_BUILTIN_PLUGINS),)
+USEDLIBS += $(patsubst %,plugin_llvmc_%,$(LLVMC_BUILTIN_PLUGINS))
endif
+LINK_COMPONENTS = support system
+REQUIRES_EH := 1
+
include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud