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