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 | 419c0dab181fb35db3e199f8f22f24bd8a8183f3 (patch) | |
tree | 83ee91115857083b2529bbef2b3fce534db1188c /llvm/projects/sample | |
parent | 334a2ed2d1a50a9d4f8a9844ea41248d59523a03 (diff) | |
download | bcm5719-llvm-419c0dab181fb35db3e199f8f22f24bd8a8183f3.tar.gz bcm5719-llvm-419c0dab181fb35db3e199f8f22f24bd8a8183f3.zip |
Adding autoconf support for the sample project.
This should make setting up a new project much easier.
llvm-svn: 9149
Diffstat (limited to 'llvm/projects/sample')
-rw-r--r-- | llvm/projects/sample/Makefile.common | 23 | ||||
-rw-r--r-- | llvm/projects/sample/Makefile.common.in | 28 | ||||
-rw-r--r-- | llvm/projects/sample/Makefile.config | 16 |
3 files changed, 28 insertions, 39 deletions
diff --git a/llvm/projects/sample/Makefile.common b/llvm/projects/sample/Makefile.common deleted file mode 100644 index 7fa7185ddd7..00000000000 --- a/llvm/projects/sample/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/sample -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/llvm/projects/sample/Makefile.common.in b/llvm/projects/sample/Makefile.common.in new file mode 100644 index 00000000000..55a4f984cff --- /dev/null +++ b/llvm/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 + diff --git a/llvm/projects/sample/Makefile.config b/llvm/projects/sample/Makefile.config deleted file mode 100644 index 1649978363c..00000000000 --- a/llvm/projects/sample/Makefile.config +++ /dev/null @@ -1,16 +0,0 @@ -# -# Set this variable to the top of the LLVM source tree. -# -LLVM_SRC_ROOT = $(LEVEL)/../.. - -# -# Set this variable to the top level directory where LLVM was built -# (i.e. where all of the object files are located). -# -#LLVM_OBJ_ROOT = $(LEVEL)/../.. - -# -# Include LLVM's Makefile Makefile. -# -include $(LLVM_SRC_ROOT)/Makefile.config - |