[llvm-commits] [llvm] r56970 - in /llvm/trunk/tools/llvmc2/plugins: Base/Makefile Clang/Makefile Hello/Makefile Makefile.plugins

Mikhail Glushenkov foldr at codedgers.com
Thu Oct 2 15:41:42 PDT 2008


Author: foldr
Date: Thu Oct  2 17:41:42 2008
New Revision: 56970

URL: http://llvm.org/viewvc/llvm-project?rev=56970&view=rev
Log:
Fix build breakage.

Forgot to include Makefile.plugins.

Added:
    llvm/trunk/tools/llvmc2/plugins/Makefile.plugins
Modified:
    llvm/trunk/tools/llvmc2/plugins/Base/Makefile
    llvm/trunk/tools/llvmc2/plugins/Clang/Makefile
    llvm/trunk/tools/llvmc2/plugins/Hello/Makefile

Modified: llvm/trunk/tools/llvmc2/plugins/Base/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Base/Makefile?rev=56970&r1=56969&r2=56970&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Base/Makefile (original)
+++ llvm/trunk/tools/llvmc2/plugins/Base/Makefile Thu Oct  2 17:41:42 2008
@@ -9,4 +9,4 @@
 
 LLVMC_PLUGIN = Base
 
-include ../Makefile.common
+include ../Makefile.plugins

Modified: llvm/trunk/tools/llvmc2/plugins/Clang/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Clang/Makefile?rev=56970&r1=56969&r2=56970&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Clang/Makefile (original)
+++ llvm/trunk/tools/llvmc2/plugins/Clang/Makefile Thu Oct  2 17:41:42 2008
@@ -9,5 +9,5 @@
 
 LLVMC_PLUGIN = Clang
 
-include ../Makefile.common
+include ../Makefile.plugins
 

Modified: llvm/trunk/tools/llvmc2/plugins/Hello/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Hello/Makefile?rev=56970&r1=56969&r2=56970&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Hello/Makefile (original)
+++ llvm/trunk/tools/llvmc2/plugins/Hello/Makefile Thu Oct  2 17:41:42 2008
@@ -9,4 +9,4 @@
 
 LLVMC_PLUGIN = Hello
 
-include ../Makefile.common
+include ../Makefile.plugins

Added: llvm/trunk/tools/llvmc2/plugins/Makefile.plugins
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Makefile.plugins?rev=56970&view=auto

==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Makefile.plugins (added)
+++ llvm/trunk/tools/llvmc2/plugins/Makefile.plugins Thu Oct  2 17:41:42 2008
@@ -0,0 +1,41 @@
+##===- tools/llvmc2/plugins/Makefile.common ----------------*- Makefile -*-===##
+#
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open
+# Source License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL = ../../../..
+
+ifndef LLVMC_PLUGIN
+$(error LLVMC_PLUGIN variable is not defined!)
+endif
+
+LIBRARYNAME = $(patsubst %,LLVMC%,$(LLVMC_PLUGIN))
+TOOLS_SOURCE = $(wildcard $(PROJ_SRC_DIR)/*.td)
+REQUIRES_EH = 1
+
+ifndef BUILTIN_LLVMC_PLUGIN
+LOADABLE_MODULE = 1
+endif
+
+ifneq ($(TOOLS_SOURCE),"")
+BUILD_AUTOGENERATED_INC=1
+BUILT_SOURCES = AutoGenerated.inc
+endif
+
+include $(LEVEL)/Makefile.common
+
+ifdef BUILD_AUTOGENERATED_INC
+TD_COMMON = $(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





More information about the llvm-commits mailing list