llvm.org GIT mirror llvm / caca6ea
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 John Criswell 15 years ago
3 changed file(s) with 28 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
+0
-23
projects/sample/Makefile.common less more
None #
1 # Configure the location of the LLVM object root. We know it is two
2 # directories up. The source tree location we do not know; let the LLVM
3 # Makefiles find it for us.
4 #
5 LLVM_OBJ_ROOT=$(LEVEL)/../..
6
7 #
8 # Grab the LLVM configuration file.
9 #
10 include $(LEVEL)/../../Makefile.config
11
12 #
13 # Reconfigure the source directories
14 #
15 BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/sample
16 BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
17
18 #
19 # Include LLVM's build rules.
20 #
21 include $(LLVM_SRC_ROOT)/Makefile.rules
22
0 #
1 # Set this variable to the top of the LLVM source tree.
2 #
3 LLVM_SRC_ROOT = @LLVM_SRC@
4
5 #
6 # Set this variable to the top level directory where LLVM was built
7 # (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
8 #
9 LLVM_OBJ_ROOT = @LLVM_OBJ@
10
11 #
12 # Include LLVM's Master Makefile.
13 #
14 include $(LLVM_OBJ_ROOT)/Makefile.config
15
16 #
17 # Set the source root and source directory pathnames
18 #
19 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
20
21 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
22
23 #
24 # Include LLVM's Master Makefile.
25 #
26 include $(LLVM_SRC_ROOT)/Makefile.rules
27
+0
-16
projects/sample/Makefile.config less more
None #
1 # Set this variable to the top of the LLVM source tree.
2 #
3 LLVM_SRC_ROOT = $(LEVEL)/../..
4
5 #
6 # Set this variable to the top level directory where LLVM was built
7 # (i.e. where all of the object files are located).
8 #
9 #LLVM_OBJ_ROOT = $(LEVEL)/../..
10
11 #
12 # Include LLVM's Makefile Makefile.
13 #
14 include $(LLVM_SRC_ROOT)/Makefile.config
15