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.
5 #===-----------------------------------------------------------------------====
8 # Target operating system for which LLVM will be compiled.
13 # Target hardware architecture
17 # Path to the C++ compiler to use. This is an optional setting, which defaults
18 # to whatever your gmake defaults to.
20 # Under Linux, for some reason the compiler driver wants to search the PATH to
21 # find the system assembler, which breaks if the LLVM assembler is in our path.
22 # Hack it to use the assembler in /usr/bin directly.
26 # We have the same problem with the CC binary, which use used by testcases for
32 # Compilation flags for the C and C++ compilers.
36 # Removing the compiler flags for now. They interfere with the test suite
37 # (which has its own autoconf stuff), and we don't use -DHAVE_CONFIG_H anyway.
44 # Removed since it prevents the tests from working properly.
49 # Libraries needed by tools
54 # Path to the archiver program.
59 # The pathnames of the Flex and Bison programs, respectively.
66 # Paths to miscellaneous programs.
72 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
80 # Determine the target for which LLVM should generate code.
82 LLVMGCCARCH := @target@/3.4-llvm
84 # Path to directory where object files should be stored during a build.
85 # Set OBJ_ROOT to "." if you do not want to use a separate place for
91 # Path to location for LLVM front-end this should only be specified here if you
92 # want to override the value set in Makefile.$(uname)
94 LLVMGCCDIR := @LLVMGCCDIR@
96 # When this setting is set to true, programs in the llvm/test/Programs hierarchy
97 # are not recompiled from source code. Instead, the bytecode for the file is
98 # pulled from the BYTECODE_REPOSITORY directory. This can be useful when disk
99 # space is limited or when you just don't want to spend time running the C
102 #USE_PRECOMPILED_BYTECODE := 1
105 # This path specifies the cannonical location of bytecode files for compiled
106 # versions of the test/Programs/* programs. This is used as the bytecode source
107 # when USE_PRECOMPILED_BYTECODE is specified or when source code is not
108 # available for the program (such as SPEC).
110 BYTECODE_REPOSITORY := @BCR@
114 # Set the USE_SPEC variable to enable the use of the SPEC benchmarks.
115 # You must provide the SPEC benchmarks on your own.
120 # Path to the SPEC benchmarks. If you have the SPEC benchmarks, place the
123 #SPEC_ROOT := /home/vadve/shared/benchmarks/speccpu2000/benchspec
124 SPEC_ROOT := @SPEC_ROOT@
127 # Path to the PAPI code. This is used by the reoptimizer only.
129 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
132 # These are options that can either be enabled here, or can be enabled on the
133 # make command line (ie, make ENABLE_PROFILING=1)
136 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
137 # turned on, and Debug builds are turned off.
139 #ENABLE_OPTIMIZED = 1
142 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
143 # information to allow gprof to be used to get execution frequencies.
145 #ENABLE_PROFILING = 1
148 # This option tells the Makefiles to produce verbose output.
149 # It essentially prints the commands that make is executing
154 # Enable JIT for this platform
159 # Disable LLC diffs for testing.
163 ###########################################################################
164 # Directory Configuration
165 # This section of the Makefile determines what is where. To be
166 # specific, there are several locations that need to be defined:
168 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
169 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
171 # o BUILD_SRC_DIR : The directory containing the code to build.
172 # o BUILD_SRC_ROOT : The root directory of the code to build.
174 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
175 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
177 ###########################################################################
180 # Set the object build directory. By default, it is the current directory.
183 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
187 # Set the root of the object directory.
189 ifndef BUILD_OBJ_ROOT
190 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
194 # Set the source build directory. That is almost always the current directory.
197 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
201 # Set the source root directory.
203 ifndef BUILD_SRC_ROOT
204 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
208 # Set the LLVM object directory.
212 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
214 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
219 # Set the LLVM source directory.
220 # It is typically the root directory of what we're compiling now.
223 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
227 # Set SourceDir for backwards compatbility.
230 SourceDir=$(BUILD_SRC_DIR)
233 # Installation directories, as provided by the configure script.
235 exec_prefix = @exec_prefix@
237 program_transform_name = @program_transform_name@
240 libexecdir = @libexecdir@
242 sysconfdir = @sysconfdir@
243 sharedstatedir = @sharedstatedir@
244 localstatedir = @localstatedir@
246 includedir = @includedir@
249 INSTALL_PROGRAM = @INSTALL_PROGRAM@
250 INSTALL_SCRIPT = @INSTALL_SCRIPT@
251 INSTALL_DATA = @INSTALL_DATA@