blob: 8959a71afffe4b2c2dee3f833830131dd5ce08bc [file] [log] [blame]
Misha Brukman6d5ab862004-04-24 00:10:56 +00001#===-- Makefile.config - Local configuration for LLVM ------*- Makefile -*--===#
2#
3# The LLVM Compiler Infrastructure
4#
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.
7#
8#===------------------------------------------------------------------------===#
John Criswell7a73b802003-06-30 21:59:07 +00009#
10# This file is included by Makefile.common. It defines paths and other
11# values specific to a particular installation of LLVM.
Brian Gaekef1dd2002004-01-16 21:31:34 +000012#
Misha Brukman6d5ab862004-04-24 00:10:56 +000013#===------------------------------------------------------------------------===#
John Criswell7a73b802003-06-30 21:59:07 +000014
John Criswell7a73b802003-06-30 21:59:07 +000015# Target operating system for which LLVM will be compiled.
John Criswell7a73b802003-06-30 21:59:07 +000016OS=@OS@
17
John Criswell76595452003-07-01 22:07:39 +000018# Target hardware architecture
John Criswell76595452003-07-01 22:07:39 +000019ARCH=@ARCH@
20
John Criswell0021c312004-02-13 21:57:29 +000021# Endian-ness of the target
22ENDIAN=@ENDIAN@
23
John Criswell7a73b802003-06-30 21:59:07 +000024# Path to the C++ compiler to use. This is an optional setting, which defaults
25# to whatever your gmake defaults to.
John Criswell7a73b802003-06-30 21:59:07 +000026CXX = @CXX@
27
Misha Brukmanb5a2e402004-06-17 15:39:58 +000028# Path to the CC binary, which use used by testcases for native builds.
John Criswell7a73b802003-06-30 21:59:07 +000029CC := @CC@
30
John Criswell9b872872004-08-02 22:24:39 +000031# Path to the Python interpreter
32PYTHON := @PYTHON@
33
Brian Gaekef1dd2002004-01-16 21:31:34 +000034# Linker flags.
John Criswellb812e762003-07-01 15:02:59 +000035LDFLAGS+=@LDFLAGS@
John Criswell49bf8622003-06-30 22:33:53 +000036
John Criswell7a73b802003-06-30 21:59:07 +000037# Libraries needed by tools
John Criswell7a73b802003-06-30 21:59:07 +000038TOOLLINKOPTS=@LIBS@
39
Brian Gaekef1dd2002004-01-16 21:31:34 +000040# Path to the library archiver program.
John Criswell7a73b802003-06-30 21:59:07 +000041AR_PATH = @AR@
42
Reid Spencer151f8ba2004-10-25 08:27:37 +000043# The pathnames of the programs we require to build
44YACC = @YACC@
45BISON = @BISON@
46FLEX = @LEX@
47TAR = @TAR@
John Criswell7a73b802003-06-30 21:59:07 +000048INSTALL = @INSTALL@
49DOT = @DOT@
50ETAGS = @ETAGS@
Brian Gaekee0cec5d2004-01-22 21:55:01 +000051ETAGSFLAGS = @ETAGSFLAGS@
John Criswell7a73b802003-06-30 21:59:07 +000052
Reid Spencer151f8ba2004-10-25 08:27:37 +000053# Paths to miscellaneous programs we assume are present
54RPWD = pwd
55SED = sed
56RM = rm
57ECHO = echo "llvm["$(MAKELEVEL)"]:"
58MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
59INSTALL_SH = $(BUILD_SRC_ROOT)/autoconf/install-sh
60DATE = date
61MV = mv
62GZIP = gzip
63ZIP = zip
64BZIP2 = bzip2
65
John Criswell7a73b802003-06-30 21:59:07 +000066# Determine the target for which LLVM should generate code.
John Criswell7a73b802003-06-30 21:59:07 +000067LLVMGCCARCH := @target@/3.4-llvm
68
Brian Gaekef1dd2002004-01-16 21:31:34 +000069# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
70LCC1 = @LLVMCC1@
71LCC1XX = @LLVMCC1PLUS@
72
John Criswell7a73b802003-06-30 21:59:07 +000073# 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
75# object files.
John Criswell7f336952003-09-06 14:44:17 +000076OBJ_ROOT := .
John Criswell7a73b802003-06-30 21:59:07 +000077
Brian Gaekeb798b1e2004-03-10 17:37:50 +000078# Path to location for LLVM C/C++ front-end. You can modify this if you
79# want to override the value set by configure.
John Criswell7a73b802003-06-30 21:59:07 +000080LLVMGCCDIR := @LLVMGCCDIR@
81
John Criswell7a73b802003-06-30 21:59:07 +000082# These are options that can either be enabled here, or can be enabled on the
Brian Gaekef1dd2002004-01-16 21:31:34 +000083# make command line (ie, make ENABLE_PROFILING=1):
John Criswell7a73b802003-06-30 21:59:07 +000084
85# When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
86# turned on, and Debug builds are turned off.
John Criswell7a73b802003-06-30 21:59:07 +000087#ENABLE_OPTIMIZED = 1
88@ENABLE_OPTIMIZED@
89
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.
John Criswell7a73b802003-06-30 21:59:07 +000092#ENABLE_PROFILING = 1
John Criswell7a73b802003-06-30 21:59:07 +000093
Misha Brukmane9676502003-07-02 21:20:04 +000094# This option tells the Makefiles to produce verbose output.
John Criswell7a73b802003-06-30 21:59:07 +000095# It essentially prints the commands that make is executing
John Criswell7a73b802003-06-30 21:59:07 +000096#VERBOSE = 1
John Criswell7a73b802003-06-30 21:59:07 +000097
John Criswell7a73b802003-06-30 21:59:07 +000098# Enable JIT for this platform
John Criswell7a73b802003-06-30 21:59:07 +000099@JIT@
100
Brian Gaeke88aeace2004-01-21 19:39:07 +0000101# Shared library extension for this platform.
102SHLIBEXT = @SHLIBEXT@
103
John Criswelle6d468f2004-06-01 19:04:38 +0000104# Executable file extension for this platform.
105EXEEXT = @EXEEXT@
106
John Criswell7f336952003-09-06 14:44:17 +0000107###########################################################################
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:
111#
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.
114#
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.
117#
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.
120#
121###########################################################################
122
John Criswell7f336952003-09-06 14:44:17 +0000123# Set the object build directory. By default, it is the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000124ifndef BUILD_OBJ_DIR
125BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
126endif
127
John Criswell7f336952003-09-06 14:44:17 +0000128# Set the root of the object directory.
John Criswell7f336952003-09-06 14:44:17 +0000129ifndef BUILD_OBJ_ROOT
130BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
131endif
132
John Criswell7f336952003-09-06 14:44:17 +0000133# Set the source build directory. That is almost always the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000134ifndef BUILD_SRC_DIR
135BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
136endif
137
John Criswell7f336952003-09-06 14:44:17 +0000138# Set the source root directory.
John Criswell7f336952003-09-06 14:44:17 +0000139ifndef BUILD_SRC_ROOT
140BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
141endif
142
John Criswell7f336952003-09-06 14:44:17 +0000143# Set the LLVM object directory.
John Criswell7f336952003-09-06 14:44:17 +0000144ifndef LLVM_OBJ_ROOT
145ifdef LLVM_SRC_ROOT
146LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
147else
148LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
149endif
150endif
151
John Criswell7f336952003-09-06 14:44:17 +0000152# Set the LLVM source directory.
153# It is typically the root directory of what we're compiling now.
John Criswell7f336952003-09-06 14:44:17 +0000154ifndef LLVM_SRC_ROOT
155LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
156endif
157
Reid Spencer37130d22004-10-04 07:05:07 +0000158# Handle configured libraries
159HAVE_BZIP2 := @HAVE_BZIP2@
Reid Spencer94926f02004-10-04 17:49:19 +0000160HAVE_ZLIB := @HAVE_ZLIB@
Reid Spencer37130d22004-10-04 07:05:07 +0000161
Brian Gaeke5339ada2003-12-10 00:25:32 +0000162# Installation directories, as provided by the configure script.
Brian Gaeke5339ada2003-12-10 00:25:32 +0000163exec_prefix = @exec_prefix@
164prefix = @prefix@
165program_transform_name = @program_transform_name@
166bindir = @bindir@
167sbindir = @sbindir@
168libexecdir = @libexecdir@
169datadir = @datadir@
170sysconfdir = @sysconfdir@
171sharedstatedir = @sharedstatedir@
172localstatedir = @localstatedir@
173libdir = @libdir@
Brian Gaeke8abff792004-01-22 22:53:48 +0000174bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
Brian Gaeke5339ada2003-12-10 00:25:32 +0000175includedir = @includedir@
176infodir = @infodir@
177mandir = @mandir@
178INSTALL_PROGRAM = @INSTALL_PROGRAM@
179INSTALL_SCRIPT = @INSTALL_SCRIPT@
180INSTALL_DATA = @INSTALL_DATA@
Reid Spencer151f8ba2004-10-25 08:27:37 +0000181LLVM_TARBALL_NAME = @PACKAGE_NAME@-@PACKAGE_VERSION@
Brian Gaeke5339ada2003-12-10 00:25:32 +0000182