blob: 9f6215c5065c7ff07b9d3191e76b3286f8af9da1 [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
John Criswell7a73b802003-06-30 21:59:07 +000097# Determine the target for which LLVM should generate code.
John Criswell7a73b802003-06-30 21:59:07 +000098LLVMGCCARCH := @target@/3.4-llvm
99
Brian Gaekef1dd2002004-01-16 21:31:34 +0000100# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
101LCC1 = @LLVMCC1@
102LCC1XX = @LLVMCC1PLUS@
103
John Criswell7a73b802003-06-30 21:59:07 +0000104# Path to directory where object files should be stored during a build.
105# Set OBJ_ROOT to "." if you do not want to use a separate place for
106# object files.
John Criswell7f336952003-09-06 14:44:17 +0000107OBJ_ROOT := .
John Criswell7a73b802003-06-30 21:59:07 +0000108
Brian Gaekeb798b1e2004-03-10 17:37:50 +0000109# Path to location for LLVM C/C++ front-end. You can modify this if you
110# want to override the value set by configure.
John Criswell7a73b802003-06-30 21:59:07 +0000111LLVMGCCDIR := @LLVMGCCDIR@
112
John Criswell7a73b802003-06-30 21:59:07 +0000113# These are options that can either be enabled here, or can be enabled on the
Brian Gaekef1dd2002004-01-16 21:31:34 +0000114# make command line (ie, make ENABLE_PROFILING=1):
John Criswell7a73b802003-06-30 21:59:07 +0000115
116# When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
117# turned on, and Debug builds are turned off.
John Criswell7a73b802003-06-30 21:59:07 +0000118#ENABLE_OPTIMIZED = 1
119@ENABLE_OPTIMIZED@
120
121# When ENABLE_PROFILING is enabled, the llvm source base is built with profile
122# information to allow gprof to be used to get execution frequencies.
John Criswell7a73b802003-06-30 21:59:07 +0000123#ENABLE_PROFILING = 1
John Criswell7a73b802003-06-30 21:59:07 +0000124
Reid Spencere1200212004-11-29 04:53:50 +0000125# When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
126ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
127
Misha Brukmane9676502003-07-02 21:20:04 +0000128# This option tells the Makefiles to produce verbose output.
John Criswell7a73b802003-06-30 21:59:07 +0000129# It essentially prints the commands that make is executing
John Criswell7a73b802003-06-30 21:59:07 +0000130#VERBOSE = 1
John Criswell7a73b802003-06-30 21:59:07 +0000131
John Criswell7a73b802003-06-30 21:59:07 +0000132# Enable JIT for this platform
John Criswell7a73b802003-06-30 21:59:07 +0000133@JIT@
134
Brian Gaeke88aeace2004-01-21 19:39:07 +0000135# Shared library extension for this platform.
136SHLIBEXT = @SHLIBEXT@
137
John Criswelle6d468f2004-06-01 19:04:38 +0000138# Executable file extension for this platform.
139EXEEXT = @EXEEXT@
140
John Criswell7f336952003-09-06 14:44:17 +0000141###########################################################################
142# Directory Configuration
143# This section of the Makefile determines what is where. To be
144# specific, there are several locations that need to be defined:
145#
146# o LLVM_SRC_ROOT : The root directory of the LLVM source code.
147# o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
148#
149# o BUILD_SRC_DIR : The directory containing the code to build.
150# o BUILD_SRC_ROOT : The root directory of the code to build.
151#
152# o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
153# o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
154#
155###########################################################################
156
John Criswell7f336952003-09-06 14:44:17 +0000157# Set the object build directory. By default, it is the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000158ifndef BUILD_OBJ_DIR
159BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
160endif
161
John Criswell7f336952003-09-06 14:44:17 +0000162# Set the root of the object directory.
John Criswell7f336952003-09-06 14:44:17 +0000163ifndef BUILD_OBJ_ROOT
164BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
165endif
166
John Criswell7f336952003-09-06 14:44:17 +0000167# Set the source build directory. That is almost always the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000168ifndef BUILD_SRC_DIR
169BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
170endif
171
John Criswell7f336952003-09-06 14:44:17 +0000172# Set the source root directory.
John Criswell7f336952003-09-06 14:44:17 +0000173ifndef BUILD_SRC_ROOT
174BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
175endif
176
John Criswell7f336952003-09-06 14:44:17 +0000177# Set the LLVM object directory.
John Criswell7f336952003-09-06 14:44:17 +0000178ifndef LLVM_OBJ_ROOT
179ifdef LLVM_SRC_ROOT
180LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
181else
182LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
183endif
184endif
185
John Criswell7f336952003-09-06 14:44:17 +0000186# Set the LLVM source directory.
187# It is typically the root directory of what we're compiling now.
John Criswell7f336952003-09-06 14:44:17 +0000188ifndef LLVM_SRC_ROOT
189LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
190endif
191
Brian Gaeke5339ada2003-12-10 00:25:32 +0000192# Installation directories, as provided by the configure script.
Reid Spencere1200212004-11-29 04:53:50 +0000193abs_top_srcdir = @abs_top_srcdir@
194abs_top_builddir = @abs_top_builddir@
Brian Gaeke5339ada2003-12-10 00:25:32 +0000195exec_prefix = @exec_prefix@
196prefix = @prefix@
197program_transform_name = @program_transform_name@
198bindir = @bindir@
199sbindir = @sbindir@
200libexecdir = @libexecdir@
201datadir = @datadir@
202sysconfdir = @sysconfdir@
203sharedstatedir = @sharedstatedir@
204localstatedir = @localstatedir@
205libdir = @libdir@
Reid Spencer60edb3b2004-12-13 07:38:55 +0000206cferuntime_libdir = $(LLVMGCCDIR)/lib
Brian Gaeke5339ada2003-12-10 00:25:32 +0000207includedir = @includedir@
208infodir = @infodir@
209mandir = @mandir@