PAPI is not used here.
[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 # Target operating system for which LLVM will be compiled.
16 OS=@OS@
17
18 # Target hardware architecture
19 ARCH=@ARCH@
20
21 # Endian-ness of the target
22 ENDIAN=@ENDIAN@
23
24 # Path to the C++ compiler to use.  This is an optional setting, which defaults
25 # to whatever your gmake defaults to.
26 CXX = @CXX@
27
28 # Path to the CC binary, which use used by testcases for native builds.
29 CC := @CC@
30
31 # Path to the Python interpreter
32 PYTHON := @PYTHON@
33
34 # Linker flags.
35 LDFLAGS+=@LDFLAGS@
36
37 # Libraries needed by tools
38 TOOLLINKOPTS=@LIBS@
39
40 # Path to the library archiver program.
41 AR_PATH = @AR@
42
43 # The pathnames of the Flex and Bison programs, respectively.
44 YACC     = @YACC@
45 BISON    = @BISON@
46 FLEX     = @LEX@
47
48 # Paths to miscellaneous programs.
49 RPWD    = pwd
50 SED     = sed
51 RM      = rm
52 ECHO    = echo
53 MKDIR   = @abs_top_srcdir@/autoconf/mkinstalldirs
54 DATE    = date
55 MV      = mv
56 INSTALL = @INSTALL@
57 DOT     = @DOT@
58 ETAGS   = @ETAGS@
59 ETAGSFLAGS = @ETAGSFLAGS@
60
61 # Determine the target for which LLVM should generate code.
62 LLVMGCCARCH := @target@/3.4-llvm
63
64 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
65 LCC1 = @LLVMCC1@
66 LCC1XX = @LLVMCC1PLUS@
67
68 # Path to directory where object files should be stored during a build.
69 # Set OBJ_ROOT to "." if you do not want to use a separate place for
70 # object files.
71 OBJ_ROOT := .
72
73 # Path to location for LLVM C/C++ front-end. You can modify this if you
74 # want to override the value set by configure.
75 LLVMGCCDIR := @LLVMGCCDIR@
76
77 # These are options that can either be enabled here, or can be enabled on the
78 # make command line (ie, make ENABLE_PROFILING=1):
79
80 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
81 # turned on, and Debug builds are turned off.
82 #ENABLE_OPTIMIZED = 1
83 @ENABLE_OPTIMIZED@
84
85 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
86 # information to allow gprof to be used to get execution frequencies.
87 #ENABLE_PROFILING = 1
88
89 # This option tells the Makefiles to produce verbose output.
90 # It essentially prints the commands that make is executing
91 #VERBOSE = 1
92
93 # Enable JIT for this platform
94 @JIT@
95
96 # Shared library extension for this platform.
97 SHLIBEXT = @SHLIBEXT@
98
99 # Executable file extension for this platform.
100 EXEEXT = @EXEEXT@
101
102 ###########################################################################
103 # Directory Configuration
104 #       This section of the Makefile determines what is where.  To be
105 #       specific, there are several locations that need to be defined:
106 #
107 #       o LLVM_SRC_ROOT  : The root directory of the LLVM source code.
108 #       o LLVM_OBJ_ROOT  : The root directory containing the built LLVM code.
109 #
110 #       o BUILD_SRC_DIR  : The directory containing the code to build.
111 #       o BUILD_SRC_ROOT : The root directory of the code to build.
112 #
113 #       o BUILD_OBJ_DIR  : The directory in which compiled code will be placed.
114 #       o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
115 #
116 ###########################################################################
117
118 # Set the object build directory.  By default, it is the current directory.
119 ifndef BUILD_OBJ_DIR
120 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
121 endif
122
123 # Set the root of the object directory.
124 ifndef BUILD_OBJ_ROOT
125 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
126 endif
127
128 # Set the source build directory.  That is almost always the current directory.
129 ifndef BUILD_SRC_DIR
130 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
131 endif
132
133 # Set the source root directory.
134 ifndef BUILD_SRC_ROOT
135 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
136 endif
137
138 # Set the LLVM object directory.
139 ifndef LLVM_OBJ_ROOT
140 ifdef LLVM_SRC_ROOT
141 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
142 else
143 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
144 endif
145 endif
146
147 # Set the LLVM source directory.
148 # It is typically the root directory of what we're compiling now.
149 ifndef LLVM_SRC_ROOT
150 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
151 endif
152
153 # Set SourceDir for backwards compatbility.
154 ifndef SourceDir
155 SourceDir=$(BUILD_SRC_DIR)
156 endif
157
158 # Installation directories, as provided by the configure script.
159 exec_prefix = @exec_prefix@
160 prefix = @prefix@
161 program_transform_name = @program_transform_name@
162 bindir = @bindir@
163 sbindir = @sbindir@
164 libexecdir = @libexecdir@
165 datadir = @datadir@
166 sysconfdir = @sysconfdir@
167 sharedstatedir = @sharedstatedir@ 
168 localstatedir = @localstatedir@
169 libdir = @libdir@
170 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
171 includedir = @includedir@
172 infodir = @infodir@
173 mandir = @mandir@
174 INSTALL_PROGRAM = @INSTALL_PROGRAM@
175 INSTALL_SCRIPT = @INSTALL_SCRIPT@
176 INSTALL_DATA = @INSTALL_DATA@
177