Add a note about registering the backend so it's available in LLC and LLI
[oota-llvm.git] / Makefile.config.in
1 #===-- 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 #===------------------------------------------------------------------------===#
9 #
10 # This file is included by Makefile.common.  It defines paths and other
11 # values specific to a particular installation of LLVM.
12 #
13 #===------------------------------------------------------------------------===#
14
15 # Define LLVM speific info and directories
16 PACKAGE_NAME      := @PACKAGE_NAME@
17 PACKAGE_VERSION   := @PACKAGE_VERSION@
18 LLVM_PREFIX       := @LLVM_PREFIX@
19 LLVM_BINDIR       := @LLVM_BINDIR@
20 LLVM_LIBDIR       := @LLVM_LIBDIR@
21 LLVM_DATADIR      := @LLVM_DATADIR@
22 LLVM_DOCSDIR      := @LLVM_DOCSDIR@
23 LLVM_ETCDIR       := @LLVM_ETCDIR@
24 LLVM_INCLUDEDIR   := @LLVM_INCLUDEDIR@
25 LLVM_INFODIR      := @LLVM_INFODIR@
26 LLVM_MANDIR       := @LLVM_MANDIR@
27 LLVM_CONFIGTIME   := @LLVM_CONFIGTIME@
28 LLVM_TARBALL_NAME := @PACKAGE_NAME@-@PACKAGE_VERSION@
29
30 # Target operating system for which LLVM will be compiled.
31 OS=@OS@
32
33 # Target hardware architecture
34 ARCH=@ARCH@
35
36 # Target triple (cpu-vendor-os) for which we should generate code
37 TARGET_TRIPLE=@target@
38
39 # Endian-ness of the target
40 ENDIAN=@ENDIAN@
41
42 # Path to the C++ compiler to use.  This is an optional setting, which defaults
43 # to whatever your gmake defaults to.
44 CXX = @CXX@
45
46 # Path to the CC binary, which use used by testcases for native builds.
47 CC := @CC@
48
49 # Linker flags.
50 LDFLAGS+=@LDFLAGS@
51
52 # Libraries needed by tools
53 TOOLLINKOPTS=@LIBS@
54
55 # Path to the library archiver program.
56 AR_PATH = @AR@
57
58 # The pathnames of the programs we require to build
59 BISON      := @BISON@
60 CMP        := @CMP@
61 CP         := @CP@
62 DATE       := @DATE@
63 FIND       := @FIND@
64 FLEX       := @LEX@
65 GREP       := @GREP@
66 INSTALL    := @INSTALL@
67 INSTALL_SH := $(BUILD_SRC_ROOT)/autoconf/install-sh
68 INSTALL_PROGRAM = @INSTALL_PROGRAM@
69 INSTALL_SCRIPT = @INSTALL_SCRIPT@
70 INSTALL_DATA = @INSTALL_DATA@
71 MKDIR      := @abs_top_srcdir@/autoconf/mkinstalldirs
72 MV         := @MV@
73 PAX        := @PAX@
74 RANLIB     := @RANLIB@
75 RM         := @RM@
76 SED        := @SED@
77 TAR        := @TAR@
78 YACC       := @YACC@
79
80 # Paths to miscellaneous programs we hope are present but might not be
81 BZIP2      := @BZIP2@
82 DOT        := @DOT@
83 DOXYGEN    := @DOXYGEN@
84 ETAGS      := @ETAGS@
85 ETAGSFLAGS := @ETAGSFLAGS@
86 GROFF      := @GROFF@
87 GZIP       := @GZIP@
88 POD2HTML   := @POD2HTML@
89 POD2MAN    := @POD2MAN@
90 RUNTEST    := @RUNTEST@
91 TCLSH      := @TCLSH@
92 ZIP        := @ZIP@
93
94 # Paths to miscellaneous programs we assume are present
95 RPWD       := pwd
96 ECHO       := echo
97
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.
100 LLVMGCCDIR := @LLVMGCCDIR@
101
102 # Determine the target for which LLVM should generate code.
103 LLVMGCCARCH := @target@/3.4-llvm
104
105 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
106 LLVMGCC  := @LLVMGCC@
107 LLVMGXX  := @LLVMGXX@
108 LLVMCC1  := @LLVMCC1@
109 LLVMCC1PLUS := @LLVMCC1PLUS@
110
111 # 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.
114 OBJ_ROOT := .
115
116 # These are options that can either be enabled here, or can be enabled on the
117 # make command line (ie, make ENABLE_PROFILING=1):
118
119 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
120 # turned on, and Debug builds are turned off.
121 #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.
126 #ENABLE_PROFILING = 1
127
128 # When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
129 ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
130
131 # This option tells the Makefiles to produce verbose output.
132 # It essentially prints the commands that make is executing
133 #VERBOSE = 1
134
135 # Enable JIT for this platform
136 @JIT@
137
138 # Shared library extension for this platform.
139 SHLIBEXT = @SHLIBEXT@
140
141 # Executable file extension for this platform.
142 EXEEXT = @EXEEXT@
143
144 ###########################################################################
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
160 # Set the object build directory.  By default, it is the current directory.
161 ifndef BUILD_OBJ_DIR
162 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
163 endif
164
165 # Set the root of the object directory.
166 ifndef BUILD_OBJ_ROOT
167 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
168 endif
169
170 # Set the source build directory.  That is almost always the current directory.
171 ifndef BUILD_SRC_DIR
172 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
173 endif
174
175 # Set the source root directory.
176 ifndef BUILD_SRC_ROOT
177 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
178 endif
179
180 # Set the LLVM object directory.
181 ifndef LLVM_OBJ_ROOT
182 ifdef LLVM_SRC_ROOT
183 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
184 else
185 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
186 endif
187 endif
188
189 # Set the LLVM source directory.
190 # It is typically the root directory of what we're compiling now.
191 ifndef LLVM_SRC_ROOT
192 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
193 endif
194
195 # Installation directories, as provided by the configure script.
196 abs_top_srcdir = @abs_top_srcdir@
197 abs_top_builddir = @abs_top_builddir@
198 exec_prefix = @exec_prefix@
199 prefix = @prefix@
200 program_transform_name = @program_transform_name@
201 bindir = @bindir@
202 sbindir = @sbindir@
203 libexecdir = @libexecdir@
204 datadir = @datadir@
205 sysconfdir = @sysconfdir@
206 sharedstatedir = @sharedstatedir@ 
207 localstatedir = @localstatedir@
208 libdir = @libdir@
209 includedir = @includedir@
210 infodir = @infodir@
211 mandir = @mandir@