summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-01-16 02:21:42 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-01-16 02:21:42 +0000
commit6a8b5183bec0dfe2247d8aa6172b4a40f6b0592b (patch)
tree06ab5c42e07e6a8bd614111d36539cdd1feb1663 /projects
parentbdf6a39d1c7b699da1c15cd32211387040edb1f7 (diff)
downloadllvm-6a8b5183bec0dfe2247d8aa6172b4a40f6b0592b.tar.gz
llvm-6a8b5183bec0dfe2247d8aa6172b4a40f6b0592b.tar.bz2
llvm-6a8b5183bec0dfe2247d8aa6172b4a40f6b0592b.tar.xz
Update per new Makefile requirements for projects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
-rw-r--r--projects/Stacker/Makefile.common.in27
-rw-r--r--projects/sample/Makefile.common.in28
2 files changed, 21 insertions, 34 deletions
diff --git a/projects/Stacker/Makefile.common.in b/projects/Stacker/Makefile.common.in
index 55a4f984cf..6620f5b4d8 100644
--- a/projects/Stacker/Makefile.common.in
+++ b/projects/Stacker/Makefile.common.in
@@ -1,28 +1,21 @@
-#
+# Set the name of the project here
+PROJECT_NAME := Stacker
+
# Set this variable to the top of the LLVM source tree.
-#
LLVM_SRC_ROOT = @LLVM_SRC@
-#
# Set this variable to the top level directory where LLVM was built
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
-#
LLVM_OBJ_ROOT = @LLVM_OBJ@
-#
-# Include LLVM's Master Makefile.
-#
-include $(LLVM_OBJ_ROOT)/Makefile.config
+# Set the directory root of this project's source files
+PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
-#
-# Set the source root and source directory pathnames
-#
-BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
+# Set the root directory of this project's object files
+PROJ_OBJ_ROOT := $(subst //,/,@abs_top_objdir@)
-BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
+# Set the root directory of this project's install prefix
+PROJ_INSTALL_ROOT := @prefix@
-#
# Include LLVM's Master Makefile.
-#
-include $(LLVM_SRC_ROOT)/Makefile.rules
-
+include $(LLVM_OBJ_ROOT)/Makefile.common
diff --git a/projects/sample/Makefile.common.in b/projects/sample/Makefile.common.in
index 55a4f984cf..2b3025bd01 100644
--- a/projects/sample/Makefile.common.in
+++ b/projects/sample/Makefile.common.in
@@ -1,28 +1,22 @@
-#
+# Set the name of the project here
+PROJECT_NAME := sample
+PROJ_VERSION := 0.9
+
# Set this variable to the top of the LLVM source tree.
-#
LLVM_SRC_ROOT = @LLVM_SRC@
-#
# Set this variable to the top level directory where LLVM was built
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
-#
LLVM_OBJ_ROOT = @LLVM_OBJ@
-#
-# Include LLVM's Master Makefile.
-#
-include $(LLVM_OBJ_ROOT)/Makefile.config
+# Set the directory root of this project's source files
+PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
-#
-# Set the source root and source directory pathnames
-#
-BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
+# Set the root directory of this project's object files
+PROJ_OBJ_ROOT := $(subst //,/,@abs_top_objdir@)
-BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
+# Set the root directory of this project's install prefix
+PROJ_INSTALL_ROOT := @prefix@
-#
# Include LLVM's Master Makefile.
-#
-include $(LLVM_SRC_ROOT)/Makefile.rules
-
+include $(LLVM_OBJ_ROOT)/Makefile.common