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.
31 # Path to the Python interpreter
37 # Libraries needed by tools
40 # Path to the library archiver program.
43 # The pathnames of the programs we require to build
51 ETAGSFLAGS = @ETAGSFLAGS@
53 # Paths to miscellaneous programs we assume are present
58 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
59 INSTALL_SH = $(BUILD_SRC_ROOT)/autoconf/install-sh
66 # Determine the target for which LLVM should generate code.
67 LLVMGCCARCH := @target@/3.4-llvm
69 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
71 LCC1XX = @LLVMCC1PLUS@
73 # Path to directory where object files should be stored during a build.
74 # Set OBJ_ROOT to "." if you do not want to use a separate place for
78 # Path to location for LLVM C/C++ front-end. You can modify this if you
79 # want to override the value set by configure.
80 LLVMGCCDIR := @LLVMGCCDIR@
82 # These are options that can either be enabled here, or can be enabled on the
83 # make command line (ie, make ENABLE_PROFILING=1):
85 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
86 # turned on, and Debug builds are turned off.
90 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
91 # information to allow gprof to be used to get execution frequencies.
94 # This option tells the Makefiles to produce verbose output.
95 # It essentially prints the commands that make is executing
98 # Enable JIT for this platform
101 # Shared library extension for this platform.
102 SHLIBEXT = @SHLIBEXT@
104 # Executable file extension for this platform.
107 ###########################################################################
108 # Directory Configuration
109 # This section of the Makefile determines what is where. To be
110 # specific, there are several locations that need to be defined:
112 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
113 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
115 # o BUILD_SRC_DIR : The directory containing the code to build.
116 # o BUILD_SRC_ROOT : The root directory of the code to build.
118 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
119 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
121 ###########################################################################
123 # Set the object build directory. By default, it is the current directory.
125 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
128 # Set the root of the object directory.
129 ifndef BUILD_OBJ_ROOT
130 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
133 # Set the source build directory. That is almost always the current directory.
135 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
138 # Set the source root directory.
139 ifndef BUILD_SRC_ROOT
140 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
143 # Set the LLVM object directory.
146 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
148 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
152 # Set the LLVM source directory.
153 # It is typically the root directory of what we're compiling now.
155 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
158 # Handle configured libraries
159 HAVE_BZIP2 := @HAVE_BZIP2@
160 HAVE_ZLIB := @HAVE_ZLIB@
162 # Installation directories, as provided by the configure script.
163 exec_prefix = @exec_prefix@
165 program_transform_name = @program_transform_name@
168 libexecdir = @libexecdir@
170 sysconfdir = @sysconfdir@
171 sharedstatedir = @sharedstatedir@
172 localstatedir = @localstatedir@
174 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
175 includedir = @includedir@
178 INSTALL_PROGRAM = @INSTALL_PROGRAM@
179 INSTALL_SCRIPT = @INSTALL_SCRIPT@
180 INSTALL_DATA = @INSTALL_DATA@
181 LLVM_TARBALL_NAME = @PACKAGE_NAME@-@PACKAGE_VERSION@