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
37 # Path to the Deja-Gnu runtest program
43 # Libraries needed by tools
46 # Path to the library archiver program.
49 # The pathnames of the programs we require to build
57 ETAGSFLAGS = @ETAGSFLAGS@
59 # Paths to miscellaneous programs we assume are present
64 MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
65 INSTALL_SH = $(BUILD_SRC_ROOT)/autoconf/install-sh
72 # Determine the target for which LLVM should generate code.
73 LLVMGCCARCH := @target@/3.4-llvm
75 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
77 LCC1XX = @LLVMCC1PLUS@
79 # Path to directory where object files should be stored during a build.
80 # Set OBJ_ROOT to "." if you do not want to use a separate place for
84 # Path to location for LLVM C/C++ front-end. You can modify this if you
85 # want to override the value set by configure.
86 LLVMGCCDIR := @LLVMGCCDIR@
88 # These are options that can either be enabled here, or can be enabled on the
89 # make command line (ie, make ENABLE_PROFILING=1):
91 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
92 # turned on, and Debug builds are turned off.
96 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
97 # information to allow gprof to be used to get execution frequencies.
100 # This option tells the Makefiles to produce verbose output.
101 # It essentially prints the commands that make is executing
104 # Enable JIT for this platform
107 # Shared library extension for this platform.
108 SHLIBEXT = @SHLIBEXT@
110 # Executable file extension for this platform.
113 ###########################################################################
114 # Directory Configuration
115 # This section of the Makefile determines what is where. To be
116 # specific, there are several locations that need to be defined:
118 # o LLVM_SRC_ROOT : The root directory of the LLVM source code.
119 # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
121 # o BUILD_SRC_DIR : The directory containing the code to build.
122 # o BUILD_SRC_ROOT : The root directory of the code to build.
124 # o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
125 # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
127 ###########################################################################
129 # Set the object build directory. By default, it is the current directory.
131 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
134 # Set the root of the object directory.
135 ifndef BUILD_OBJ_ROOT
136 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
139 # Set the source build directory. That is almost always the current directory.
141 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
144 # Set the source root directory.
145 ifndef BUILD_SRC_ROOT
146 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
149 # Set the LLVM object directory.
152 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
154 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
158 # Set the LLVM source directory.
159 # It is typically the root directory of what we're compiling now.
161 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
164 # Handle configured libraries
165 HAVE_BZIP2 := @HAVE_BZIP2@
166 HAVE_ZLIB := @HAVE_ZLIB@
168 # Installation directories, as provided by the configure script.
169 exec_prefix = @exec_prefix@
171 program_transform_name = @program_transform_name@
174 libexecdir = @libexecdir@
176 sysconfdir = @sysconfdir@
177 sharedstatedir = @sharedstatedir@
178 localstatedir = @localstatedir@
180 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
181 includedir = @includedir@
184 INSTALL_PROGRAM = @INSTALL_PROGRAM@
185 INSTALL_SCRIPT = @INSTALL_SCRIPT@
186 INSTALL_DATA = @INSTALL_DATA@
187 LLVM_TARBALL_NAME = @PACKAGE_NAME@-@PACKAGE_VERSION@