From: John Criswell Date: Tue, 25 Nov 2003 19:59:21 +0000 (+0000) Subject: Auto-conf'ed the ModuleMaker code. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=27bf6376da3f190895c718635164ab2ff5dcd392 Auto-conf'ed the ModuleMaker code. Moved Makefile.common to Makefile.common.in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10214 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/ModuleMaker/Makefile.common b/examples/ModuleMaker/Makefile.common deleted file mode 100644 index b90ad9f9264..00000000000 --- a/examples/ModuleMaker/Makefile.common +++ /dev/null @@ -1,23 +0,0 @@ -# -# Configure the location of the LLVM object root. We know it is two -# directories up. The source tree location we do not know; let the LLVM -# Makefiles find it for us. -# -LLVM_OBJ_ROOT=$(LEVEL)/../.. - -# -# Grab the LLVM configuration file. -# -include $(LEVEL)/../../Makefile.config - -# -# Reconfigure the source directories -# -BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker -BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) - -# -# Include LLVM's build rules. -# -include $(LLVM_SRC_ROOT)/Makefile.rules - diff --git a/examples/ModuleMaker/Makefile.common.in b/examples/ModuleMaker/Makefile.common.in new file mode 100644 index 00000000000..b90ad9f9264 --- /dev/null +++ b/examples/ModuleMaker/Makefile.common.in @@ -0,0 +1,23 @@ +# +# Configure the location of the LLVM object root. We know it is two +# directories up. The source tree location we do not know; let the LLVM +# Makefiles find it for us. +# +LLVM_OBJ_ROOT=$(LEVEL)/../.. + +# +# Grab the LLVM configuration file. +# +include $(LEVEL)/../../Makefile.config + +# +# Reconfigure the source directories +# +BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker +BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) + +# +# Include LLVM's build rules. +# +include $(LLVM_SRC_ROOT)/Makefile.rules + diff --git a/projects/ModuleMaker/Makefile.common b/projects/ModuleMaker/Makefile.common deleted file mode 100644 index b90ad9f9264..00000000000 --- a/projects/ModuleMaker/Makefile.common +++ /dev/null @@ -1,23 +0,0 @@ -# -# Configure the location of the LLVM object root. We know it is two -# directories up. The source tree location we do not know; let the LLVM -# Makefiles find it for us. -# -LLVM_OBJ_ROOT=$(LEVEL)/../.. - -# -# Grab the LLVM configuration file. -# -include $(LEVEL)/../../Makefile.config - -# -# Reconfigure the source directories -# -BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker -BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) - -# -# Include LLVM's build rules. -# -include $(LLVM_SRC_ROOT)/Makefile.rules - diff --git a/projects/ModuleMaker/Makefile.common.in b/projects/ModuleMaker/Makefile.common.in new file mode 100644 index 00000000000..b90ad9f9264 --- /dev/null +++ b/projects/ModuleMaker/Makefile.common.in @@ -0,0 +1,23 @@ +# +# Configure the location of the LLVM object root. We know it is two +# directories up. The source tree location we do not know; let the LLVM +# Makefiles find it for us. +# +LLVM_OBJ_ROOT=$(LEVEL)/../.. + +# +# Grab the LLVM configuration file. +# +include $(LEVEL)/../../Makefile.config + +# +# Reconfigure the source directories +# +BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker +BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) + +# +# Include LLVM's build rules. +# +include $(LLVM_SRC_ROOT)/Makefile.rules + diff --git a/projects/SmallExamples/ModuleMaker/Makefile.common b/projects/SmallExamples/ModuleMaker/Makefile.common deleted file mode 100644 index b90ad9f9264..00000000000 --- a/projects/SmallExamples/ModuleMaker/Makefile.common +++ /dev/null @@ -1,23 +0,0 @@ -# -# Configure the location of the LLVM object root. We know it is two -# directories up. The source tree location we do not know; let the LLVM -# Makefiles find it for us. -# -LLVM_OBJ_ROOT=$(LEVEL)/../.. - -# -# Grab the LLVM configuration file. -# -include $(LEVEL)/../../Makefile.config - -# -# Reconfigure the source directories -# -BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker -BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) - -# -# Include LLVM's build rules. -# -include $(LLVM_SRC_ROOT)/Makefile.rules - diff --git a/projects/SmallExamples/ModuleMaker/Makefile.common.in b/projects/SmallExamples/ModuleMaker/Makefile.common.in new file mode 100644 index 00000000000..b90ad9f9264 --- /dev/null +++ b/projects/SmallExamples/ModuleMaker/Makefile.common.in @@ -0,0 +1,23 @@ +# +# Configure the location of the LLVM object root. We know it is two +# directories up. The source tree location we do not know; let the LLVM +# Makefiles find it for us. +# +LLVM_OBJ_ROOT=$(LEVEL)/../.. + +# +# Grab the LLVM configuration file. +# +include $(LEVEL)/../../Makefile.config + +# +# Reconfigure the source directories +# +BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker +BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) + +# +# Include LLVM's build rules. +# +include $(LLVM_SRC_ROOT)/Makefile.rules +