blob: ee77f879c5d1aeaae34b21d7ece5780cb131991f [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
Reid Spencere1200212004-11-29 04:53:50 +000015# Define LLVM speific info and directories
16PACKAGE_NAME := @PACKAGE_NAME@
17PACKAGE_VERSION := @PACKAGE_VERSION@
18LLVM_PREFIX := @LLVM_PREFIX@
19LLVM_BINDIR := @LLVM_BINDIR@
20LLVM_LIBDIR := @LLVM_LIBDIR@
21LLVM_DATADIR := @LLVM_DATADIR@
22LLVM_DOCSDIR := @LLVM_DOCSDIR@
23LLVM_ETCDIR := @LLVM_ETCDIR@
24LLVM_INCLUDEDIR := @LLVM_INCLUDEDIR@
25LLVM_INFODIR := @LLVM_INFODIR@
26LLVM_MANDIR := @LLVM_MANDIR@
27LLVM_CONFIGTIME := @LLVM_CONFIGTIME@
28LLVM_TARBALL_NAME := @PACKAGE_NAME@-@PACKAGE_VERSION@
29
John Criswell7a73b802003-06-30 21:59:07 +000030# Target operating system for which LLVM will be compiled.
John Criswell7a73b802003-06-30 21:59:07 +000031OS=@OS@
32
John Criswell76595452003-07-01 22:07:39 +000033# Target hardware architecture
John Criswell76595452003-07-01 22:07:39 +000034ARCH=@ARCH@
35
Reid Spencer18224032004-11-07 19:12:53 +000036# Target triple (cpu-vendor-os) for which we should generate code
37TARGET_TRIPLE=@target@
38
John Criswell0021c312004-02-13 21:57:29 +000039# Endian-ness of the target
40ENDIAN=@ENDIAN@
41
John Criswell7a73b802003-06-30 21:59:07 +000042# Path to the C++ compiler to use. This is an optional setting, which defaults
43# to whatever your gmake defaults to.
John Criswell7a73b802003-06-30 21:59:07 +000044CXX = @CXX@
45
Misha Brukmanb5a2e402004-06-17 15:39:58 +000046# Path to the CC binary, which use used by testcases for native builds.
John Criswell7a73b802003-06-30 21:59:07 +000047CC := @CC@
48
Brian Gaekef1dd2002004-01-16 21:31:34 +000049# Linker flags.
John Criswellb812e762003-07-01 15:02:59 +000050LDFLAGS+=@LDFLAGS@
John Criswell49bf8622003-06-30 22:33:53 +000051
John Criswell7a73b802003-06-30 21:59:07 +000052# Libraries needed by tools
John Criswell7a73b802003-06-30 21:59:07 +000053TOOLLINKOPTS=@LIBS@
54
Brian Gaekef1dd2002004-01-16 21:31:34 +000055# Path to the library archiver program.
John Criswell7a73b802003-06-30 21:59:07 +000056AR_PATH = @AR@
57
Reid Spencer151f8ba2004-10-25 08:27:37 +000058# The pathnames of the programs we require to build
Reid Spencere1200212004-11-29 04:53:50 +000059BISON := @BISON@
Reid Spencer8a2d4712004-12-16 17:48:14 +000060CMP := @CMP@
61CP := @CP@
Reid Spencere1200212004-11-29 04:53:50 +000062DATE := @DATE@
63FIND := @FIND@
64FLEX := @LEX@
65GREP := @GREP@
66INSTALL := @INSTALL@
67INSTALL_SH := $(BUILD_SRC_ROOT)/autoconf/install-sh
68INSTALL_PROGRAM = @INSTALL_PROGRAM@
69INSTALL_SCRIPT = @INSTALL_SCRIPT@
70INSTALL_DATA = @INSTALL_DATA@
71MKDIR := @abs_top_srcdir@/autoconf/mkinstalldirs
72MV := @MV@
73PAX := @PAX@
74RANLIB := @RANLIB@
75RM := @RM@
76SED := @SED@
77TAR := @TAR@
78YACC := @YACC@
79
80# Paths to miscellaneous programs we hope are present but might not be
81BZIP2 := @BZIP2@
82DOT := @DOT@
83DOXYGEN := @DOXYGEN@
84ETAGS := @ETAGS@
85ETAGSFLAGS := @ETAGSFLAGS@
86GROFF := @GROFF@
87GZIP := @GZIP@
88POD2HTML := @POD2HTML@
89POD2MAN := @POD2MAN@
Reid Spencere1200212004-11-29 04:53:50 +000090RUNTEST := @RUNTEST@
Reid Spencer0fcb9412004-11-30 08:11:54 +000091TCLSH := @TCLSH@
Reid Spencere1200212004-11-29 04:53:50 +000092ZIP := @ZIP@
John Criswell7a73b802003-06-30 21:59:07 +000093
Reid Spencer151f8ba2004-10-25 08:27:37 +000094# Paths to miscellaneous programs we assume are present
Reid Spencere1200212004-11-29 04:53:50 +000095RPWD := pwd
96ECHO := echo
Reid Spencer79080352004-12-22 05:57:09 +000097
98# Path to location for LLVM C/C++ front-end. You can modify this if you
99# want to override the value set by configure.
100LLVMGCCDIR := @LLVMGCCDIR@
101
John Criswell7a73b802003-06-30 21:59:07 +0000102# Determine the target for which LLVM should generate code.
John Criswell7a73b802003-06-30 21:59:07 +0000103LLVMGCCARCH := @target@/3.4-llvm
104
Brian Gaekef1dd2002004-01-16 21:31:34 +0000105# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
Reid Spencer79080352004-12-22 05:57:09 +0000106LLVMGCC := @LLVMGCC@
107LLVMGXX := @LLVMGXX@
108LLVMCC1 := @LLVMCC1@
109LLVMCC1PLUS := @LLVMCC1PLUS@
Brian Gaekef1dd2002004-01-16 21:31:34 +0000110
John Criswell7a73b802003-06-30 21:59:07 +0000111# Path to directory where object files should be stored during a build.
112# Set OBJ_ROOT to "." if you do not want to use a separate place for
113# object files.
John Criswell7f336952003-09-06 14:44:17 +0000114OBJ_ROOT := .
John Criswell7a73b802003-06-30 21:59:07 +0000115
John Criswell7a73b802003-06-30 21:59:07 +0000116# These are options that can either be enabled here, or can be enabled on the
Brian Gaekef1dd2002004-01-16 21:31:34 +0000117# make command line (ie, make ENABLE_PROFILING=1):
John Criswell7a73b802003-06-30 21:59:07 +0000118
119# When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
120# turned on, and Debug builds are turned off.
John Criswell7a73b802003-06-30 21:59:07 +0000121#ENABLE_OPTIMIZED = 1
122@ENABLE_OPTIMIZED@
123
124# When ENABLE_PROFILING is enabled, the llvm source base is built with profile
125# information to allow gprof to be used to get execution frequencies.
John Criswell7a73b802003-06-30 21:59:07 +0000126#ENABLE_PROFILING = 1
John Criswell7a73b802003-06-30 21:59:07 +0000127
Reid Spencere1200212004-11-29 04:53:50 +0000128# When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
129ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
130
Misha Brukmane9676502003-07-02 21:20:04 +0000131# This option tells the Makefiles to produce verbose output.
John Criswell7a73b802003-06-30 21:59:07 +0000132# It essentially prints the commands that make is executing
John Criswell7a73b802003-06-30 21:59:07 +0000133#VERBOSE = 1
John Criswell7a73b802003-06-30 21:59:07 +0000134
John Criswell7a73b802003-06-30 21:59:07 +0000135# Enable JIT for this platform
John Criswell7a73b802003-06-30 21:59:07 +0000136@JIT@
137
Brian Gaeke88aeace2004-01-21 19:39:07 +0000138# Shared library extension for this platform.
139SHLIBEXT = @SHLIBEXT@
140
John Criswelle6d468f2004-06-01 19:04:38 +0000141# Executable file extension for this platform.
142EXEEXT = @EXEEXT@
143
John Criswell7f336952003-09-06 14:44:17 +0000144###########################################################################
145# Directory Configuration
146# This section of the Makefile determines what is where. To be
147# specific, there are several locations that need to be defined:
148#
149# o LLVM_SRC_ROOT : The root directory of the LLVM source code.
150# o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
151#
152# o BUILD_SRC_DIR : The directory containing the code to build.
153# o BUILD_SRC_ROOT : The root directory of the code to build.
154#
155# o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
156# o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
157#
158###########################################################################
159
John Criswell7f336952003-09-06 14:44:17 +0000160# Set the object build directory. By default, it is the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000161ifndef BUILD_OBJ_DIR
162BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
163endif
164
John Criswell7f336952003-09-06 14:44:17 +0000165# Set the root of the object directory.
John Criswell7f336952003-09-06 14:44:17 +0000166ifndef BUILD_OBJ_ROOT
167BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
168endif
169
John Criswell7f336952003-09-06 14:44:17 +0000170# Set the source build directory. That is almost always the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000171ifndef BUILD_SRC_DIR
172BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
173endif
174
John Criswell7f336952003-09-06 14:44:17 +0000175# Set the source root directory.
John Criswell7f336952003-09-06 14:44:17 +0000176ifndef BUILD_SRC_ROOT
177BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
178endif
179
John Criswell7f336952003-09-06 14:44:17 +0000180# Set the LLVM object directory.
John Criswell7f336952003-09-06 14:44:17 +0000181ifndef LLVM_OBJ_ROOT
182ifdef LLVM_SRC_ROOT
183LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
184else
185LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
186endif
187endif
188
John Criswell7f336952003-09-06 14:44:17 +0000189# Set the LLVM source directory.
190# It is typically the root directory of what we're compiling now.
John Criswell7f336952003-09-06 14:44:17 +0000191ifndef LLVM_SRC_ROOT
192LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
193endif
194
Brian Gaeke5339ada2003-12-10 00:25:32 +0000195# Installation directories, as provided by the configure script.
Reid Spencere1200212004-11-29 04:53:50 +0000196abs_top_srcdir = @abs_top_srcdir@
197abs_top_builddir = @abs_top_builddir@
Brian Gaeke5339ada2003-12-10 00:25:32 +0000198exec_prefix = @exec_prefix@
199prefix = @prefix@
200program_transform_name = @program_transform_name@
201bindir = @bindir@
202sbindir = @sbindir@
203libexecdir = @libexecdir@
204datadir = @datadir@
205sysconfdir = @sysconfdir@
206sharedstatedir = @sharedstatedir@
207localstatedir = @localstatedir@
208libdir = @libdir@
209includedir = @includedir@
210infodir = @infodir@
211mandir = @mandir@