diff options
author | John Criswell <criswell@uiuc.edu> | 2003-10-16 01:45:10 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-10-16 01:45:10 +0000 |
commit | caca6ea4e46f9a63f24380b9d431d046c51496c3 (patch) | |
tree | 37ed47e9f82f4c2d3c6c92dea210673cae57a1b1 /projects/sample/Makefile.common.in | |
parent | 607b1ea2410fadfec25826ff1bbbbaebe38ec55a (diff) | |
download | llvm-caca6ea4e46f9a63f24380b9d431d046c51496c3.tar.gz llvm-caca6ea4e46f9a63f24380b9d431d046c51496c3.tar.bz2 llvm-caca6ea4e46f9a63f24380b9d431d046c51496c3.tar.xz |
Adding autoconf support for the sample project.
This should make setting up a new project much easier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/sample/Makefile.common.in')
-rw-r--r-- | projects/sample/Makefile.common.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/projects/sample/Makefile.common.in b/projects/sample/Makefile.common.in new file mode 100644 index 0000000000..55a4f984cf --- /dev/null +++ b/projects/sample/Makefile.common.in @@ -0,0 +1,28 @@ +# +# 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 source root and source directory pathnames +# +BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) + +BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@) + +# +# Include LLVM's Master Makefile. +# +include $(LLVM_SRC_ROOT)/Makefile.rules + |