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.
65 # Paths to miscellaneous programs.
71 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
79 # Determine the target for which LLVM should generate code.
81 LLVMGCCARCH := @target@/3.4-llvm
83 # Path to directory where object files should be stored during a build.
84 # Set OBJ_ROOT to "." if you do not want to use a separate place for
90 # Path to location for LLVM front-end this should only be specified here if you
91 # want to override the value set in Makefile.$(uname)
93 LLVMGCCDIR := @LLVMGCCDIR@
95 # When this setting is set to true, programs in the llvm/test/Programs hierarchy
96 # are not recompiled from source code. Instead, the bytecode for the file is
97 # pulled from the BYTECODE_REPOSITORY directory. This can be useful when disk
98 # space is limited or when you just don't want to spend time running the C
101 #USE_PRECOMPILED_BYTECODE := 1
104 # This path specifies the cannonical location of bytecode files for compiled
105 # versions of the test/Programs/* programs. This is used as the bytecode source
106 # when USE_PRECOMPILED_BYTECODE is specified or when source code is not
107 # available for the program (such as SPEC).
109 BYTECODE_REPOSITORY := @BCR@
111 # Path to location for purify, this is only needed if you build with
118 # Set the USE_SPEC variable to enable the use of the SPEC benchmarks.
119 # You must provide the SPEC benchmarks on your own.
124 # Path to the SPEC benchmarks. If you have the SPEC benchmarks, place the
127 #SPEC_ROOT := /home/vadve/shared/benchmarks/speccpu2000/benchspec
128 SPEC_ROOT := @SPEC_ROOT@
131 # Path to the PAPI code. This is used by the reoptimizer only.
133 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
136 # These are options that can either be enabled here, or can be enabled on the
137 # make command line (ie, make ENABLE_PROFILING=1)
140 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
141 # turned on, and Debug builds are turned off.
143 #ENABLE_OPTIMIZED = 1
146 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
147 # information to allow gprof to be used to get execution frequencies.
149 #ENABLE_PROFILING = 1
152 # This option tells the Makefiles to produce verbose output.
153 # It essentially prints the commands that make is executing
157 # When ENABLE_PURIFY is set to 1, the LLVM tools are linked with purify (which
158 # must be locally installed) to allow for some automated memory error debugging.
164 # Enable JIT for this platform
169 # Disable LLC diffs for testing.
173 ###########################################################################
174 # Directory Configuration
175 # This section of the Makefile determines what is where. To be
176 # specific, there are several locations that need to be defined:
178 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
179 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
181 # o BUILD_SRC_DIR : The directory containing the code to build.
182 # o BUILD_SRC_ROOT : The root directory of the code to build.
184 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
185 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
187 ###########################################################################
190 # Set the object build directory. By default, it is the current directory.
193 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
197 # Set the root of the object directory.
199 ifndef BUILD_OBJ_ROOT
200 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
204 # Set the source build directory. That is almost always the current directory.
207 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
211 # Set the source root directory.
213 ifndef BUILD_SRC_ROOT
214 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
218 # Set the LLVM object directory.
222 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
224 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
229 # Set the LLVM source directory.
230 # It is typically the root directory of what we're compiling now.
233 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
237 # Set SourceDir for backwards compatbility.
240 SourceDir=$(BUILD_SRC_DIR)
243 # Installation directories, as provided by the configure script.
245 exec_prefix = @exec_prefix@
247 program_transform_name = @program_transform_name@
250 libexecdir = @libexecdir@
252 sysconfdir = @sysconfdir@
253 sharedstatedir = @sharedstatedir@
254 localstatedir = @localstatedir@
256 includedir = @includedir@
259 INSTALL_PROGRAM = @INSTALL_PROGRAM@
260 INSTALL_SCRIPT = @INSTALL_SCRIPT@
261 INSTALL_DATA = @INSTALL_DATA@