blob: aa36cda065fd6ab486034b9897703ce5dbb9b5a5 [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@
90ZIP := @ZIP@
John Criswell7a73b802003-06-30 21:59:07 +000091
Reid Spencer151f8ba2004-10-25 08:27:37 +000092# Paths to miscellaneous programs we assume are present
Reid Spencere1200212004-11-29 04:53:50 +000093RPWD := pwd
94ECHO := echo
John Criswell7a73b802003-06-30 21:59:07 +000095# Determine the target for which LLVM should generate code.
John Criswell7a73b802003-06-30 21:59:07 +000096LLVMGCCARCH := @target@/3.4-llvm
97
Brian Gaekef1dd2002004-01-16 21:31:34 +000098# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
99LCC1 = @LLVMCC1@
100LCC1XX = @LLVMCC1PLUS@
101
John Criswell7a73b802003-06-30 21:59:07 +0000102# Path to directory where object files should be stored during a build.
103# Set OBJ_ROOT to "." if you do not want to use a separate place for
104# object files.
John Criswell7f336952003-09-06 14:44:17 +0000105OBJ_ROOT := .
John Criswell7a73b802003-06-30 21:59:07 +0000106
Brian Gaekeb798b1e2004-03-10 17:37:50 +0000107# Path to location for LLVM C/C++ front-end. You can modify this if you
108# want to override the value set by configure.
John Criswell7a73b802003-06-30 21:59:07 +0000109LLVMGCCDIR := @LLVMGCCDIR@
110
John Criswell7a73b802003-06-30 21:59:07 +0000111# These are options that can either be enabled here, or can be enabled on the
Brian Gaekef1dd2002004-01-16 21:31:34 +0000112# make command line (ie, make ENABLE_PROFILING=1):
John Criswell7a73b802003-06-30 21:59:07 +0000113
114# When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
115# turned on, and Debug builds are turned off.
John Criswell7a73b802003-06-30 21:59:07 +0000116#ENABLE_OPTIMIZED = 1
117@ENABLE_OPTIMIZED@
118
119# When ENABLE_PROFILING is enabled, the llvm source base is built with profile
120# information to allow gprof to be used to get execution frequencies.
John Criswell7a73b802003-06-30 21:59:07 +0000121#ENABLE_PROFILING = 1
John Criswell7a73b802003-06-30 21:59:07 +0000122
Reid Spencere1200212004-11-29 04:53:50 +0000123# When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
124ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
125
Misha Brukmane9676502003-07-02 21:20:04 +0000126# This option tells the Makefiles to produce verbose output.
John Criswell7a73b802003-06-30 21:59:07 +0000127# It essentially prints the commands that make is executing
John Criswell7a73b802003-06-30 21:59:07 +0000128#VERBOSE = 1
John Criswell7a73b802003-06-30 21:59:07 +0000129
John Criswell7a73b802003-06-30 21:59:07 +0000130# Enable JIT for this platform
John Criswell7a73b802003-06-30 21:59:07 +0000131@JIT@
132
Brian Gaeke88aeace2004-01-21 19:39:07 +0000133# Shared library extension for this platform.
134SHLIBEXT = @SHLIBEXT@
135
John Criswelle6d468f2004-06-01 19:04:38 +0000136# Executable file extension for this platform.
137EXEEXT = @EXEEXT@
138
John Criswell7f336952003-09-06 14:44:17 +0000139###########################################################################
140# Directory Configuration
141# This section of the Makefile determines what is where. To be
142# specific, there are several locations that need to be defined:
143#
144# o LLVM_SRC_ROOT : The root directory of the LLVM source code.
145# o LLVM_OBJ_ROOT : The root directory containing the built LLVM code.
146#
147# o BUILD_SRC_DIR : The directory containing the code to build.
148# o BUILD_SRC_ROOT : The root directory of the code to build.
149#
150# o BUILD_OBJ_DIR : The directory in which compiled code will be placed.
151# o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
152#
153###########################################################################
154
John Criswell7f336952003-09-06 14:44:17 +0000155# Set the object build directory. By default, it is the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000156ifndef BUILD_OBJ_DIR
157BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
158endif
159
John Criswell7f336952003-09-06 14:44:17 +0000160# Set the root of the object directory.
John Criswell7f336952003-09-06 14:44:17 +0000161ifndef BUILD_OBJ_ROOT
162BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
163endif
164
John Criswell7f336952003-09-06 14:44:17 +0000165# Set the source build directory. That is almost always the current directory.
John Criswell7f336952003-09-06 14:44:17 +0000166ifndef BUILD_SRC_DIR
167BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
168endif
169
John Criswell7f336952003-09-06 14:44:17 +0000170# Set the source root directory.
John Criswell7f336952003-09-06 14:44:17 +0000171ifndef BUILD_SRC_ROOT
172BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
173endif
174
John Criswell7f336952003-09-06 14:44:17 +0000175# Set the LLVM object directory.
John Criswell7f336952003-09-06 14:44:17 +0000176ifndef LLVM_OBJ_ROOT
177ifdef LLVM_SRC_ROOT
178LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
179else
180LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
181endif
182endif
183
John Criswell7f336952003-09-06 14:44:17 +0000184# Set the LLVM source directory.
185# It is typically the root directory of what we're compiling now.
John Criswell7f336952003-09-06 14:44:17 +0000186ifndef LLVM_SRC_ROOT
187LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
188endif
189
Brian Gaeke5339ada2003-12-10 00:25:32 +0000190# Installation directories, as provided by the configure script.
Reid Spencere1200212004-11-29 04:53:50 +0000191abs_top_srcdir = @abs_top_srcdir@
192abs_top_builddir = @abs_top_builddir@
Brian Gaeke5339ada2003-12-10 00:25:32 +0000193exec_prefix = @exec_prefix@
194prefix = @prefix@
195program_transform_name = @program_transform_name@
196bindir = @bindir@
197sbindir = @sbindir@
198libexecdir = @libexecdir@
199datadir = @datadir@
200sysconfdir = @sysconfdir@
201sharedstatedir = @sharedstatedir@
202localstatedir = @localstatedir@
203libdir = @libdir@
Brian Gaeke8abff792004-01-22 22:53:48 +0000204bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
Brian Gaeke5339ada2003-12-10 00:25:32 +0000205includedir = @includedir@
206infodir = @infodir@
207mandir = @mandir@