1 #===-- Makefile.config - Local configuration for LLVM ------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
10 # This file is included by Makefile.common. It defines paths and other
11 # values specific to a particular installation of LLVM.
13 #===------------------------------------------------------------------------===#
15 # Target operating system for which LLVM will be compiled.
18 # Target hardware architecture
21 # Endian-ness of the target
24 # Path to the C++ compiler to use. This is an optional setting, which defaults
25 # to whatever your gmake defaults to.
28 # Path to the CC binary, which use used by testcases for native builds.
34 # Libraries needed by tools
37 # Path to the library archiver program.
40 # The pathnames of the Flex and Bison programs, respectively.
45 # Paths to miscellaneous programs.
50 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
56 ETAGSFLAGS = @ETAGSFLAGS@
58 # Determine the target for which LLVM should generate code.
59 LLVMGCCARCH := @target@/3.4-llvm
61 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
63 LCC1XX = @LLVMCC1PLUS@
65 # Path to directory where object files should be stored during a build.
66 # Set OBJ_ROOT to "." if you do not want to use a separate place for
70 # Path to location for LLVM C/C++ front-end. You can modify this if you
71 # want to override the value set by configure.
72 LLVMGCCDIR := @LLVMGCCDIR@
74 # When this variable is set to 1, programs in the llvm/test/Programs hierarchy
75 # are not recompiled from source code. Instead, the bytecode for the file is
76 # pulled from the BYTECODE_REPOSITORY directory. This can be useful when disk
77 # space is limited or when you just don't want to spend time running the C
79 #USE_PRECOMPILED_BYTECODE := 1
82 # This path specifies the cannonical location of bytecode files for compiled
83 # versions of the test/Programs/* programs. This is used as the bytecode source
84 # when USE_PRECOMPILED_BYTECODE is specified or when source code is not
85 # available for the program (such as SPEC).
86 BYTECODE_REPOSITORY := @BCR@
89 # If these are set then run the SPEC benchmarks.
90 # You must provide the SPEC benchmarks on your own.
94 # Path to the SPEC benchmarks.
95 SPEC2000_ROOT := @SPEC2000_ROOT@
96 SPEC95_ROOT := @SPEC95_ROOT@
98 # Path to the Povray source code.
100 POVRAY_ROOT := @POVRAY_ROOT@
102 # Path to the PAPI code. This is used by the reoptimizer only.
103 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
106 # These are options that can either be enabled here, or can be enabled on the
107 # make command line (ie, make ENABLE_PROFILING=1):
109 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
110 # turned on, and Debug builds are turned off.
111 #ENABLE_OPTIMIZED = 1
114 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
115 # information to allow gprof to be used to get execution frequencies.
116 #ENABLE_PROFILING = 1
118 # This option tells the Makefiles to produce verbose output.
119 # It essentially prints the commands that make is executing
122 # Enable JIT for this platform
125 # Disable LLC diffs for testing.
128 # Shared library extension for this platform.
129 SHLIBEXT = @SHLIBEXT@
131 # Executable file extension for this platform.
134 ###########################################################################
135 # Directory Configuration
136 # This section of the Makefile determines what is where. To be
137 # specific, there are several locations that need to be defined:
139 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
140 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
142 # o BUILD_SRC_DIR : The directory containing the code to build.
143 # o BUILD_SRC_ROOT : The root directory of the code to build.
145 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
146 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
148 ###########################################################################
150 # Set the object build directory. By default, it is the current directory.
152 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
155 # Set the root of the object directory.
156 ifndef BUILD_OBJ_ROOT
157 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
160 # Set the source build directory. That is almost always the current directory.
162 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
165 # Set the source root directory.
166 ifndef BUILD_SRC_ROOT
167 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
170 # Set the LLVM object directory.
173 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
175 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
179 # Set the LLVM source directory.
180 # It is typically the root directory of what we're compiling now.
182 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
185 # Set SourceDir for backwards compatbility.
187 SourceDir=$(BUILD_SRC_DIR)
190 # Installation directories, as provided by the configure script.
191 exec_prefix = @exec_prefix@
193 program_transform_name = @program_transform_name@
196 libexecdir = @libexecdir@
198 sysconfdir = @sysconfdir@
199 sharedstatedir = @sharedstatedir@
200 localstatedir = @localstatedir@
202 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
203 includedir = @includedir@
206 INSTALL_PROGRAM = @INSTALL_PROGRAM@
207 INSTALL_SCRIPT = @INSTALL_SCRIPT@
208 INSTALL_DATA = @INSTALL_DATA@