[llvm-commits] [llvm] r65826 - in /llvm/trunk/tools/llvmc: Makefile Makefile.llvmc plugins/Base/Makefile plugins/Clang/Makefile plugins/Hello/Makefile plugins/Simple/Makefile

Mikhail Glushenkov foldr at codedgers.com
Mon Mar 2 01:03:37 PST 2009


Author: foldr
Date: Mon Mar  2 03:03:36 2009
New Revision: 65826

URL: http://llvm.org/viewvc/llvm-project?rev=65826&view=rev
Log:
Fix build with objdir != srcdir.

Removed:
    llvm/trunk/tools/llvmc/Makefile.llvmc
Modified:
    llvm/trunk/tools/llvmc/Makefile
    llvm/trunk/tools/llvmc/plugins/Base/Makefile
    llvm/trunk/tools/llvmc/plugins/Clang/Makefile
    llvm/trunk/tools/llvmc/plugins/Hello/Makefile
    llvm/trunk/tools/llvmc/plugins/Simple/Makefile

Modified: llvm/trunk/tools/llvmc/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/Makefile?rev=65826&r1=65825&r2=65826&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc/Makefile (original)
+++ llvm/trunk/tools/llvmc/Makefile Mon Mar  2 03:03:36 2009
@@ -9,6 +9,8 @@
 
 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).
 
@@ -18,3 +20,43 @@
 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

Removed: llvm/trunk/tools/llvmc/Makefile.llvmc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/Makefile.llvmc?rev=65825&view=auto

==============================================================================
--- llvm/trunk/tools/llvmc/Makefile.llvmc (original)
+++ llvm/trunk/tools/llvmc/Makefile.llvmc (removed)
@@ -1,49 +0,0 @@
-##===- tools/llvmc/Makefile.llvmc --------------------------*- Makefile -*-===##
-#
-#                     The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open
-# Source License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-# TODO: This must be eventually merged into Makefile.rules.
-
-ifdef LLVMC_PLUGIN
-
-# We are included from plugins/PluginName/Makefile...
-
-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

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

==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Base/Makefile (original)
+++ llvm/trunk/tools/llvmc/plugins/Base/Makefile Mon Mar  2 03:03:36 2009
@@ -12,4 +12,4 @@
 LLVMC_PLUGIN = Base
 BUILT_SOURCES = AutoGenerated.inc
 
-include $(LEVEL)/Makefile.llvmc
+include $(LEVEL)/Makefile

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

==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Clang/Makefile (original)
+++ llvm/trunk/tools/llvmc/plugins/Clang/Makefile Mon Mar  2 03:03:36 2009
@@ -12,4 +12,4 @@
 LLVMC_PLUGIN = Clang
 BUILT_SOURCES = AutoGenerated.inc
 
-include $(LEVEL)/Makefile.llvmc
+include $(LEVEL)/Makefile

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

==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Hello/Makefile (original)
+++ llvm/trunk/tools/llvmc/plugins/Hello/Makefile Mon Mar  2 03:03:36 2009
@@ -11,4 +11,4 @@
 
 LLVMC_PLUGIN = Hello
 
-include $(LEVEL)/Makefile.llvmc
+include $(LEVEL)/Makefile

Modified: llvm/trunk/tools/llvmc/plugins/Simple/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/plugins/Simple/Makefile?rev=65826&r1=65825&r2=65826&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Simple/Makefile (original)
+++ llvm/trunk/tools/llvmc/plugins/Simple/Makefile Mon Mar  2 03:03:36 2009
@@ -12,4 +12,4 @@
 LLVMC_PLUGIN = Simple
 BUILT_SOURCES = AutoGenerated.inc
 
-include $(LEVEL)/Makefile.llvmc
+include $(LEVEL)/Makefile





More information about the llvm-commits mailing list