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 # Target triple (cpu-vendor-os) for which we should generate code
22 TARGET_TRIPLE=@target@
24 # Endian-ness of the target
27 # Path to the C++ compiler to use. This is an optional setting, which defaults
28 # to whatever your gmake defaults to.
31 # Path to the CC binary, which use used by testcases for native builds.
34 # Path to the Python interpreter
40 # Libraries needed by tools
43 # Path to the library archiver program.
46 # The pathnames of the programs we require to build
54 ETAGSFLAGS = @ETAGSFLAGS@
56 # Paths to miscellaneous programs we assume are present
61 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
62 INSTALL_SH = $(BUILD_SRC_ROOT)/autoconf/install-sh
69 # Determine the target for which LLVM should generate code.
70 LLVMGCCARCH := @target@/3.4-llvm
72 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
74 LCC1XX = @LLVMCC1PLUS@
76 # Path to directory where object files should be stored during a build.
77 # Set OBJ_ROOT to "." if you do not want to use a separate place for
81 # Path to location for LLVM C/C++ front-end. You can modify this if you
82 # want to override the value set by configure.
83 LLVMGCCDIR := @LLVMGCCDIR@
85 # These are options that can either be enabled here, or can be enabled on the
86 # make command line (ie, make ENABLE_PROFILING=1):
88 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
89 # turned on, and Debug builds are turned off.
93 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
94 # information to allow gprof to be used to get execution frequencies.
97 # This option tells the Makefiles to produce verbose output.
98 # It essentially prints the commands that make is executing
101 # Enable JIT for this platform
104 # Shared library extension for this platform.
105 SHLIBEXT = @SHLIBEXT@
107 # Executable file extension for this platform.
110 ###########################################################################
111 # Directory Configuration
112 # This section of the Makefile determines what is where. To be
113 # specific, there are several locations that need to be defined:
115 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
116 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
118 # o BUILD_SRC_DIR : The directory containing the code to build.
119 # o BUILD_SRC_ROOT : The root directory of the code to build.
121 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
122 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
124 ###########################################################################
126 # Set the object build directory. By default, it is the current directory.
128 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
131 # Set the root of the object directory.
132 ifndef BUILD_OBJ_ROOT
133 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
136 # Set the source build directory. That is almost always the current directory.
138 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
141 # Set the source root directory.
142 ifndef BUILD_SRC_ROOT
143 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
146 # Set the LLVM object directory.
149 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
151 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
155 # Set the LLVM source directory.
156 # It is typically the root directory of what we're compiling now.
158 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
161 # Handle configured libraries
162 HAVE_BZIP2 := @HAVE_BZIP2@
163 HAVE_ZLIB := @HAVE_ZLIB@
165 # Installation directories, as provided by the configure script.
166 exec_prefix = @exec_prefix@
168 program_transform_name = @program_transform_name@
171 libexecdir = @libexecdir@
173 sysconfdir = @sysconfdir@
174 sharedstatedir = @sharedstatedir@
175 localstatedir = @localstatedir@
177 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
178 includedir = @includedir@
181 INSTALL_PROGRAM = @INSTALL_PROGRAM@
182 INSTALL_SCRIPT = @INSTALL_SCRIPT@
183 INSTALL_DATA = @INSTALL_DATA@
184 LLVM_TARBALL_NAME = @PACKAGE_NAME@-@PACKAGE_VERSION@