1 #===-- Makefile.config - Local configuration for LLVM ------*- makefile -*--====
3 # This file is included by Makefile.common. It defines paths and other
4 # values specific to a particular installation of LLVM.
6 #===-----------------------------------------------------------------------====
8 # Target operating system for which LLVM will be compiled.
11 # Target hardware architecture
14 # Path to the C++ compiler to use. This is an optional setting, which defaults
15 # to whatever your gmake defaults to.
17 # Under Linux, for some reason the compiler driver wants to search the PATH to
18 # find the system assembler, which breaks if the LLVM assembler is in our path.
19 # Hack it to use the assembler in /usr/bin directly.
22 # We have the same problem with the CC binary, which use used by testcases for
29 # Libraries needed by tools
32 # Path to the library archiver program.
35 # The pathnames of the Flex and Bison programs, respectively.
40 # Paths to miscellaneous programs.
45 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
52 # Determine the target for which LLVM should generate code.
53 LLVMGCCARCH := @target@/3.4-llvm
55 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
57 LCC1XX = @LLVMCC1PLUS@
59 # Path to directory where object files should be stored during a build.
60 # Set OBJ_ROOT to "." if you do not want to use a separate place for
64 # Path to location for LLVM front-end this should only be specified here if you
65 # want to override the value set in Makefile.$(uname)
66 LLVMGCCDIR := @LLVMGCCDIR@
68 # When this variable is set to 1, programs in the llvm/test/Programs hierarchy
69 # are not recompiled from source code. Instead, the bytecode for the file is
70 # pulled from the BYTECODE_REPOSITORY directory. This can be useful when disk
71 # space is limited or when you just don't want to spend time running the C
73 #USE_PRECOMPILED_BYTECODE := 1
76 # This path specifies the cannonical location of bytecode files for compiled
77 # versions of the test/Programs/* programs. This is used as the bytecode source
78 # when USE_PRECOMPILED_BYTECODE is specified or when source code is not
79 # available for the program (such as SPEC).
80 BYTECODE_REPOSITORY := @BCR@
83 # Set the USE_SPEC variable to enable the use of the SPEC benchmarks.
84 # You must provide the SPEC benchmarks on your own.
87 # Path to the SPEC benchmarks. If you have the SPEC benchmarks, place the
89 #SPEC_ROOT := /home/vadve/shared/benchmarks/speccpu2000/benchspec
90 SPEC_ROOT := @SPEC_ROOT@
92 # Path to the PAPI code. This is used by the reoptimizer only.
93 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
96 # These are options that can either be enabled here, or can be enabled on the
97 # make command line (ie, make ENABLE_PROFILING=1):
99 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
100 # turned on, and Debug builds are turned off.
101 #ENABLE_OPTIMIZED = 1
104 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
105 # information to allow gprof to be used to get execution frequencies.
106 #ENABLE_PROFILING = 1
108 # This option tells the Makefiles to produce verbose output.
109 # It essentially prints the commands that make is executing
112 # Enable JIT for this platform
115 # Disable LLC diffs for testing.
118 ###########################################################################
119 # Directory Configuration
120 # This section of the Makefile determines what is where. To be
121 # specific, there are several locations that need to be defined:
123 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
124 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
126 # o BUILD_SRC_DIR : The directory containing the code to build.
127 # o BUILD_SRC_ROOT : The root directory of the code to build.
129 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
130 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
132 ###########################################################################
134 # Set the object build directory. By default, it is the current directory.
136 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
139 # Set the root of the object directory.
140 ifndef BUILD_OBJ_ROOT
141 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
144 # Set the source build directory. That is almost always the current directory.
146 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
149 # Set the source root directory.
150 ifndef BUILD_SRC_ROOT
151 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
154 # Set the LLVM object directory.
157 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
159 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
163 # Set the LLVM source directory.
164 # It is typically the root directory of what we're compiling now.
166 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
169 # Set SourceDir for backwards compatbility.
171 SourceDir=$(BUILD_SRC_DIR)
174 # Installation directories, as provided by the configure script.
175 exec_prefix = @exec_prefix@
177 program_transform_name = @program_transform_name@
180 libexecdir = @libexecdir@
182 sysconfdir = @sysconfdir@
183 sharedstatedir = @sharedstatedir@
184 localstatedir = @localstatedir@
186 includedir = @includedir@
189 INSTALL_PROGRAM = @INSTALL_PROGRAM@
190 INSTALL_SCRIPT = @INSTALL_SCRIPT@
191 INSTALL_DATA = @INSTALL_DATA@