Added the POVRAY_ROOT to locate Povray.
[oota-llvm.git] / Makefile.config.in
1 #===-- Makefile.config - Local configuration for LLVM ------*- makefile -*--====
2 #
3 # This file is included by Makefile.common.  It defines paths and other
4 # values specific to a particular installation of LLVM.
5 #
6 #===-----------------------------------------------------------------------====
7
8 # Target operating system for which LLVM will be compiled.
9 OS=@OS@
10
11 # Target hardware architecture
12 ARCH=@ARCH@
13
14 # Endian-ness of the target
15 ENDIAN=@ENDIAN@
16
17 # Path to the C++ compiler to use.  This is an optional setting, which defaults
18 # to whatever your gmake defaults to.
19 #
20 # Under Linux, for some reason the compiler driver wants to search the PATH to
21 # find the system assembler, which breaks if the LLVM assembler is in our path.
22 # Hack it to use the assembler in /usr/bin directly.
23 CXX = @CXX@
24
25 # We have the same problem with the CC binary, which use used by testcases for
26 # native builds.
27 CC := @CC@
28
29 # Linker flags.
30 LDFLAGS+=@LDFLAGS@
31
32 # Libraries needed by tools
33 TOOLLINKOPTS=@LIBS@
34
35 # Path to the library archiver program.
36 AR_PATH = @AR@
37
38 # The pathnames of the Flex and Bison programs, respectively.
39 YACC     = @YACC@
40 BISON    = @BISON@
41 FLEX     = @LEX@
42
43 # Paths to miscellaneous programs.
44 RPWD    = pwd
45 SED     = sed
46 RM      = rm
47 ECHO    = echo
48 MKDIR   = @abs_top_srcdir@/autoconf/mkinstalldirs
49 DATE    = date
50 MV      = mv
51 INSTALL = @INSTALL@
52 DOT     = @DOT@
53 ETAGS   = @ETAGS@
54 ETAGSFLAGS = @ETAGSFLAGS@
55
56 # Determine the target for which LLVM should generate code.
57 LLVMGCCARCH := @target@/3.4-llvm
58
59 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
60 LCC1 = @LLVMCC1@
61 LCC1XX = @LLVMCC1PLUS@
62
63 # Path to directory where object files should be stored during a build.
64 # Set OBJ_ROOT to "." if you do not want to use a separate place for
65 # object files.
66 OBJ_ROOT := .
67
68 # Path to location for LLVM front-end this should only be specified here if you
69 # want to override the value set in Makefile.$(uname)
70 LLVMGCCDIR := @LLVMGCCDIR@
71
72 # When this variable is set to 1, programs in the llvm/test/Programs hierarchy
73 # are not recompiled from source code.  Instead, the bytecode for the file is
74 # pulled from the BYTECODE_REPOSITORY directory.  This can be useful when disk
75 # space is limited or when you just don't want to spend time running the C
76 # frontend.
77 #USE_PRECOMPILED_BYTECODE := 1
78 @UPB@
79
80 # This path specifies the cannonical location of bytecode files for compiled
81 # versions of the test/Programs/* programs.  This is used as the bytecode source
82 # when USE_PRECOMPILED_BYTECODE is specified or when source code is not
83 # available for the program (such as SPEC).
84 BYTECODE_REPOSITORY := @BCR@
85
86 # SPEC benchmarks:
87 #       Set the USE_SPEC variable to enable the use of the SPEC benchmarks.
88 #       You must provide the SPEC benchmarks on your own.
89 @USE_SPEC@
90 @USE_SPEC95@
91
92 # Path to the SPEC benchmarks.  If you have the SPEC benchmarks, place the
93 # path here.
94 #SPEC_ROOT := /home/vadve/shared/benchmarks/speccpu2000/benchspec
95 SPEC_ROOT := @SPEC_ROOT@
96 SPEC95_ROOT := @SPEC95_ROOT@
97
98 # Path to the Povray source code.
99 @USE_POVRAY@
100 POVRAY_ROOT := @POVRAY_ROOT@
101
102 # Path to the PAPI code.  This is used by the reoptimizer only.
103 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
104 PAPIDIR := @PAPIDIR@
105
106 # These are options that can either be enabled here, or can be enabled on the
107 # make command line (ie, make ENABLE_PROFILING=1):
108
109 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
110 # turned on, and Debug builds are turned off.
111 #ENABLE_OPTIMIZED = 1
112 @ENABLE_OPTIMIZED@
113
114 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
115 # information to allow gprof to be used to get execution frequencies.
116 #ENABLE_PROFILING = 1
117
118 # This option tells the Makefiles to produce verbose output.
119 # It essentially prints the commands that make is executing
120 #VERBOSE = 1
121
122 # Enable JIT for this platform
123 @JIT@
124
125 # Disable LLC diffs for testing.
126 @DISABLE_LLC_DIFFS@
127
128 # Shared library extension for this platform.
129 SHLIBEXT = @SHLIBEXT@
130
131 ###########################################################################
132 # Directory Configuration
133 #       This section of the Makefile determines what is where.  To be
134 #       specific, there are several locations that need to be defined:
135 #
136 #       o LLVM_SRC_ROOT  : The root directory of the LLVM source code.
137 #       o LLVM_OBJ_ROOT  : The root directory containing the built LLVM code.
138 #
139 #       o BUILD_SRC_DIR  : The directory containing the code to build.
140 #       o BUILD_SRC_ROOT : The root directory of the code to build.
141 #
142 #       o BUILD_OBJ_DIR  : The directory in which compiled code will be placed.
143 #       o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
144 #
145 ###########################################################################
146
147 # Set the object build directory.  By default, it is the current directory.
148 ifndef BUILD_OBJ_DIR
149 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
150 endif
151
152 # Set the root of the object directory.
153 ifndef BUILD_OBJ_ROOT
154 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
155 endif
156
157 # Set the source build directory.  That is almost always the current directory.
158 ifndef BUILD_SRC_DIR
159 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
160 endif
161
162 # Set the source root directory.
163 ifndef BUILD_SRC_ROOT
164 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
165 endif
166
167 # Set the LLVM object directory.
168 ifndef LLVM_OBJ_ROOT
169 ifdef LLVM_SRC_ROOT
170 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
171 else
172 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
173 endif
174 endif
175
176 # Set the LLVM source directory.
177 # It is typically the root directory of what we're compiling now.
178 ifndef LLVM_SRC_ROOT
179 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
180 endif
181
182 # Set SourceDir for backwards compatbility.
183 ifndef SourceDir
184 SourceDir=$(BUILD_SRC_DIR)
185 endif
186
187 # Installation directories, as provided by the configure script.
188 exec_prefix = @exec_prefix@
189 prefix = @prefix@
190 program_transform_name = @program_transform_name@
191 bindir = @bindir@
192 sbindir = @sbindir@
193 libexecdir = @libexecdir@
194 datadir = @datadir@
195 sysconfdir = @sysconfdir@
196 sharedstatedir = @sharedstatedir@ 
197 localstatedir = @localstatedir@
198 libdir = @libdir@
199 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
200 includedir = @includedir@
201 infodir = @infodir@
202 mandir = @mandir@
203 INSTALL_PROGRAM = @INSTALL_PROGRAM@
204 INSTALL_SCRIPT = @INSTALL_SCRIPT@
205 INSTALL_DATA = @INSTALL_DATA@
206