blob: 3c8d59bd07d92ff0d040c7c85df968a813268e10 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#===-- Makefile.config - Local configuration for LLVM ------*- makefile -*--====
2#
3# This file is included by Makefile.common. It defines paths and other
4# values specific to a particular installation of LLVM.
Brian Gaekef1dd2002004-01-16 21:31:34 +00005#
John Criswell7a73b802003-06-30 21:59:07 +00006#===-----------------------------------------------------------------------====
7
John Criswell7a73b802003-06-30 21:59:07 +00008# Target operating system for which LLVM will be compiled.
John Criswell7a73b802003-06-30 21:59:07 +00009OS=@OS@
10
John Criswell76595452003-07-01 22:07:39 +000011# Target hardware architecture
John Criswell76595452003-07-01 22:07:39 +000012ARCH=@ARCH@
13
John Criswell0021c312004-02-13 21:57:29 +000014# Endian-ness of the target
15ENDIAN=@ENDIAN@
16
John Criswell7a73b802003-06-30 21:59:07 +000017# Path to the C++ compiler to use. This is an optional setting, which defaults
18# to whatever your gmake defaults to.
19#
20# Under Linux, for some reason the compiler driver wants to search the PATH to
21# find the system assembler, which breaks if the LLVM assembler is in our path.
22# Hack it to use the assembler in /usr/bin directly.
John Criswell7a73b802003-06-30 21:59:07 +000023CXX = @CXX@
24
25# We have the same problem with the CC binary, which use used by testcases for
26# native builds.
John Criswell7a73b802003-06-30 21:59:07 +000027CC := @CC@
28
Brian Gaekef1dd2002004-01-16 21:31:34 +000029# Linker flags.
John Criswellb812e762003-07-01 15:02:59 +000030LDFLAGS+=@LDFLAGS@
John Criswell49bf8622003-06-30 22:33:53 +000031
John Criswell7a73b802003-06-30 21:59:07 +000032# Libraries needed by tools
John Criswell7a73b802003-06-30 21:59:07 +000033TOOLLINKOPTS=@LIBS@
34
Brian Gaekef1dd2002004-01-16 21:31:34 +000035# Path to the library archiver program.
John Criswell7a73b802003-06-30 21:59:07 +000036AR_PATH = @AR@
37
John Criswell7a73b802003-06-30 21:59:07 +000038# The pathnames of the Flex and Bison programs, respectively.
John Criswellb8b80c42004-01-12 16:14:54 +000039YACC = @YACC@
40BISON = @BISON@
John Criswell7a73b802003-06-30 21:59:07 +000041FLEX = @LEX@
42
John Criswell7a73b802003-06-30 21:59:07 +000043# Paths to miscellaneous programs.
Brian Gaeke26be9c52004-01-13 06:43:16 +000044RPWD = pwd
45SED = sed
46RM = rm
47ECHO = echo
John Criswell0057e322003-07-22 19:17:35 +000048MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
Brian Gaeke26be9c52004-01-13 06:43:16 +000049DATE = date
50MV = mv
John Criswell7a73b802003-06-30 21:59:07 +000051INSTALL = @INSTALL@
52DOT = @DOT@
53ETAGS = @ETAGS@
Brian Gaekee0cec5d2004-01-22 21:55:01 +000054ETAGSFLAGS = @ETAGSFLAGS@
John Criswell7a73b802003-06-30 21:59:07 +000055
John Criswell7a73b802003-06-30 21:59:07 +000056# Determine the target for which LLVM should generate code.
John Criswell7a73b802003-06-30 21:59:07 +000057LLVMGCCARCH := @target@/3.4-llvm
58
Brian Gaekef1dd2002004-01-16 21:31:34 +000059# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
60LCC1 = @LLVMCC1@
61LCC1XX = @LLVMCC1PLUS@
62
John Criswell7a73b802003-06-30 21:59:07 +000063# Path to directory where object files should be stored during a build.
64# Set OBJ_ROOT to "." if you do not want to use a separate place for
65# object files.
John Criswell7f336952003-09-06 14:44:17 +000066OBJ_ROOT := .
John Criswell7a73b802003-06-30 21:59:07 +000067
Brian Gaekeb798b1e2004-03-10 17:37:50 +000068# Path to location for LLVM C/C++ front-end. You can modify this if you
69# want to override the value set by configure.
John Criswell7a73b802003-06-30 21:59:07 +000070LLVMGCCDIR := @LLVMGCCDIR@
71
Brian Gaekef1dd2002004-01-16 21:31:34 +000072# When this variable is set to 1, programs in the llvm/test/Programs hierarchy
John Criswell7a73b802003-06-30 21:59:07 +000073# are not recompiled from source code. Instead, the bytecode for the file is
74# pulled from the BYTECODE_REPOSITORY directory. This can be useful when disk
75# space is limited or when you just don't want to spend time running the C
76# frontend.
John Criswell7a73b802003-06-30 21:59:07 +000077#USE_PRECOMPILED_BYTECODE := 1
78@UPB@
79
80# This path specifies the cannonical location of bytecode files for compiled
81# versions of the test/Programs/* programs. This is used as the bytecode source
82# when USE_PRECOMPILED_BYTECODE is specified or when source code is not
83# available for the program (such as SPEC).
John Criswell7a73b802003-06-30 21:59:07 +000084BYTECODE_REPOSITORY := @BCR@
85
John Criswell7a73b802003-06-30 21:59:07 +000086# SPEC benchmarks:
Alkis Evlogimenos1e3aba12004-02-25 23:41:32 +000087# If these are set then run the SPEC benchmarks.
John Criswell7a73b802003-06-30 21:59:07 +000088# You must provide the SPEC benchmarks on your own.
Alkis Evlogimenos1e3aba12004-02-25 23:41:32 +000089@USE_SPEC2000@
John Criswellb607cc82004-02-10 22:29:06 +000090@USE_SPEC95@
John Criswell7a73b802003-06-30 21:59:07 +000091
Alkis Evlogimenos1e3aba12004-02-25 23:41:32 +000092# Path to the SPEC benchmarks.
Alkis Evlogimenosf3dd0db2004-02-25 23:47:17 +000093SPEC2000_ROOT := @SPEC2000_ROOT@
John Criswellb607cc82004-02-10 22:29:06 +000094SPEC95_ROOT := @SPEC95_ROOT@
John Criswell7a73b802003-06-30 21:59:07 +000095
John Criswellb9a131e2004-02-20 22:30:46 +000096# Path to the Povray source code.
97@USE_POVRAY@
98POVRAY_ROOT := @POVRAY_ROOT@
99
John Criswell7a73b802003-06-30 21:59:07 +0000100# Path to the PAPI code. This is used by the reoptimizer only.
John Criswell7a73b802003-06-30 21:59:07 +0000101#PAPIDIR := /home/vadve/shared/papi-2.3.4.1
102PAPIDIR := @PAPIDIR@
103
104# These are options that can either be enabled here, or can be enabled on the
Brian Gaekef1dd2002004-01-16 21:31:34 +0000105# make command line (ie, make ENABLE_PROFILING=1):
John Criswell7a73b802003-06-30 21:59:07 +0000106
107# When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
108# turned on, and Debug builds are turned off.
John Criswell7a73b802003-06-30 21:59:07 +0000109#ENABLE_OPTIMIZED = 1
110@ENABLE_OPTIMIZED@
111
112# When ENABLE_PROFILING is enabled, the llvm source base is built with profile
113# information to allow gprof to be used to get execution frequencies.
John Criswell7a73b802003-06-30 21:59:07 +0000114#ENABLE_PROFILING = 1
John Criswell7a73b802003-06-30 21:59:07 +0000115
Misha Brukmane9676502003-07-02 21:20:04 +0000116# This option tells the Makefiles to produce verbose output.
John Criswell7a73b802003-06-30 21:59:07 +0000117# It essentially prints the commands that make is executing
John Criswell7a73b802003-06-30 21:59:07 +0000118#VERBOSE = 1
John Criswell7a73b802003-06-30 21:59:07 +0000119
John Criswell7a73b802003-06-30 21:59:07 +0000120# Enable JIT for this platform
John Criswell7a73b802003-06-30 21:59:07 +0000121@JIT@
122
John Criswell7a73b802003-06-30 21:59:07 +0000123# Disable LLC diffs for testing.
John Criswell7a73b802003-06-30 21:59:07 +0000124@DISABLE_LLC_DIFFS@
125
Brian Gaeke88aeace2004-01-21 19:39:07 +0000126# Shared library extension for this platform.
127SHLIBEXT = @SHLIBEXT@
128
John Criswell7f336952003-09-06 14:44:17 +0000129###########################################################################
130# Directory Configuration
131# This section of the Makefile determines what is where. To be
132# specific, there are several locations that need to be defined:
133#
134# o LLVM_SRC_ROOT : The root directory of the LLVM source code.
135# o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
136#
137# o BUILD_SRC_DIR : The directory containing the code to build.
138# o BUILD_SRC_ROOT : The root directory of the code to build.
139#
140# o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
141# o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
142#
143###########################################################################
144
John Criswell7f336952003-09-06 14:44:17 +0000145# Set the object build directory. By default, it is the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000146ifndef BUILD_OBJ_DIR
147BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
148endif
149
John Criswell7f336952003-09-06 14:44:17 +0000150# Set the root of the object directory.
John Criswell7f336952003-09-06 14:44:17 +0000151ifndef BUILD_OBJ_ROOT
152BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
153endif
154
John Criswell7f336952003-09-06 14:44:17 +0000155# Set the source build directory. That is almost always the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000156ifndef BUILD_SRC_DIR
157BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
158endif
159
John Criswell7f336952003-09-06 14:44:17 +0000160# Set the source root directory.
John Criswell7f336952003-09-06 14:44:17 +0000161ifndef BUILD_SRC_ROOT
162BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
163endif
164
John Criswell7f336952003-09-06 14:44:17 +0000165# Set the LLVM object directory.
John Criswell7f336952003-09-06 14:44:17 +0000166ifndef LLVM_OBJ_ROOT
167ifdef LLVM_SRC_ROOT
168LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
169else
170LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
171endif
172endif
173
John Criswell7f336952003-09-06 14:44:17 +0000174# Set the LLVM source directory.
175# It is typically the root directory of what we're compiling now.
John Criswell7f336952003-09-06 14:44:17 +0000176ifndef LLVM_SRC_ROOT
177LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
178endif
179
John Criswell613758d2003-09-11 18:03:50 +0000180# Set SourceDir for backwards compatbility.
John Criswell613758d2003-09-11 18:03:50 +0000181ifndef SourceDir
182SourceDir=$(BUILD_SRC_DIR)
183endif
184
Brian Gaeke5339ada2003-12-10 00:25:32 +0000185# Installation directories, as provided by the configure script.
Brian Gaeke5339ada2003-12-10 00:25:32 +0000186exec_prefix = @exec_prefix@
187prefix = @prefix@
188program_transform_name = @program_transform_name@
189bindir = @bindir@
190sbindir = @sbindir@
191libexecdir = @libexecdir@
192datadir = @datadir@
193sysconfdir = @sysconfdir@
194sharedstatedir = @sharedstatedir@
195localstatedir = @localstatedir@
196libdir = @libdir@
Brian Gaeke8abff792004-01-22 22:53:48 +0000197bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
Brian Gaeke5339ada2003-12-10 00:25:32 +0000198includedir = @includedir@
199infodir = @infodir@
200mandir = @mandir@
201INSTALL_PROGRAM = @INSTALL_PROGRAM@
202INSTALL_SCRIPT = @INSTALL_SCRIPT@
203INSTALL_DATA = @INSTALL_DATA@
204