blob: f3197d104c0f0c71b36f069528ef4c3c49515b27 [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@
60DATE := @DATE@
61FIND := @FIND@
62FLEX := @LEX@
63GREP := @GREP@
64INSTALL := @INSTALL@
65INSTALL_SH := $(BUILD_SRC_ROOT)/autoconf/install-sh
66INSTALL_PROGRAM = @INSTALL_PROGRAM@
67INSTALL_SCRIPT = @INSTALL_SCRIPT@
68INSTALL_DATA = @INSTALL_DATA@
69MKDIR := @abs_top_srcdir@/autoconf/mkinstalldirs
70MV := @MV@
71PAX := @PAX@
72RANLIB := @RANLIB@
73RM := @RM@
74SED := @SED@
75TAR := @TAR@
76YACC := @YACC@
77
78# Paths to miscellaneous programs we hope are present but might not be
79BZIP2 := @BZIP2@
80DOT := @DOT@
81DOXYGEN := @DOXYGEN@
82ETAGS := @ETAGS@
83ETAGSFLAGS := @ETAGSFLAGS@
84GROFF := @GROFF@
85GZIP := @GZIP@
86POD2HTML := @POD2HTML@
87POD2MAN := @POD2MAN@
88PYTHON := @PYTHON@
89RUNTEST := @RUNTEST@
Reid Spencer0fcb9412004-11-30 08:11:54 +000090TCLSH := @TCLSH@
Reid Spencere1200212004-11-29 04:53:50 +000091ZIP := @ZIP@
John Criswell7a73b802003-06-30 21:59:07 +000092
Reid Spencer151f8ba2004-10-25 08:27:37 +000093# Paths to miscellaneous programs we assume are present
Reid Spencere1200212004-11-29 04:53:50 +000094RPWD := pwd
95ECHO := echo
John Criswell7a73b802003-06-30 21:59:07 +000096# Determine the target for which LLVM should generate code.
John Criswell7a73b802003-06-30 21:59:07 +000097LLVMGCCARCH := @target@/3.4-llvm
98
Brian Gaekef1dd2002004-01-16 21:31:34 +000099# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
100LCC1 = @LLVMCC1@
101LCC1XX = @LLVMCC1PLUS@
102
John Criswell7a73b802003-06-30 21:59:07 +0000103# Path to directory where object files should be stored during a build.
104# Set OBJ_ROOT to "." if you do not want to use a separate place for
105# object files.
John Criswell7f336952003-09-06 14:44:17 +0000106OBJ_ROOT := .
John Criswell7a73b802003-06-30 21:59:07 +0000107
Brian Gaekeb798b1e2004-03-10 17:37:50 +0000108# Path to location for LLVM C/C++ front-end. You can modify this if you
109# want to override the value set by configure.
John Criswell7a73b802003-06-30 21:59:07 +0000110LLVMGCCDIR := @LLVMGCCDIR@
111
John Criswell7a73b802003-06-30 21:59:07 +0000112# These are options that can either be enabled here, or can be enabled on the
Brian Gaekef1dd2002004-01-16 21:31:34 +0000113# make command line (ie, make ENABLE_PROFILING=1):
John Criswell7a73b802003-06-30 21:59:07 +0000114
115# When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
116# turned on, and Debug builds are turned off.
John Criswell7a73b802003-06-30 21:59:07 +0000117#ENABLE_OPTIMIZED = 1
118@ENABLE_OPTIMIZED@
119
120# When ENABLE_PROFILING is enabled, the llvm source base is built with profile
121# information to allow gprof to be used to get execution frequencies.
John Criswell7a73b802003-06-30 21:59:07 +0000122#ENABLE_PROFILING = 1
John Criswell7a73b802003-06-30 21:59:07 +0000123
Reid Spencere1200212004-11-29 04:53:50 +0000124# When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
125ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
126
Misha Brukmane9676502003-07-02 21:20:04 +0000127# This option tells the Makefiles to produce verbose output.
John Criswell7a73b802003-06-30 21:59:07 +0000128# It essentially prints the commands that make is executing
John Criswell7a73b802003-06-30 21:59:07 +0000129#VERBOSE = 1
John Criswell7a73b802003-06-30 21:59:07 +0000130
John Criswell7a73b802003-06-30 21:59:07 +0000131# Enable JIT for this platform
John Criswell7a73b802003-06-30 21:59:07 +0000132@JIT@
133
Brian Gaeke88aeace2004-01-21 19:39:07 +0000134# Shared library extension for this platform.
135SHLIBEXT = @SHLIBEXT@
136
John Criswelle6d468f2004-06-01 19:04:38 +0000137# Executable file extension for this platform.
138EXEEXT = @EXEEXT@
139
John Criswell7f336952003-09-06 14:44:17 +0000140###########################################################################
141# Directory Configuration
142# This section of the Makefile determines what is where. To be
143# specific, there are several locations that need to be defined:
144#
145# o LLVM_SRC_ROOT : The root directory of the LLVM source code.
146# o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
147#
148# o BUILD_SRC_DIR : The directory containing the code to build.
149# o BUILD_SRC_ROOT : The root directory of the code to build.
150#
151# o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
152# o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
153#
154###########################################################################
155
John Criswell7f336952003-09-06 14:44:17 +0000156# Set the object build directory. By default, it is the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000157ifndef BUILD_OBJ_DIR
158BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
159endif
160
John Criswell7f336952003-09-06 14:44:17 +0000161# Set the root of the object directory.
John Criswell7f336952003-09-06 14:44:17 +0000162ifndef BUILD_OBJ_ROOT
163BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
164endif
165
John Criswell7f336952003-09-06 14:44:17 +0000166# Set the source build directory. That is almost always the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000167ifndef BUILD_SRC_DIR
168BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
169endif
170
John Criswell7f336952003-09-06 14:44:17 +0000171# Set the source root directory.
John Criswell7f336952003-09-06 14:44:17 +0000172ifndef BUILD_SRC_ROOT
173BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
174endif
175
John Criswell7f336952003-09-06 14:44:17 +0000176# Set the LLVM object directory.
John Criswell7f336952003-09-06 14:44:17 +0000177ifndef LLVM_OBJ_ROOT
178ifdef LLVM_SRC_ROOT
179LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
180else
181LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
182endif
183endif
184
John Criswell7f336952003-09-06 14:44:17 +0000185# Set the LLVM source directory.
186# It is typically the root directory of what we're compiling now.
John Criswell7f336952003-09-06 14:44:17 +0000187ifndef LLVM_SRC_ROOT
188LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
189endif
190
Brian Gaeke5339ada2003-12-10 00:25:32 +0000191# Installation directories, as provided by the configure script.
Reid Spencere1200212004-11-29 04:53:50 +0000192abs_top_srcdir = @abs_top_srcdir@
193abs_top_builddir = @abs_top_builddir@
Brian Gaeke5339ada2003-12-10 00:25:32 +0000194exec_prefix = @exec_prefix@
195prefix = @prefix@
196program_transform_name = @program_transform_name@
197bindir = @bindir@
198sbindir = @sbindir@
199libexecdir = @libexecdir@
200datadir = @datadir@
201sysconfdir = @sysconfdir@
202sharedstatedir = @sharedstatedir@
203localstatedir = @localstatedir@
204libdir = @libdir@
Brian Gaeke8abff792004-01-22 22:53:48 +0000205bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
Brian Gaeke5339ada2003-12-10 00:25:32 +0000206includedir = @includedir@
207infodir = @infodir@
208mandir = @mandir@