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 # Endian-ness of the target
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.
25 # We have the same problem with the CC binary, which use used by testcases for
32 # Libraries needed by tools
35 # Path to the library archiver program.
38 # The pathnames of the Flex and Bison programs, respectively.
43 # Paths to miscellaneous programs.
48 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
54 ETAGSFLAGS = @ETAGSFLAGS@
56 # Determine the target for which LLVM should generate code.
57 LLVMGCCARCH := @target@/3.4-llvm
59 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
61 LCC1XX = @LLVMCC1PLUS@
63 # Path to directory where object files should be stored during a build.
64 # Set OBJ_ROOT to "." if you do not want to use a separate place for
68 # Path to location for LLVM C/C++ front-end. You can modify this if you
69 # want to override the value set by configure.
70 LLVMGCCDIR := @LLVMGCCDIR@
72 # When this variable is set to 1, programs in the llvm/test/Programs hierarchy
73 # are not recompiled from source code. Instead, the bytecode for the file is
74 # pulled from the BYTECODE_REPOSITORY directory. This can be useful when disk
75 # space is limited or when you just don't want to spend time running the C
77 #USE_PRECOMPILED_BYTECODE := 1
80 # This path specifies the cannonical location of bytecode files for compiled
81 # versions of the test/Programs/* programs. This is used as the bytecode source
82 # when USE_PRECOMPILED_BYTECODE is specified or when source code is not
83 # available for the program (such as SPEC).
84 BYTECODE_REPOSITORY := @BCR@
87 # If these are set then run the SPEC benchmarks.
88 # You must provide the SPEC benchmarks on your own.
92 # Path to the SPEC benchmarks.
93 SPEC2000_ROOT := @SPEC2000_ROOT@
94 SPEC95_ROOT := @SPEC95_ROOT@
96 # Path to the Povray source code.
98 POVRAY_ROOT := @POVRAY_ROOT@
100 # Path to the PAPI code. This is used by the reoptimizer only.
101 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
104 # These are options that can either be enabled here, or can be enabled on the
105 # make command line (ie, make ENABLE_PROFILING=1):
107 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
108 # turned on, and Debug builds are turned off.
109 #ENABLE_OPTIMIZED = 1
112 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
113 # information to allow gprof to be used to get execution frequencies.
114 #ENABLE_PROFILING = 1
116 # This option tells the Makefiles to produce verbose output.
117 # It essentially prints the commands that make is executing
120 # Enable JIT for this platform
123 # Disable LLC diffs for testing.
126 # Shared library extension for this platform.
127 SHLIBEXT = @SHLIBEXT@
129 ###########################################################################
130 # Directory Configuration
131 # This section of the Makefile determines what is where. To be
132 # specific, there are several locations that need to be defined:
134 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
135 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
137 # o BUILD_SRC_DIR : The directory containing the code to build.
138 # o BUILD_SRC_ROOT : The root directory of the code to build.
140 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
141 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
143 ###########################################################################
145 # Set the object build directory. By default, it is the current directory.
147 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
150 # Set the root of the object directory.
151 ifndef BUILD_OBJ_ROOT
152 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
155 # Set the source build directory. That is almost always the current directory.
157 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
160 # Set the source root directory.
161 ifndef BUILD_SRC_ROOT
162 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
165 # Set the LLVM object directory.
168 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
170 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
174 # Set the LLVM source directory.
175 # It is typically the root directory of what we're compiling now.
177 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
180 # Set SourceDir for backwards compatbility.
182 SourceDir=$(BUILD_SRC_DIR)
185 # Installation directories, as provided by the configure script.
186 exec_prefix = @exec_prefix@
188 program_transform_name = @program_transform_name@
191 libexecdir = @libexecdir@
193 sysconfdir = @sysconfdir@
194 sharedstatedir = @sharedstatedir@
195 localstatedir = @localstatedir@
197 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
198 includedir = @includedir@
201 INSTALL_PROGRAM = @INSTALL_PROGRAM@
202 INSTALL_SCRIPT = @INSTALL_SCRIPT@
203 INSTALL_DATA = @INSTALL_DATA@